VMware Cloud Community
jhales
Contributor
Contributor

Get the MOID of an ESXi host

How do I get the MOID of a host? The new vSphere 5 HA implementation  makes frequent reference to it and I can poke around iin the MOB to find  it, but I can't seem to find a way to get it via PowerCLI. Any help  would be greatly appreciated. Thanks,

John Hales

Tags (3)
0 Kudos
1 Reply
ravinder1982
Enthusiast
Enthusiast

I think while you use the PowerCLI commad to get the vmhost it also show one ID which is known as MOID. I have tested this and master selection come as per that ID if the number of datastore are same on all the host (number of datastore tie).

Get-VMHost | Select-Object Name,ID

Regards

Regards Ravinder Kumar VCP3|VCP4|VCP5|VCP-Cloud|VCAP4-DCA|VCAP5-DCA|VCAP5-CIA|VCI-L2
0 Kudos