I have a requirement to get virtual mac address of a physical nic using sdk.
This is used to identify the physical switch to which it is connected.
PhysicalNic.getMac() returns physical mac address of the nic, so it is not useful.
Is there any other API to get virtual mac?
Following is the output of esxcfg-info command:
--------------------------------------------------------------------------------------
\==+Physical Nic :
|----Name...............................................vmnic3
|----PCI Bus............................................15
|----PCI Slot...........................................4
|----PCI function.......................................1
|----MAC Address........................................00:e0:ed:04:e8:4b
|----Virtual MAC Address................................00:50:56:54:e8:4b
|----Driver.............................................e1000
|----Network Hint.......................................1 0.0.0.0/0.0.0.0
.
.
----------------------------------------------------------------------------------------
Thanks in Advance.