Technical data
netstat
netstat
Displays network-related data in various formats.
Format
netstat [-rn] | [-an] [-f address_family][interval]
netstat [-abd"H"im"M"nrstv] [-f address_family][interval]
netstat [-ntdz] ["-I" interface][interval]
netstat [-i] [-p protocol]
Description
The interval argument specifies in seconds the interval for updating and
displaying information. The first line of the display shows cumulative statistics;
subsequent lines show statistics recorded during interval.
Default display
When used without flags, the
netstat
command displays a list of active sockets
for each protocol. The default display shows the following items:
• Local and remote addresses
• Send and receive queue sizes (in bytes)
• Protocol
• State
Address formats are of the form host.port or network.port if a socket’s address
specifies a network but no specific host address. The host and network address
are displayed symbolically unless
-n
is specified.
Interface display
The network interface display provides a table of cumulative statistics for the
following:
• Interface name (Name)
• Maximum transmission unit (Mtu)
• Network address
• Packets received (Ipkts)
• Packets received in error (Ierrs)
• Packets transferred (Opkts)
• Outgoing packets in error (Oerrs)
• Collisions (Coll)
Note that the collisions item has different meanings for different network
interfaces.
• Drops (optional with
-d
)
A–18 Troubleshooting Utilities Reference