NETSTAT(1) Series 300 Only NETSTAT(1)
NAME
netstat - show network status
SYNOPSIS
netstat [ -m | -i | -r ] [ -a ] [ -n ] [ -s ] [ interval ]
HP-UX/COMPATIBILITY
Level: HP-UX/NON-STANDARD
Origin: UCB
Remarks: Implemented on the Series 300 only.
DESCRIPTION
Netstat displays the status of various network and protocol
functions within the system.
The information is displayed in various forms, depending on
which options are specified.
Not all of the options listed here can be used in
combination. Some of the options select the information to
be displayed and some of the options further qualify that
specific display. Netstat checks its options in the order -m
(memory management statistics), -i (interface statistics),
and -r (routing tables), and presents a display for only one
of these options.
The default display for active sockets shows the local and
remote addresses, send and receive queue sizes (in bytes),
protocol, and, when applicable, the internal state of the
protocol. Other display formats are controlled by the
options listed below.
-m Show statistics recorded by the memory management
routines. (The network manages a ``private share'' of
memory.)
-i Show the state of the network interface. The interface
display provides a table of cumulative statistics
regarding packets transferred, errors, and collisions.
The network address of the interface and the maximum
transmission unit (``mtu'') are also displayed. For
the interface name, only the basename portion of the
pathname specifying the interface is shown. A failed
interface is indicated by an asterisk appearing at the
end of the interface name.
-r Show the routing tables. The routing table display
format indicates the available routes and their status.
Each route consists of a destination host or network
and a gateway to use in forwarding packets. The flags
Hewlett-Packard - 1 - (printed 7/16/86)
NETSTAT(1) Series 300 Only NETSTAT(1)
field shows the state of the route (`U' if ``up''),
whether the route uses a gateway (`G'), and whether the
route is to a host as opposed to a network (`H'). The
refcnt and use fields are displayed for compatibility
with other systems, but are always shown as zero for
this implementation. The interface entry indicates the
network interface utilized for the route. It will be
blank if an appropriate interface cannot be found for
that route.
The options listed below provide further qualification for
the display formats listed above.
-a Show the state of all sockets (normally sockets used by
server processes are not shown).
-n Show network addresses as numbers (normally netstat
interprets addresses and attempts to display them
symbolically).
-s Show per-protocol statistics. When used with the -r
option, the -s option displays routing statistics.
Address formats are of the form host.port or network.port if
a socket's address specifies a network but no specific host
address. When known, the host and network addresses are
displayed symbolically according to the data bases
/etc/hosts and /etc/networks, respectively. If a symbolic
name for an address is unknown, or if the -n option is
specified, the address is printed in the internet ``dot
format''; refer to inet(3N) for more information regarding
this format. Unspecified, or ``wildcard,'' addresses and
ports appear as `*'.
When netstat is invoked with an interval argument, it
displays a running count of statistics related to the
network interface. These statistics are the same as the
ones displayed with the -i option. Netstat continuously
displays the information regarding packet traffic on the
network interface, pausing interval seconds before printing
a new line to the screen.
Every 24th line of each screen of information contains a
summary of statistics accumulated since the system was last
rebooted or the statistics were last reset. Subsequent
lines of output show values accumulated over the preceding
interval.
SEE ALSO
inet(3N), routing(4), hosts(5), networks(5), protocols(5),
services(5).
Hewlett-Packard - 2 - (printed 7/16/86)