Chapter 9 Solaris 10 Predictive Self-Healing and Solaris Diagnostics 9-11
9.5.4 netstat Command
The netstat command displays the network status.
9.5.4.1 Options
TABLE 9-5 describes options for the netstat command and how those options can
help troubleshoot the Sun Ultra 45 or Ultra 25 workstation.
TABLE 9-5 Options for netstat
Option Description How It Can Help
-i
Displays the interface state,
including packets in/out, error
in/out, collisions, and queue.
Provides a quick overview of the system’s network
status.
-i interval Providing a trailing number
with the
-i option repeats the
netstat command every
interval seconds.
Identifies intermittent or long-duration network events.
By piping
netstat output to a file, overnight activity
can be viewed all at once.
-p
Displays the media table. Provides Media Access Controller (MAC) address for
hosts on the subnet.
-r
Displays the routing table. Provides routing information.
-n
Replaces host names with IP
addresses.
Used when an address is more useful than a host name.