show ports

To display information about all the processes listening on active ports, use the show ports command in the EXEC mode.

show ports [|] [|]

Syntax Description

show ports

The command to display all the processes listening on open ports in the Cisco CDA.

|

Output modifier variables:

 • begin—Matched pattern. Supports up to 80 alphanumeric characters.

 • count—Count the number of lines in the output. Add number after the word count.

|—Output modifier variables (see Table 4-9).

 • end—End with line that matches. Supports up to 80 alphanumeric characters.

 • exclude—Exclude lines that match. Supports up to 80 alphanumeric characters.

 • include—Include lines that match. Supports up to 80 alphanumeric characters.

 • last—Display last few lines of output. Add number after the word last. Supports up to 80 lines to display. Default 10.

|—Output modifier variables (see Table 4-9).

Table 4-9 Output Modifier Variables for Count or Last

|

Output modifier variables:

 • begin—Matched pattern. Supports up to 80 alphanumeric characters.

 • count—Count the number of lines in the output. Add number after the word count.

|—Output modifier variables.

 • end—End with line that matches. Supports up to 80 alphanumeric characters.

 • exclude—Exclude lines that match. Supports up to 80 alphanumeric characters.

 • include—Include lines that match. Supports up to 80 alphanumeric characters.

 • last—Display last few lines of output. Add number after the word last. Supports up to 80 lines to display. Default 10.

|—Output modifier variables.

Defaults

No default behavior or values.

Command Modes

EXEC

Usage Guidelines

When you run the show ports command, the port must have an associated active session.

Examples

/admin# show ports

Process : portmap (2560)

tcp: 0.0.0.0:111

udp: 0.0.0.0:111

Process : sshd (3312)

tcp: 0.0.0.0:22, :::22

Process : rpc.statd (2600)

tcp: 0.0.0.0:662

udp: 0.0.0.0:656, 0.0.0.0:659

Process : java (18838)

tcp: ::ffff:127.0.0.1:8005, :::8009, :::80, :::443, :::8092

Process : java (18811)

tcp: :::54826, :::8091

Process : java (18849)

tcp: :::8020, :::8090

udp: :::1812, :::1813, :::1645, :::1646, :::50672

Process : java (18787)

tcp: :::8093

Process : ntpd (4213)

udp: 192.168.100.156:123, 10.56.14.156:123, 127.0.0.1:123, 0.0.0.0:123, fe80::215:17ff:fe29:123, fd00:1234:5678:abcd:123, 2001:420:44ff:1

4:21:123, fe80::215:17ff:fe29:123, ::1:123, :::123

/admin#