How can i do that for VC:VirtualMachine Type?
Assuming a variable named "vm" for your VC:VirtualMachine object:
System.log("VM IP Address: "+vm.summary.guest.ipAddress);
Assuming a variable named "vm" for your VC:VirtualMachine object:
System.log("VM IP Address: "+vm.summary.guest.ipAddress);
Burke,
Could you also just use the following?
System.log("VM IP Address: " + vm.guest.ipAddress);
I'm sure you could... I just used the summary object because that's what my simple reporting workflow that I copied the line of code from was using In that workflow, I was gathering a whole bunch of info - not all of which was under the .guest property, but was under .summary.guest.
Works for me. I was just curious if there was a specific reason that you chose one path over the other.
Happy Friday!
Thx..that works!