Operating System - HP-UX
1819871 Members
2680 Online
109607 Solutions
New Discussion юеВ

netstat -i <interval> differences: 10.20 vs. 11.0

 
Kathy Miller
New Member

netstat -i <interval> differences: 10.20 vs. 11.0

Is there any way in HP-UX 11.0 to get a count of packets across a network interface within a given interval? On 10.20 systems, you could issue a "netstat -i 5" command, and get the packet counts on the interfaces for every 5 seconds. (The first line would be the total since reboot or a reset of the statistics, and every line after would be the number of packets over the interface(s) for that 5 second interval.)

When I run "netstat -i 5" on an 11.0 system, I get the totals since reboot on every line - not the amount for that 5 second period. This makes debugging harder when you are trying to get an instantaneous count on how many packets went across the interface in that interval. The man page for netstat indicates that it still shows an interval count, but that is not the results I'm getting.

If anyone knows how to get an interval count, I'd really appreciate it if you'd share!

Thanks,

Kathy

6 REPLIES 6
eran maor
Honored Contributor

Re: netstat -i <interval> differences: 10.20 vs. 11.0

Hi Katty

you are rigth . this option was remove when moving to a the new version of HP-UX

over here is a command line to how to get this info in 11.00 and also for 10.20
HP-UX 11.0
#echo lan ppa {PPA#} display \\n \\n \\n quit | lanadmin -t

HP-UX 10.20
#echo lan nmid {NMID#} display \\n \\n \\n quit | lanadmin -t


also i found a nice doc that explen this missing that i giving a nice script to get the info .

look at this .


love computers
Abel Berger
Regular Advisor

Re: netstat -i <interval> differences: 10.20 vs. 11.0

Hi Kathy,

The netstat command has changed in 11.00 version.
Try this :
#lanadmin
Choose "lan" / "display" and look on the second screen.

I think this help.

Regards,

Abel Berger
Jim Turner
HPE Pro

Re: netstat -i <interval> differences: 10.20 vs. 11.0

Kathy,

If you have Glance installed, use the "Network By Interface" screen. The shortcut is "l" (ell, not one).

Cheers,
Jim
Kathy Miller
New Member

Re: netstat -i <interval> differences: 10.20 vs. 11.0

I'm afraid I don't have glance installed on all my systems, and I've always used netstat as a quick way to find out how many packets were being sent during an interval. I ended up placing a call to HP, who sent the ticket to a back line engineer. They informed me that they will be putting it in as an "enhancement request" (bug fix).

Thanks for your help!
Tony Lowrie
Advisor

Re: netstat -i <interval> differences: 10.20 vs. 11.0

Kathy

Why dont you do a lanadmin.

Select your ppa (ie ppa 4)
type clear
Start Timing( Using your watch) ie Interval of 1 minute
After 1 minute type display
This is your usage :
(Inbound Octets + Outbound Octets)/ 60 Seconds

This will give you an estimate
Life is like MTB - Ups and Downs - and Adrenalin
Kathy Miller
New Member

Re: netstat -i <interval> differences: 10.20 vs. 11.0

Thanks for the suggestion, Tony, but the situations where it proves most valuable to us has to do with figuring out where "bulk traffic" is going (such as backups) on an instantaneous basis. I'll start up a "netstat -i -I 5" command to make sure that backup or other applications that are network intensive are using the right network interfaces. Manually timing doesn't always work well in these situations. Since HP has recognized that this functionality does not work as stated in the "man" page, they hopefully will be creating a fix for it and making a release....