Operating System - HP-UX
1833555 Members
3165 Online
110061 Solutions
New Discussion

Re: Sent and received bytes

 
SOLVED
Go to solution
Lars Ebeling
Frequent Advisor

Sent and received bytes

Dear All,

is there a standard utility that shows number of bytes sent and received on a LAN.

I think netstat shows packets of variable sizes.

Regards
Lars Ebeling
12 REPLIES 12
GGA
Trusted Contributor
Solution

Re: Sent and received bytes

hello
lanadmin
regards gga
saju_2
Respected Contributor

Re: Sent and received bytes

HI

First identity which lan card you want to monitor

If it is lan3

go to lanadmin--- select lan option
change the ppa to the ppa of lan3 (By default it will show statistics for ppa 0)

then select display. It will show inforamtion which you require.

For EG:

PPA Number = 3
Administration Status (value) = up(1)
Operation Status (value) = up(1)
Last Change = 12264
Inbound Octets = 3682939576
Inbound Unicast Packets = 2020740849
Inbound Non-Unicast Packets = 5897825
Inbound Discards = 0
Inbound Errors = 0
Inbound Unknown Protocols = 269
Outbound Octets = 2440647445
Outbound Unicast Packets = 547209813
Outbound Non-Unicast Packets = 944109
Outbound Discards = 0
Outbound Errors = 0
Outbound Queue Length = 0
Specific = 655367
Index = 7
Alignment Errors = 0
FCS Errors = 0
Single Collision Frames = 0
Multiple Collision Frames = 0
Deferred Transmissions = 0
Late Collisions = 0
Excessive Collisions = 0
Internal MAC Transmit Errors = 0
Carrier Sense Errors = 0
Frames Too Long = 0
Internal MAC Receive Errors = 0



Regards
CS
Lars Ebeling
Frequent Advisor

Re: Sent and received bytes

I had a look at lanadmin manpages. I can't find any option for Immediate mode. I want to use the command in a script.

Thanks
Lars
Bharat Katkar
Honored Contributor

Re: Sent and received bytes

HI Lars,
You can use lanadmin and follow thr' the menu as:

# lanadmin
lan
ppa
display

This will display all statistics including incoming/outgoing packets.

Regards,
You need to know a lot to actually know how little you know
Lars Ebeling
Frequent Advisor

Re: Sent and received bytes

Thanks

I tested this:
# lanadmin <> lan
> ppa 0
> display
> quit
> EOF

And that worked.

Regards
Lars

Lars Ebeling
Frequent Advisor

Re: Sent and received bytes

Next question about bytes. Is there a way to see bytes/sec?

A command to be used in a script.

Regards
Lars
Bharat Katkar
Honored Contributor

Re: Sent and received bytes

HI Lars,
DO you have glance installed. If so you can just go through it (see man glance) and you will get a exact command to monitor network traffic.

If glance is not availble, install it (free for 60 days) or use perfview.

Regards,


You need to know a lot to actually know how little you know
Lars Ebeling
Frequent Advisor

Re: Sent and received bytes

The background to my questions. I lost my job one year ago. I got HP-UX servers with me when I left (D380 with 11.11). Now I am working with the Hobbit-monitor software.
This means that I need totally free software.

Regards
Lars
Bharat Katkar
Honored Contributor

Re: Sent and received bytes

I don't mind if you pay for glance :).
But if purchasing is not possible then either go with the evaluation copy or free software.
GlancePlus is available on the CD that ship with HPUX CD Set.

Regards,


You need to know a lot to actually know how little you know
Muthukumar_5
Honored Contributor

Re: Sent and received bytes

netstat -ivn is the best utility to get lan statistics.

#!/bin/ksh
# status.ksh
while [[ 1 ]]
do
netstat -ivn
sleep 5
clear
done

# chmod u+x status.ksh
# ./status.ksh &

hth.
Easy to suggest when don't know about the problem!
Lars Ebeling
Frequent Advisor

Re: Sent and received bytes

My conclusion is that there is no standard utility that shows bytes sent and received/sec
rick jones
Honored Contributor

Re: Sent and received bytes

Actually, if you are up on contemporary patches, lanadmin with the -g option is an "immediate mode"

lanadmin -g mibstats

I think that is available even as far back as 11.0.
there is no rest for the wicked yet the virtuous have no pillows