I am trying to gather all the networking information on each VM on my ESX hosts through
VCenter and the Java SDK. I get the MOR for each of the VMs and retrieve the "VirtualMachineConfigInfo".
From that I am able to look atn the VirutualHardware and find all the Ethernet cards. I get the
mac address and the name (string) of the portgroup. But the port group name is not unique
across ESX hosts. I need to get the network ID.
The olny way I can see to do that is to look at all the networks for that VM. I have to use each
network MOR to retreive the NetworkSummary. I then have to match the String names to get the
network ID.
Is there a better way to do this?