Hi All,
I'm familiar with running the following in order to see the IPaddresses for a given VM:
# Grab all VMs through this view
$a = get-view -viewtype virtualmachine
# Suppose the 1st VM has multiple IP addresses
$a[0].guest.ipaddress
That would return me the array of IPaddresses for the given VM.
The issue I'm experiencing currently is when I do this very same thing, the data pulled back is a SINGLE IPaddress for every VM. I can't figure out what has changed. I have confirmed using the Get-VM cmdlet will pull the IPaddress info as I'm accustomed to. I originally chose the VIEW route since I'm dealing with large numbers of VMs and the view was much quicker than the Get-VM cmdlet. If anyone has suggestions or questions please let me know. Thanks for reading!
-Josiah
I'll be hovering in the Freenode IRC #powercli channel for the next day or so 'till this is put to bed to some degree of closure ^.^
PS - Something I have noticed is the $_.guest.net.ipaddress property is not preserved (not sure if that's the right word choice) when taking the get-view and exporting it via CLIXml (export-clixml); in the .xml export this $_.guest.net.ipaddress does not exist from what I see. My original thought was to simply grab all VM-view data from another environment, then export via CliXML, take back to home base & chop it up from there. Looks like I'll need to handle a little more over on the other environment-end before bringing back to home base. Cheers.