Sun Microsystems Sun Workstation 100U System Manager's Manual page 215

Table of Contents

Advertisement

NET STAT (8)
MAINTENANCE COMMANDS
NETSTAT(8)
NAME
netstat - show network status
SYNOPSIS
net.tat
I
-Aahlmn ... )
I
-a )
I
interval) lSI/stem)
I
core
I
DESCRIPTION
Netstat symbolically displays the contents of various network-related data structures.
OPTIONS
-A
show the addre88 of any associated protocol control blocks; used for debugging.
60
-a
-h
-I
-m
-n
show the state of all sockets; normally sockets used by server processes are not shown
show the state of the IMP host table
show the state of interfaces which have been
aut~configured
(interfaces statically
configured into a system, but not located at boot time are not shown)
show statistics recorded by the memory management routines (the network manages a
"private share" of memory)
show network addresses as numbers (normally netstat interprets addresses and attempts
to display them symbolically). proto;
-a
show per-protocol statistics
-I'
show the routing tables
The arguments, sl/stem and core allow substitutes for the defaults" Ivmunix" and" Idev Ikmem".
If an
interval is specified, netstat will continuously display the information regarding packet traffic
on the configured network interfaces, pausing interval seconds before refreshing the screen.
There are a number of display formats, depending on the information presented. The default
display, tor active sockets, shows the local and remote addresses, send and receive queue sizes (in
bytes), protocol, and, optionally, the internal state of the protocol.
Address formats are of the form "host.port" or "network.port" it 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
I
etcl hOltl
and
I
etcl
networ~I,
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 tormat. Unspecified,
or "wildcard", addresses and ports appear
31
"*".
The
interrac~
display provides a table of cumulative statistics regarding packets transferred,
errors, and collisions. The network address (currently Internet specific)
ot
the interface and the
maximum transmission unit ("mtu") are also displayed.
. t:\
~
\ .
,
The routing tabi~ diaplay indicates the available routes and their status. Each route consists
ot
a
destination host or network and a gateway to uee in forwarding packets. The flags field shows the
state of the route (IIU
n
if "up"), and whether the route is to a gateway
(uG").
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 Dormally hold on to a siDgle route for the
duration of a connection while connectionless protoeois obtain a route then discard it. The uee
field provides a count
ot
the number or packets sent using that route. The interrace entry indi-
cates the network interface utilized tor the route.
When netstat is invoked with
an
intertltJl argument, it displays a running count
ot
statistics
related to network interfaces. This display consists of a column summarizing information for all
interfaces, and a column tor the interface with the most traffic since the system was last rebooted.
The first line of each screen of information contains a summary since the system was last
rebooted.
Subsequen~
lines
ot
output show values accumulated over the preceding interval.
Last change:
3
January
1084
Sun Release 1.1

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sun workstation 150u

Table of Contents