VMware Cloud Community
llucfolch
Contributor
Contributor

Get-Cluster does not display information

Good afternoon,

I have been testing with a script but it was not working, to rule out the problem I have run the Get-Cluster command and I have noticed that it does not show any information.

All other parameters of the Powercli are working correctly.

pastedImage_0.png

Could it be that I am missing some parameter in the vCenter to obtain this data?

Regards,

0 Kudos
8 Replies
Nawals
Expert
Expert

Have you connected the vCenter using "Connect-VIServer vCentername " If not please connect first and then you can run the command to get the result.

NKS Please Mark Helpful/correct if my answer resolve your query.
0 Kudos
llucfolch
Contributor
Contributor

Hi,

If I have made the connection and I still get the same problem, I have tried other cmdlets such as Get-VM and this does show all the information.

pastedImage_0.png

Regards,

0 Kudos
LucD
Leadership
Leadership

Which PowerCLI version are you using?
Did you recently upgrade PowerCLI?

This kind of behaviour has been noted when there are parts of a 2nd version of PowerCLI installed.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
llucfolch
Contributor
Contributor

Hi,

This is the version that I have of powercli:

PowerCLI Version

----------------

   VMware PowerCLI 12.0.0 build 15947286

---------------

Component Versions

---------------

   VMware Common PowerCLI Component 12.0 build 15939652

   VMware Cis Core PowerCLI Component PowerCLI Component 12.0 build 15939657

   VMware VimAutomation VICore Commands PowerCLI Component PowerCLI Component 12.0 build 15939655

Regards

0 Kudos
LucD
Leadership
Leadership

Did you have an MSI install before?
Do you still see PowerCLI in Programs and Features Control Panel applet?

To start from a clear solution it is probably best to remove all PowerCLI files and folders.

See also Kyle's Welcome PowerCLI to the PowerShell Gallery – Install Process Updates post.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
llucfolch
Contributor
Contributor

Hi,

I have been doing the tests you have mentioned, and I still have the same problem that the Get-Cluster does not show me.
I have tried other vCenter and it has given me the information correctly.

Regards,

0 Kudos
LucD
Leadership
Leadership

And you are sure there is a cluster on that vCenter?

Can you try it this way?

Get-View -ViewType ClusterComputeResource


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
llucfolch
Contributor
Contributor

Good afternoon,

I have taken the opportunity to connect to the vCenter and indeed it is what you have commented that in this vCenter there is no Cluster configured.

Sorry for the inconvenience and thank you very much for your help.

Regards

0 Kudos