QuickTask: How retrieve IP addresses from VM by PowerCLI

Get-Cluster CLUSTER_NAME | Get-VM | Select Name, Host, @{N="IP Address";E={@($_.guest.IPAddress[0])}}
Due to the way the IP address is referenced and a VM can have more than one IP, you can list additional IPs by adding or changing the array pointer from 0 to 1 and so on, in this part of the command “$_.guest.IPAddress[1]”
Related
Sebastian Grugel
Obecnie Inżynier rozwiązań VMware Enterprise Private Cloud. Od 1992 zbieram doświadczenie w informatyce. Od 2004 zbieram doświadczenie zawodowo w IT. Od 2012 zbieram doświadczenie w enterprise IT w technologiach VMware, Microsoft, Linux. Od 2016 interesuje się chmurami publicznymi - koncentrując się na AWSa ale i bacznie obserwując rozwiązania innych dostawców chmurowych.
Twórca vSebastian.net, akademiadatacenter.pl, clouddatacenter.pl Szukaj mnie na FB, Twitter, LinkedIn.
Previous
QuickTips: How can I tell the SRM version from the log files?
Next
QuickFix: vCenter 6 appliance space issue /storage/core out of space
Ostatnie komenrarze