1.Nic, Drivers, Stats,vmk,port_num related commands
2.Swtich related commands
3.NIC, vmk, up,down,lacp related commands
4.Module related commands
5.NSX firewall related commands
6.ESX routing related commands
7.VDR,vDL2 related commands
1.Nic, Drivers, Stats,vmk,port_num related commands
esxcli network nic list
Check the physical vmnic associated with the host. This will show all the vmnic physical adapter and its state.It will show the Admin and link status.
esxcli network nic get -n vmnic<vmnic_number>
This command will show you more details about physical vmnic adapter , like fireware version, driver, negotiation details etc.
esxcli network nic stats get -n <vmnic_number>
Now lets say customer have issue in his environment or there is intermittent packet drop on host level or any issue with host specific or vmnic. In that case you can run this command and see the active counter for drop in receive/transmit packet.
net-stats -l
Get the port number of particular VM , this portNum can be used to take packet capture on VM port or to get VM portNum stats.The command can be used with grep to find the portNum of specific VM.
esxcli network port stats get -p <port_number of particular VM>
Use the PortNum of of the VM to check the stats of VM Ports.Run this