netstat(1M) DG/UX R4.11MU05 netstat(1M)
NAME
netstat - show status for DG/UX network parameters
SYNOPSIS
netstat [ -Aainsrt ] [ [ -I interface ] interval ]
DESCRIPTION
The netstat command symbolically displays the contents of various
network-related data structures. The options are as follows:
-A Obsolete and ignored. This is equivalent to the default
display.
-a The state of all sockets; normally, sockets used by server
processes are not shown.
-i The state of interfaces that have been auto-configured
(interfaces statically configured into a system but not
located at boot time are not shown).
-n Network addresses as numbers (normally, netstat interprets
addresses and tries to display them symbolically).
-s Per-protocol statistics.
-r The routing tables.
-t Shows the local and remote addresses, send and receive queue
sizes (in bytes), protocol, and (optionally) the internal
state of the protocol for active sockets. This is the default
display.
-I interface
The interface specifies which interface should be displayed
when printing statistics with the interval option. Specify
interface as the name if the interface. i.e., -I inen0
When invoked with an interval argument, netstat continuously displays
a running count of statistics related to network interfaces. This
display shows two columns: one for all interfaces, and one for the
specified interface. The first line of each screen of information
contains a summary of activity since the system was last rebooted.
The netstat command pauses the number of seconds indicated by
interval before refreshing the screen. Subsequent lines of output
show values accumulated over the preceding interval.
If a socket's address specifies a network but no specific host
address, address formats are displayed in the form host-port or
network-port. When the host and network addresses are specified,
they are displayed symbolically according to the databases /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. Unspecified or wildcard addresses and
ports appear as *-.
The interface display provides a table of cumulative statistics on
packets transferred, errors, and collisions. The network address
(currently Internet-specific) of the interface and the maximum
transmission unit (mtu) are also displayed.
The routing table display 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 field shows the
state of the route (U if up), whether the route is to a gateway (G),
or whether the route is to a particular host (H). (Routes with an H
flag appear as the result of an ICMP redirect or someone using the
route(1M) command with the host parameter.) Direct routes are
created for each interface attached to the local host. The refcnt
field gives the current number of active uses of the route.
Connection-oriented protocols normally hold on to a single route
during a connection; protocols without connections obtain a route,
then discard it. The use field provides a count of the number of
packets sent using that route. The interface entry indicates the
network interface used for the route.
SEE ALSO
route(1M), hosts(4), networks(4), protocols(4), services(4).
Licensed material--property of copyright holder(s)