question on netstat statistics.
Vincent Hoffman
vince at unsane.co.uk
Mon Nov 14 23:56:34 UTC 2011
I've been trying to work out why my nfs mounts seem to be a little speed
limited (thats another email though) and though I'd go through the stats
netstat makes available.
>From the manpage
netstat -i | -I interface -s [-f protocol_family | -p protocol] [-M
core]
[-N system]
Display per-interface statistics for each network protocol,
for a
particular protocol_family, or for a single protocol.
I was expecting to be able to see at least some tcp/ip stats per
interface, but
[root at banshee ~]# ifconfig -l
igb0 igb1 lo0 lagg0 lagg0.53 lagg0.52 pflog0 lagg0.66
[root at banshee ~]# for int in $(ifconfig -l) ; do netstat -I $int -s -f
inet; done
[root at banshee ~]#
I can get system wide using netstat -s -f inet and if use netstat -I
$int -s I get a bunch of ipv6 stats.
and of course i can get the stats from netstat -I $int too.
Is this expected behaviour? if so maybe the manpage could be made a
little clearer.
Thanks,
Vince
ps tested on
[root at ostracod ~]# uname -a
FreeBSD ostracod.unsane.co.uk 9.0-RC1 FreeBSD 9.0-RC1 #15 r226879: Fri
Oct 28 22:25:26 BST 2011
toor at ostracod.unsane.co.uk:/usr/obj/usr/src/sys/OSTRACOD amd64
[root at ostracod ~]#
FreeBSD banshee.namesco.net 8.2-STABLE FreeBSD 8.2-STABLE #5: Wed Nov 2
14:53:03 GMT 2011
toor at banshee.lon.domain.com:/usr/obj/usr/src/sys/BANSHEE amd64
FreeBSD zfstest 9.0-RC2 FreeBSD 9.0-RC2 #0 r227497M: Mon Nov 14 16:14:54
GMT 2011 toor at zfstest:/usr/obj/usr/src/sys/ZFSTEST amd64
More information about the freebsd-stable
mailing list