Network troubleshooting commands
Some of the commands that can be used for networking troubleshooting include net-dvs
, Esxcli network
, vicfg-route
, vicfg-vmknic
, vicfg-dns
, vicfg-nics
, and vicfg-vswitch
.
You can use the net-dvs
command to troubleshoot VMware distributed dvSwitches. The command shows all the information regarding the VMware distributed dvSwtich configuration. The net-dvs
command reads the information from the /etc/vmware/dvsdata.db
file and displays all the data in the console. A vSphere host keeps updating its dvsdata.db
file every five minutes.
Connect to a vSphere host using PuTTY.
Enter your user name and password when prompted.
Type the following command in the CLI:
net-dvs
You will see something similar to the following screenshot:
In the preceding screenshot, you can see that the first line represents the UUID of a VMware distributed switch. The second line shows the maximum number of ports a distributed switch can have. The line com.vmware.common.alias = dvswitch-Network...