Chapter 3 Basic Troubleshooting 3-23
3.3.4 netstat Command
The netstat command displays the network status.
3.3.4.1 Options
TABLE 3-9 describes options for the netstat command and how those options can
help troubleshoot the Sun Blade 1500 workstation.
# prtconf -D
System Configuration: Sun Microsystems sun4u
Memory size: 1024 Megabytes
System Peripherals (Software Nodes):
. . .
aliases
memory
virtual-memory
SUNW,UltraSPARC-IIIi, instance #0 (driver name: us)
memory-controller, instance #0 (driver name: mc-us3i)
pci, instance #0 (driver name: pcisch)
isa, instance #0 (driver name: ebus)
flashprom
rtc
i2c, instance #0 (driver name: pcf8584)
hardware-monitor, instance #0 (driver name: adm1031)
motherboard-fru-prom, instance #0 (driver name: seeprom)
dimm-spd, instance #1 (driver name: seeprom)
dimm-spd, instance #2 (driver name: seeprom)
clock-generator, instance #0 (driver name: ics951601)
. . .
TABLE 3-9 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.
Helps identify 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 MAC address for hosts on the subnet.