Scenario 18
< Back | Next>
Scenario:
You are troubleshooting a problem where a massive loss of power has caused many network devices, some ESXi hosts, and even vCenter Server to be offline. The root cause will be repaired within an hour, but meanwhile you are working to ensure that some of your most critical applications are still available. Your environment uses distributed virtual switches for most of its VMs.
Requirements:
- Access the ESXi Shell on a particular ESXi host.
- Run a command that displays configuration and statistics information about all the distributed virtual switches connected to the host and export the results to a text file.
- Use a text editor to examine the results of the file.
- Determine the names and the number of uplink ports for each distributed virtual switch.
Environment Information:
- ESXi host = host-01.lab.local
- Text filename: results-01
Objective: 6.3 Troubleshoot Network Performance and Connectivity
Guide Reference(s):
- Chapter 4 – Troubleshoot Network Performance and Capacity – Use net-dvs to Troubleshoot vSphere Distributed Switch Configurations
Click Here For Solution
Solution
- In the ESXi Shell, enter this command:
net-dvs >> results-01
- Then enter this command to open the text editor:
vi results-01
- To search for the string switch, press the / key and enter switch (include a space character at the end) at the prompt.
- Locate these values in the section for the first virtual switch:
- com.vmware.common.alias – whose value is the name of the distributed virtual switch
- com.vmware.common.uplinkPorts – whose value is the number of ports for the first virtual switch
- Repeat these steps to discover the name and number of uplink ports for any remaining distributed virtual switches.