show netstat

Use this command to display statistics for the switch‘s active network connections.

Syntax

show netstat [icmp | ip | stats | tcp | udp]

Parameters

icmp (Optional) Shows Internet Control Message Protocol (ICMP) statistics.
ip (Optional) Shows Internet Protocol (IP) statistics.
stats (Optional) Shows all statistics for TCP, UDP, IP, and ICMP.
tcp (Optional) Shows Transmission Control Protocol (TCP) statistics.
udp (Optional) Shows User Datagram Protocol (UDP) statistics.

Defaults

If no parameters are specified, all switch network connections display.

Mode

All command modes.

Usage

The display of routes configured on the host stack have been moved to the host option of command show ip route.

Example

This example shows how to display statistics for all the current active network connections:

System(rw)->show netstat
INET sockets
Prot  Recv-Q Send-Q Local Address                 Foreign Address               State
ICMP  0      0      0.0.0.0.*                  0.0.0.0.*
TCP   0      0      0.0.0.0.111                   0.0.0.0.*                     LISTEN
TCP   0      0      0.0.0.0.80                    0.0.0.0.*                     LISTEN
UDP   0      0      127.0.0.1.20033            127.0.0.1.20032
.
.
.
OSPFIGP 0      0    0.0.0.0.*                  0.0.0.0.*
INET6 sockets
Prot  Recv-Q Send-Q Local Address                 Foreign Address               State
TCP   0      0      ::.23                         ::.*                          LISTEN
System(rw)->

The following example displays the statistics for all supported protocols:

System(rw)->show netstat stats
Ip:
    26034 total packets received
    25824 with invalid addresses
    0 forwarded
    0 incoming packets discarded
    187 incoming packets delivered
    6391 requests sent out
    21 dropped because of missing route
Icmp:
    14 ICMP messages received
    0 input ICMP message failed
    ICMP input histogram:
        destination unreachable: 14
    6184 ICMP messages sent
    0 ICMP messages failed
    ICMP output histogram:
        destination unreachable: 1
        echo request: 6183
Tcp:
    2 active connection openings
    2 passive connection openings
    0 failed connection attempts
    0 connection resets received
    4 connections established
    153 segments received
    153 segments send out
    0 segments retransmitted
    0 bad segments received
    0 resets sent
Udp:
    42 packets received
    1 packets to unknown port received
    0 packet receive errors
    57 packets sent
System(rw)->

show netstat Output Details provides an explanation of the command output.

Click to expand in new window

show netstat Output Details

Output... What it displays...
Proto Type of protocol running on the connection.
Recv-Q Number of queries received over the connection.
Send-Q Number of queries sent over the connection.
Local Address IP address of the connection‘s local host.
Foreign Address IP address of the connection‘s foreign host.
State Communications mode of the connection (listening, learning or forwarding).