Perl Toolkit: pNIC to vSwitch information
Another itch to scratch: which vSwitch is a pNIC connected to? To solve this simple problem I created a quick perl script…
This script also lets me see the driver in use, connection speed and duplex setting, and the MAC address of the pNIC.
# Sample output: Adaptor (Driver) Speed (Duplex) MAC vSwitch ---------------- -------------- --- ------- vmnic1 (bnx2) 1000 (Full) 00:00:00:00:00:00 vSwitch0 vmnic0 (tg3) 1000 (Full) 00:00:00:00:00:00 vSwitch0 vmnic3 (tg3) 1000 (Full) 00:00:00:00:00:00 vSwitch1 vmnic2 (bnx2) 1000 (Full) 00:00:00:00:00:00 vSwitch1