VMware Cloud Community
Sany_1973
Enthusiast
Enthusiast
Jump to solution

Auto Deploy Status of a Host

How can we get the status of the auto deployed Host with a given MAC address?

I just want check whether the deployment is finished for a specified Host MAC address.

Is there any powercli script available ?

Or any scripts available to check the Host with a MAC address present in "Deployed Hosts"  vCenter tab ?

Thanks

1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

Would something like this work?

$tgtMac = '90:1b:0e:bd:9e:d8'

Get-VMHost -PipelineVariable esx | Get-VMHostNetworkAdapter -VMKernel | where{$_.Mac -eq $tgtMac} |

select @{N='Host';E={$esx.Name}},@{N='State';E={$esx.ConnectionState}}


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

View solution in original post

2 Replies
LucD
Leadership
Leadership
Jump to solution

Would something like this work?

$tgtMac = '90:1b:0e:bd:9e:d8'

Get-VMHost -PipelineVariable esx | Get-VMHostNetworkAdapter -VMKernel | where{$_.Mac -eq $tgtMac} |

select @{N='Host';E={$esx.Name}},@{N='State';E={$esx.ConnectionState}}


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

Sany_1973
Enthusiast
Enthusiast
Jump to solution

Thanks LucD.

Reply
0 Kudos