nerdexam
CompTIA

SK0-003 · Question #548

An administrator needs to review the open ports on a host. Which of the following commands should they use?

The correct answer is C. netstat -ano. To effectively review open ports on a host, the 'netstat -ano' command is used to display all active connections and listening ports, along with their associated process IDs.

Server administration

Question

An administrator needs to review the open ports on a host. Which of the following commands should they use?

Options

  • Atraceroute -d
  • Bping -t
  • Cnetstat -ano
  • Dnbtstat -a

How the community answered

(44 responses)
  • A
    5% (2)
  • B
    5% (2)
  • C
    89% (39)
  • D
    2% (1)

Why each option

To effectively review open ports on a host, the 'netstat -ano' command is used to display all active connections and listening ports, along with their associated process IDs.

Atraceroute -d

`traceroute -d` is used to trace the route that packets take to a network host, not to list open ports on the local machine.

Bping -t
Cnetstat -anoCorrect

The `netstat -ano` command displays active TCP connections, listening ports, and the process ID (PID) associated with each connection, providing a comprehensive view of network activity and open ports on the local host. The '-a' flag shows all connections and listening ports, '-n' shows numerical addresses and port numbers, and '-o' shows the owning process ID.

Dnbtstat -a

Concept tested: Command-line network port enumeration

Source: https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/netstat

Topics

#netstat#open ports#network utilities#command line

Community Discussion

No community discussion yet for this question.

Full SK0-003 Practice