Hi,
I'm trying to get the ESXI host address for a given VC:VirtualMachine, can't seem to figure this out! Any ideas?
Thanks,
Tim.
Could you try also
var name = vm.runtime.host.name;
BTW, which vRO and vCenter plug-in versions do you use?
Hi,
Try
var name = vm.hostName;
where vm is your VC:VirtualMachine object.
Thanks, that was the first thing I tried, however it's null?
Could you try also
var name = vm.runtime.host.name;
BTW, which vRO and vCenter plug-in versions do you use?
Thanks, that seems to work OK, but will this info be available if the vm is not running?
I'm using vro v7.5 with vCenter plug in v6.5.
Yes, I think it should work even if the vm is powered off.
Just tested, works fine, thanks for your help (once again!)