Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 294344

Determining the network ID for a Virtual Network Adapter?

$
0
0

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?


Viewing all articles
Browse latest Browse all 294344

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>