Snoop, Netstat, Kstat – Sun Microsystems PCI User Manual
Page 47
Appendix B
Diagnostic Software and Troubleshooting
27
snoop
The snoop program captures and inspects network packets. See the snoop(1M)
man page for details. For example:
netstat
netstat
shows network status. See the netstat(1M) man page for details. For
example:
kstat
kstat
displays kernel statistics. See the kstat(1M) man page for details. For
example:
# snoop -d ibd1
Using device /dev/ibd1 (promiscuous mode)
ib-1-167 -> * ARP C Who is 199.1.1.168, ib-1-168 ?
ib-1-168 -> ib-1-167 ARP R 199.1.1.168, ib-1-168 is
0:2:4:7:0:0:0:0:a:4:7c:4f:0:2:c9:2:0:0:55:91
ib-1-167 -> ib-1-168 ICMP Echo request (ID: 35608 Sequence number: 0)
ib-1-168 -> ib-1-167 ICMP Echo reply (ID: 35608 Sequence number: 0)
# netstat -I ibd 4
input ibd1 output input (Total) output
packets errs packets errs colls packets errs packets errs colls
2458394 0 2458268 0 0 2467288 0 2465951 0 0
92233 0 92237 0 0 92247 0 92238 0 0
92703 0 92702 0 0 92709 0 92704 0 0
# kstat ibd:1
module: ibd instance: 1
name: ibd1 class: net
0
opackets 27381595
opackets64 27381595
promisc off xmt_badinterp
0
xmtretry 4