It is very hard to get bytes out of HP-UX. Is this an answer for you?
Lars
# lanadmin -g mibstats 0
LAN INTERFACE STATUS DISPLAY
Sun, Apr 23,2006 15:51:14
PPA Number = 0
Description = lan0 Hewlett-Packard LAN Interface Hw Rev
0
Type (value) = ethernet-csmacd(6)
MTU Size = 1500
Speed = 10000000
Station Address = 0x80009a35c3b
Administration Status (value) = up(1)
Operation Status (value) = up(1)
Last Change = 300198077
Inbound Octets = 3111235429
Inbound Unicast Packets = 16596539
Inbound Non-Unicast Packets = 2554519
Inbound Discards = 75971167
Inbound Errors = 27
Inbound Unknown Protocols = 58
Outbound Octets = 3892111463
Outbound Unicast Packets = 118413162
Outbound Non-Unicast Packets = 956287
Outbound Discards = 21849
Outbound Errors = 0
Outbound Queue Length = 0
Specific = 655367
Ethernet-like Statistics Group
Index = 1
Alignment Errors = 0
FCS Errors = 0
Single Collision Frames = 375927
Multiple Collision Frames = 156248
Deferred Transmissions = 27291198
Late Collisions = 0
Excessive Collisions = 0
Internal MAC Transmit Errors = 0
Carrier Sense Errors = 324
Frames Too Long = 0
Internal MAC Receive Errors = 0
----- Original Message -----
From: "Henrik Stoerner" <user-ce4a2c883f75@xymon.invalid>
To: <user-ae9b8668bcde@xymon.invalid>
Sent: Sunday, April 23, 2006 2:16 PM
Subject: [hobbit] Re: netstat -s output for hpux 11.11 (11i)
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" ?)
Regards,
Henrik