B-16 SPARC Enterprise M4000/M5000 Servers Installation Guide • December 2010
B.3.4 Using the netstat CommandThe netstat command displays the network status.
B.3.4.1 Options
TABLEB-6 describes options for the netstat command and how those options can
help troubleshooting.
The following example shows output for the netstat -p command.
TABLEB-6 Options for netstat
Option Description HowIt Can Help
-i Displays the interface state,
including packets in/out, error
in/out, collisions, and queue.
Providesa quickoverview of the network status.
-i interval Providinga trailing number
with the -i option repeatsthe
netstat command every
interval seconds.
Identifiesintermittent or long durationnetwork events.
By piping netstat output to a file, overnight activity
can be viewed all at once.
-p Displays the media table. ProvidesMAC address for hosts on the subnet.
-r Displays the routingtable. Providesrouting information.
-n Replaces host names with IP
addresses.
Used when an addressis more useful than a host name.
#netstat -p
Net to Media Table: IPv4
Device IP Address Mask Flags Phys Addr
------ -------------------- --------------- -------- ---------------
bge0 san-ff1-14-a 255.255.255.255 o 00:14:4f:3a:93:61
bge0 san-ff2-40-a 255.255.255.255 o 00:14:4f:3a:93:85
sppp0 224.0.0.22 255.255.255.255
bge0 san-ff2-42-a 255.255.255.255 o 00:14:4f:3a:93:af
bge0 san09-lab-r01-66 255.255.255.255 o 00:e0:52:ec:1a:00
sppp0 192.168.1.1 255.255.255.255
bge0 san-ff2-9-b 255.255.255.255 o 00:03:ba:dc:af:2a
bge0 bizzaro 255.255.255.255 o 00:03:ba:11:b3:c1
bge0 san-ff2-9-a 255.255.255.255 o 00:03:ba:dc:af:29
bge0 racerx-b 255.255.255.255 o 00:0b:5d:dc:08:b0
bge0 224.0.0.0 240.0.0.0 SM 01:00:5e:00:00:00
#