Xymon Mailing List Archive search

netstat -s output for hpux 11.11 (11i)

list Dominique Frise
Mon, 24 Apr 2006 07:31:03 +0200
Message-Id: <user-9cd43b43bf16@xymon.invalid>

Henrik Stoerner wrote:
On Wed, Apr 05, 2006 at 07:22:00PM +0200, user-bb3e9041f07f@xymon.invalid wrote:
$ uname -r
B.11.11
$ netstat -s
tcp:
       90934926 packets sent

I already have the "netstat -s" output, but is statistics for TCP/IP.
What I'm after right now is statistics about the physical network
interfaces - how many bytes have been received and transmitted through
the Ethernet network-card.

From the public man-pages, it seems this might be the "netstat -in"
command. What output does that give on HP-UX ?

(I'd like the same info for Darwin, but I don't know what commands you  must use. If it's like the *BSD systems, perhaps "netstat -i -b -n" ?)
zelda2:~ root# uname -a
Darwin zelda2.unil.ch 8.6.0 Darwin Kernel Version 8.6.0: Tue Mar  7 16:58:48 PST 2006; root:xnu-792.6.70.obj~1/RELEASE_PPC Power Macintosh powerpc

zelda2:~ root# netstat -ibn
Name  Mtu   Network       Address            Ipkts Ierrs     Ibytes    Opkts Oerrs     Obytes  Coll
lo0   16384 <Link#1>                        994100     0   96177441   994100    0   96177441     0
lo0   16384 127           127.0.0.1         994100     -   96177441   994100    -   96177441     -
lo0   16384 ::1/128     ::1                 994100     -   96177441   994100    -   96177441     -
lo0   16384 fe80::1%lo0 fe80::1             994100     -   96177441   994100    -   96177441     -
gif0* 1280  <Link#2>                             0     0          0        0    0          0     0
stf0* 1280  <Link#3>                             0     0          0        0    0          0     0
en0   1500  <Link#4>    00:0d:93:9d:eb:3a 2013711826     0 2131205566781 331648829     0 41815551289     0
en0   1500  fe80::20d:9 fe80::20d:93ff:fe 2013711826     - 2131205566781 331648829     - 41815551289     -
en0   1500  130.223.20/24 130.223.20.20   2013711826     - 2131205566781 331648829     - 41815551289     -
en1*  1500  <Link#5>    00:0d:93:9d:eb:3b        0     0          0        0    0          0     0
fw0*  4078  <Link#6>    00:14:51:ff:fe:1e:f4:ce        0     0          0    0     0          0     0


Dominique