1833875 Members
1970 Online
110063 Solutions
New Discussion

Re: NIC throughput

 
SOLVED
Go to solution
Julio Porras_1
Occasional Advisor

NIC throughput

I have an rp5470 with several NICs (1 ATM, 1 FDDI, 1 GBIT, 1 Fast ethernet) and I would like to monitor bandwidth or traffic sent throu each of these NICs. Is there a tool in HP-UX for this? like a bandwidth meter?
6 REPLIES 6
Sridhar Bhaskarla
Honored Contributor

Re: NIC throughput

Hi Julio,

"Measureware" can get you that information. It's a licensed product so you will have to purchase it.

Once it is installed, up and running, it will collect the metrics of all the network interfaces and you can get the historical data (BYNETIF metrics) anytime using the command 'extract' and import it into excel. If you have perfview, you can view the data graphically.

Measureware is a nice to have tool. There are other products also in the market but this is found to be widely used on HP systems.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
RAC_1
Honored Contributor
Solution

Re: NIC throughput

Use the following script.

#Script for chekcing lan i/p and o/p stats.

let z=0

let y=$(lanadmin -g mibstats 0|grep -i oct|grep Inbound|awk '{print $4}')

let y2=$(lanadmin -g mibstats 0|grep -i oct|grep Outbound|awk '{print $4}')

while true

do

let x=0

sleep 1

x=$(lanadmin -g mibstats 0|grep -i oct|grep Inbound|awk '{print $4}')

x2=$(lanadmin -g mibstats 0|grep -i oct|grep Outbound|awk '{print $4}')

let t=$x-$y

let t2=$x2-$y2

let y=$x

let y2=$x2

let z=$z+1

let t=$t/1000

let t2=$t2/1000

echo "${t} Kb/s inbound, ${t2} Kb/s outbound"

done

Anil
There is no substitute to HARDWORK
Bharat Katkar
Honored Contributor

Re: NIC throughput

Hi,
Glance is the best option if you have it.. it is a priced product.
If you don't have one then you can use "lanadmin" to see the traffic (packet level) on each NIC.

Regards,
You need to know a lot to actually know how little you know
Julio Porras_1
Occasional Advisor

Re: NIC throughput

Great script RAC, you got 9 points for it. It worked great for my ethernet and FDDI NICs. Unfortunately, it does not work for my ATM NIC, since it wont show up on lanadmin. Why is that so?

Thank you all for your responses. Any other feedback appreciated.
RAC_1
Honored Contributor

Re: NIC throughput

You may also look at by_net metrics og glance. This will give you same thing that script gives. And you will have lot of options there.

you look at examples in /var/opt/prf/adviser/examples.

Anil
There is no substitute to HARDWORK
rick jones
Honored Contributor

Re: NIC throughput

An ATM NIC is not a "LAN" NIC so it doesn't work with landiag. There is/was (IIRC) a similar utility for ATM - the ATM docs on docs.hp.com would be the place to go.

If you don't want to go the glance/Measureware route, if you have SNMP enabled, you could get OpenView to monitor the octet counters in the interface MIBs, or you could try to use mrtg.
there is no rest for the wicked yet the virtuous have no pillows