100-140 Question 225
Single answerYou are troubleshooting a connectivity issue on a Windows server. You suspect that a specific application is not properly listening for incoming network connections. To verify this, you decide to use the 'netstat' command. Which of the following 'netstat' options would you use to display the listening ports along with the process IDs (PIDs) of the associated applications?
- A
netstat -a
- B
netstat -o
- C
netstat -e
- D
netstat -n
Show answer and explanation
Correct answer: B
Explanation
'netstat -o' is the correct option because it includes the process IDs (PIDs) associated with each connection or listening port. This allows you to identify which application is responsible for the specific port activity. In troubleshooting scenarios like this, it's crucial to link the port to the correct application process.
- A. Incorrect.
'netstat -a' shows all active connections and listening ports, but it does not display the process IDs (PIDs) of the applications.
- B. Correct.
'netstat -o' displays active connections, the listening ports, and the process IDs (PIDs) associated with each connection, making it the correct choice for this scenario.
- C. Incorrect.
'netstat -e' is used to display Ethernet statistics, such as bytes sent and received, and does not provide information about listening ports or process IDs.
- D. Incorrect.
'netstat -n' displays active connections in numerical form (e.g., IP addresses instead of domain names), but it does not provide information about process IDs or listening ports.