netstat.1 (2010 09)

n
netstat(1) netstat(1)
NAME
netstat - show network status
SYNOPSIS
netstat [-an][-f address-family ][system ]
netstat [-an][-f address-family ][system [ core ]]
#PA-RISC only
netstat [-Mnrsv][-f address-family ][
-p protocol ][system ]
netstat [-Mnrsv][-f address-family ][
-p protocol ][system [ core ]]
#PA-RISC only
netstat [-ginw][-f address-family ][
-I interface ][interval ][system ]
netstat [-ginw][-f address-family ][
-I interface ][interval ][system [ core ]]
#PA-RISC
only
netstat [-zZin][-I interface ][
-p protocol ]
netstat [-d]
DESCRIPTION
netstat displays statistics for network interfaces and protocols, as well as the contents of various
network-related data structures. The output format varies according to the options selected. Some
options are ignored or invalid when used in combination with other options.
Generally, the
netstat command takes one of the five forms shown above:
The first form of the command displays a list of active sockets for each protocol.
The second form displays the contents of one of the other network data structures according to
the option selected.
The third form displays configuration information for each network interface. It also displays
network trafc data on configured network interfaces, optionally updated at each interval , meas-
ured in seconds.
The fourth form displays current network interface or protocal statistics and zeroes them out.
The last form deletes all bookkeeping files created by
netstat.
Options are interpreted as follows:
-a Show the state of all sockets, including passive sockets used by server processes.
When netstat is used without any options only active sockets are shown.
This option does not show the state of X.25 programmatic access sockets. The
option is ignored if the -g, -i, -I, -M, -p,
-r, -s or interval option is
specified.
-d Deletes all the bookkeeping files created by netstat. The bookkeeping files
are located at /var/tmp/NETSTAT.TMP/.
Note: If the bookkeeping files are deleted with the
-d option, then netstat
defaults to reporting statistics since boot time for the -z option.
-f address-family
Show statistics or address control block for only the specified address-family.
The following address families are recognized: inet for AF_INET, inet6
for AF_INET6, and unix for AF_UNIX. This option with AF_UNIX applies to
the -a and -s options. This option with AF_INET or AF_INET6 applies to the
-a, -i, -n, and -s options.
-g Show multicast information for network interfaces. Only the address family
AF_INET is recognized by this option. This option may be combined with the
-i option to display both kinds of information. The option is ignored if the -p
option is specified.
-i Show the state of network interfaces. Only the interfaces that have been
configured with an IP address or the plumb option using the ifconfig com-
mand are shown. The output includes both the primary and logical interfaces.
(See ifconfig(1M)).
HP-UX 11i Version 3: September 2010 1 Hewlett-Packard Company 1

Summary of content (4 pages)