Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Nov 2011 23:56:30 +0000
From:      Vincent Hoffman <vince@unsane.co.uk>
To:        FreeBSD Stable Mailing List <freebsd-stable@freebsd.org>
Subject:   question on netstat statistics.
Message-ID:  <4EC1AAAE.1030007@unsane.co.uk>

next in thread | raw e-mail | index | archive | help
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@banshee ~]# ifconfig -l
igb0 igb1 lo0 lagg0 lagg0.53 lagg0.52 pflog0 lagg0.66
[root@banshee ~]# for int in $(ifconfig -l) ; do netstat -I $int -s -f
inet; done
[root@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@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@ostracod.unsane.co.uk:/usr/obj/usr/src/sys/OSTRACOD  amd64
[root@ostracod ~]#
FreeBSD banshee.namesco.net 8.2-STABLE FreeBSD 8.2-STABLE #5: Wed Nov  2
14:53:03 GMT 2011    
toor@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@zfstest:/usr/obj/usr/src/sys/ZFSTEST  amd64







Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4EC1AAAE.1030007>