nerdexam
CompTIA

XK0-005 · Question #147

An administrator needs to generate a list of services that are listening on TCP and/or UDP ports. Which of the following tools should the administrator use?

The correct answer is C. netstat. The administrator needs to identify active network services and their corresponding listening TCP/UDP ports.

System Management

Question

An administrator needs to generate a list of services that are listening on TCP and/or UDP ports. Which of the following tools should the administrator use?

Options

  • Aethtool
  • Broute
  • Cnetstat
  • Dportmap

How the community answered

(33 responses)
  • B
    3% (1)
  • C
    94% (31)
  • D
    3% (1)

Why each option

The administrator needs to identify active network services and their corresponding listening TCP/UDP ports.

Aethtool

`ethtool` is used to query or modify network interface controller (NIC) parameters, such as speed, duplex settings, and driver information, not for listing listening services.

Broute

The `route` command is used to display or manipulate the kernel's IP routing table, which dictates how network packets are forwarded, not for identifying listening services.

CnetstatCorrect

The `netstat` command is a comprehensive command-line tool that displays active network connections, routing tables, interface statistics, and crucially, all listening sockets (open ports) for both TCP and UDP protocols, making it ideal for this task.

Dportmap

`portmap` (or `rpcbind`) is a service that maps RPC program numbers to network port numbers for RPC-based services, but it does not list all services listening on TCP/UDP ports across the system.

Concept tested: Listing listening network services and ports

Source: https://www.redhat.com/sysadmin/monitor-network-linux-netstat

Topics

#netstat#network monitoring#listening ports#TCP/UDP

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice