PowerCLI

 View Only
  • 1.  CLI Commands to List All Host NIC Mgmt & VMotion IPs?

    Posted Jan 21, 2011 02:00 PM

    Greetings all.  I'm looking for a way to report all the mgmt & vmotion IPs of all the hosts in my vCenter.  Is there a powercli command or a powershell script that can pull this info?

    I've gone through all the commands via  powercli (get-vicommand); but, none of them seem to give me this info.

    Thanks much!



  • 2.  RE: CLI Commands to List All Host NIC Mgmt & VMotion IPs?

    Broadcom Employee
    Posted Jan 21, 2011 02:28 PM

    You can try this:

    Get-VMHost | Get-VMHostNetworkAdapter -VMKernel | Select vmhost, name, portgroupname, ip, subnetmask | ft



  • 3.  RE: CLI Commands to List All Host NIC Mgmt & VMotion IPs?

    Posted Jan 21, 2011 02:32 PM

    That's awesome!  Works great.  Thanks!