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.
Could it be that I am missing some parameter in the vCenter to obtain this data?
Regards,
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.
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.
Regards,
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
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
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
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,
And you are sure there is a cluster on that vCenter?
Can you try it this way?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
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