Getting the Service Console IP addresses of your ESX servers with vSphere PowerCLI (formerly known as the VI Toolkit for Powershell):

Get-VMHost | Select Name, @{N="ConsoleIP";E={(Get-VMHostNetwork).ConsoleNic | ForEach{$_.IP}}}

»crosslinked«

Related posts:

  1. Calculate vSphere 5 Licenses with Powershell (UPDATED)
  2. Remove vmware memory limits with Powershell

  4 Responses to “Oneliner: Service Console IP with PowerCLI”

  1. Correction: You are missing the $_ after …Network
    This Works:

    Get-VMHost | Select Name, @{N=”ConsoleIP”;E={(Get-VMHostNetwork $_).ConsoleNic | ForEach{$_.IP}}}

  2. VirtualNic not ConsoleNic for me

  3. Hi All,

    I am born baby in Powershell scripting. Can any one give me a script to read all the VM`s configuration like (Mem,CPU,DISK, DISK Usage, Disk file Path and Current ESX that the VM powered on etc.) for all the VM`s in a datacenter.

    Thanks

  4. Take a look at http://www.thevesi.org if you need a quick, standard way of reporting.
    Hugo

 Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">

   
© 2012 PeetersOnline Suffusion theme by Sayontan Sinha