Operating System - HP-UX
1752567 Members
5167 Online
108788 Solutions
New Discussion юеВ

Network I/O activity report (bandwidth utilisation)

 
Kuntal Gupta
Frequent Advisor

Network I/O activity report (bandwidth utilisation)

OS: HP-UX, 11.31
Box:rx-8640

Hi all,

Would any body pls inform me the command to monitor the I/O (bandwidth utilisation)of a lan and fc port.

Note: Glance is not installed and pls don't refer SIM, I want the command line.

Regards...

Kuntal
6 REPLIES 6
Michal Kapalka (mikap)
Honored Contributor

Re: Network I/O activity report (bandwidth utilisation)

hi,

for the FC you could use "fcmsutil"

in a loop command.

mikap
Kuntal Gupta
Frequent Advisor

Re: Network I/O activity report (bandwidth utilisation)

Mr Michal,

Thanks for your reply

I am new to HP-UX, could not understood

>in a loop command

would you pls elaborate.

Regards...

Kuntal

Michal Kapalka (mikap)
Honored Contributor

Re: Network I/O activity report (bandwidth utilisation)

hi,

normally if you execute the command with some switches they will generate some output, but the data will be actual only when you enter the command if you like to have current data for example each 5 seconds you could use some loop.

while true ; do ..... && sleep 5 ; done

for i in 100; do ..... && sleep 5 ; done

it was only a example how to collect the data.

mikap
Hakki Aydin Ucar
Honored Contributor

Re: Network I/O activity report (bandwidth utilisation)


Actually I do not have 11iv3 version to test but, may be you can use lanadmin ?
OR
nwmgr
Deeos
Regular Advisor

Re: Network I/O activity report (bandwidth utilisation)

Hi,

Do the following steps:

#lanscan

it will let you know lancard ppa number.

like as:
Hardware Station Crd Hdw Net-Interface NM MAC HP-DLPI DLPI
Path Address In# State NamePPA ID Type Support Mjr#
0/3/1/0/6/0 0x00215A9D906F 0 UP lan0 snap0 1 ETHER Yes 119
0/4/2/0 0x001A4B0985BC 1 UP lan1 snap1 2 ETHER Yes 119
0/7/1/0/6/0 0x00215A9D9071 3 UP lan3 snap3 3 ETHER Yes 119
0/4/2/1 0x001A4B0985BD 2 UP lan2 snap2 4 ETHER Yes 119


then use

#lanadmin -x 0

Speed = 1000 Full-Duplex.
Autonegotiation = On.


for more details, see man page of lanadmin




Regards
Deeos
Deepak
Bill Hassell
Honored Contributor

Re: Network I/O activity report (bandwidth utilisation)

For 11.31, nwmgr is recommended by HP, but it's output for statistics difficult to parse. Use lanadmin -g

You can clear the counts with lanadmin -c

NOTE: is the lan number (lan0=0, lan12=12, etc)

lanadmin -g 0
lanadmin -c 0
lanadmin -g 0

Usually a request for lan throughput may indicate that the duplex is mismatched. You can verify this with the last half of the lanadmin -g output. For 100Mbit or higher, there should be zero collisions, Alignment or FCS errors.

To track the actual throughput, you would write a script that runs lanadmin -g om each of your LAN cards, extract the inbound and output octets and then compute the difference. Have the script write the result to syslog using logger and put in an infinite loop with a sleep for 5 or 10 mins between reading.


Bill Hassell, sysadmin