HP-UX Reference (11i v1 00/12) - 1 User Commands N-Z (vol 2)

__________________________________________________________________________________________________________________________________________________________________________________________________
__________________________________________________________________________________________________________________________________________________________________________________________________
STANDARD Printed by: Nora Chuang [nchuang] STANDARD
/build/1111/BRICK/man1/neqn.1
________________________________________________________________
___ ___
n
netstat(1) netstat(1)
-v Show additional routing information. When -v is used with the -r option,
netstat also displays the network masks in the route entries. This option only
applies to the -r option.
The arguments system and core allow substitutes for the defaults, /stand/vmunix and /dev/kmem.
If no options are specified, netstat displays the status of only active sockets. The display of active and
passive sockets status shows the local and remote addresses, send and receive queue sizes (in bytes), proto-
col, and the internal state of the protocol. Address formats are in two forms: host.port, or network.port if
the host portion of a socket address is zero. When known, the host and network addresses are displayed
symbolically by using gethostbyname() and getnetbyname(), respectively (see gethostent(3N)
and getnetent(3N)). If a symbolic name for an address is unknown, the address is displayed numerically
according to the address family. For more information regarding the Internet ‘‘dot format’’, refer to
inet(3N). Unspecified or ‘‘wildcard’’ addresses and ports appear as an asterisk (*).
The interface display provides a table of cumulative statistics regarding packets transferred, both inbound
and outbound. The network addresses of the interface and the maximum transmission unit (MTU) are
also displayed. When the interval argument is specified, netstat displays a running count of statistics
related to network interfaces. This display consists of a column for the first interface found during auto-
configuration and a column summarizing information for all interfaces. To display a running count of
statistics for a specific interface, use the
-I option. The first line of each screen of information contains a
summary since the system was last rebooted. Subsequent lines of output show values accumulated over
the preceding interval.
The routing table display indicates the available routes and their status. Each route consists of a destina-
tion host or network, a netmask and a gateway to use in forwarding packets. The
Flags field shows
whether the route is up (
U), whether the route is to a gateway (G), or whether the route is a host or net-
work route (with or without
H).
The Netmask field shows the mask to be applied to the destination IP address of an IP packet to be for-
warded. The result will be compared with the destination address in the route entry. If they are the same,
then the route is one of the candidates for routing this IP packet. If there are several candidate routes,
then the route with the longest Netmask field (contiguous 1’s starting from the leftmost bit position) will
be chosen. (see routing(7).)
The Gateway field shows the address of the immediate gateway for reaching the destination. It can be
the address of the outgoing interface if the destination is on a directly connected network.
The Interface field identifies which network interface is used for the route.
The Pmtu field displays the path maximum transmission unit (PMTU). If the route is created with a static
PMTU value (see route(1M)), the corresponding PMTU value permanently overrides the interface MTU.
Otherwise, the Pmtu value is the same as the MTU of the network interface used for the route.
DEPENDENCIES
X.25:
-a option does not list X.25 programmatic access information.
AUTHOR
netstat was developed by HP and the University of California, Berkeley.
SEE ALSO
hosts(4), networks(4), gethostent(3N), getnetent(3N), protocols(4), route(1M), ifconfig(1M), lanscan(1M),
lanadmin(1M), services(4).
HP-UX Release 11i: December 2000 2 Section 1561
___
___