Command ReferenceA-55
NAME
netstat - show network status
SYNOP SIS
netstat [ -an ]
netstat -mnrs
netstat -i | -I interface [ -dn ]
netstat -w interval [ -i | -I interface ] [ -dn ]
netstat [ -p protocol ]
DESCRIPTION
The netstat command symbolically displays the contents of various network-
related data structures. There are a number of output formats, depending on the
options for the information presented. The first form of the command displays a
list of active sockets for each protocol.
The second form presents the contents of one of the other network data struc-
tures according to the option selected.
The third form will display cumulative statistics for all interfaces or, with an
inter-
face specified using the -I option, cumulative statistics for that interface. It will
also display the sum of the cumulative statistics for all configured network
interfaces.
The fourth form continuously displays information regarding packet traffic on the
interface that was configured first, or with an interface specified using the -I
option, packet traffic for that interface. It will also display the sum of the cumula-
tive traffic information for all configured network interfaces.
The fifth form displays statistics about the protocol specified by protocol.
OPTIONS
-aShow the state of all sockets; normally sockets used by server pro-
cesses are not shown.
-dWith either interface display (option -i or an interval, as described
below), show the number of dropped packets.
-I interface Show information only about this interface. When used in the third
form with an interval specified as described below, information
about the indicated interface is highlighted in a separated column.
(The default interface highlighted is the first interface configured
into the system.)
-iShow the state of interfaces that have been configured.
-mShow statistics recorded by the memory management routines for
the networkî‚’s private pool of buffers.
netstat