100-140 Question 227
Single answerYou are troubleshooting a connectivity issue on a Windows-based server. You suspect that a specific application is using an unexpected port and causing conflicts. Which netstat command would you use to display all active connections along with the process ID (PID) associated with each connection?
- A
netstat -a
- B
netstat -an
- C
netstat -ano
- D
netstat -e
Show answer and explanation
Correct answer: C
Explanation
The 'netstat -ano' command is the most appropriate option when troubleshooting connectivity issues involving specific applications. It provides details about all active connections and listening ports, as well as the process ID (PID) of the applications using those ports. This information helps identify which application is causing the issue.
- A. Incorrect.
The 'netstat -a' command shows all active connections and listening ports, but it does not include the process ID (PID) information.
- B. Incorrect.
The 'netstat -an' command displays all active connections and listening ports in numerical format but still does not include process ID (PID) information.
- C. Correct.
The 'netstat -ano' command displays all active connections, listening ports, and the process ID (PID) associated with each connection, making it the correct choice for this scenario.
- D. Incorrect.
The 'netstat -e' command shows Ethernet statistics, such as bytes sent and received, but does not provide details about active connections or process IDs.