Hi All,
I am trying to find the below details but i am unable to find theVI3 APIs , can any one help me on this
how to find the Gest (VM) or ESX host OS version and update level by using VI3 API?
How to find the listening service & TCP/UDP port of Guest or ESX?
Thanks,
svustika
Please see following to answer some of your questions:
To view the guest os full name
Util::trace(0, $vm_view->guest->guestFamily . "\n");
To view the host os type:
Util::trace(0, $host_view->summary->config->product->osType);
To view the product information including version:
Util::trace(0, $host_view->summary->config->product->fullName);
I hope it helps.
Hi,
Thank you for response. But my question is different. I am looking for VI3 API to find the Guest OS verion and updatelevel
Thanks,
svustika
There is no current method to find the OS version and patch level via the VI SDK (that I know of). I believe this is why the update manager has a special guest agent that can help determine what patches are needed and is then used to install them. Read more about the guest agent on page 13 of the VI Update Manager Administration Guide.
This may all change with the VMsafe APIs that are coming though...