VMware {code} Community
ymnick
Enthusiast
Enthusiast

'managementServerIp' property in MOB returns 'Unset' for ESXi hosts managed by vCenter on Windows

Both vCenter and ESXi servers are 5.5 and it shows 'Unset' for 'managementServerIp' HostListSummary property in vCenter MOB. vCenter is a Windows machine. The same API works when connecting to ESXi server MOB, but not when connecting to vCenter MOB and drilling down to the ESXi host object.

Reply
0 Kudos
1 Reply
ymnick
Enthusiast
Enthusiast

VMware Technical Support confirmed the same issue with ESXi hosts 'managementServerIp' summary property for ESXi servers managed by vCenter Server running on a Windows machine. Next step will be to continue troubleshooting it with SDK Support Team. In a meantime I am going to use the following code to extract vCenter management IP address for Windows based vCenters:

    my $settings = Vim::get_view(mo_ref => $service_content->setting)->setting;

    my $managementServerIp = undef;

    foreach my $setting (@$settings) {

         if ('VirtualCenter.AutoManagedIPV4' eq $setting->key) {

              $managementServerIp = $setting->value;

         }

    }