[HPADM] Re: HP-Ux equivalent for "netstat -atcnp" & checking NIC bandwidth utilization
- From: daniel parkes <liquidsmail@xxxxxxxxx>
- Date: Fri, 3 Dec 2010 13:13:24 +0100
I have attached the script to the full list, because several people asked me
about it.
On Thu, Dec 2, 2010 at 8:23 PM, daniel parkes <liquidsmail@xxxxxxxxx> wrote:
Hi,
for Q1:
You can allways use glance or performance agent, if you have them
installed?
if note there is a really nice perl script, that tells you the actual live
bandwith
It gives you this kind of output, if you are interested I can send it over,
let me know
root@on:/usr/local/bin> ./Netbandwith.pl
Network ststistics
kbits/s packets/s kbits/pkt
In:Out In:Out In:Out
846.323 : 2.475 360 : 3 2.35 : 0.83
951.211 : 0.241 364 : 0 2.61 : 1.20
You also have netperf, but it's more a benchmarker/troubleshooter than a
network live monitor
Q2:
I allways use lsof nowadays so I wouldn't know, nothing I can think of
On Thu, Dec 2, 2010 at 4:52 PM, sunhux G <sunhux@xxxxxxxxx> wrote:
Hi
Q1:
I'm looking for a command or tool or script in HP-UX B11.11 that would
give me bandwidth utilization of a NIC (say lan0).
"netstat -i" gave input & output bytes but not the rate (ie kbits/sec or
Mbits/sec)
Q2:
Secondly, my HP-UX doesn't have lsof & it's a bit difficult for me to
get Change approval to install one. On Solaris or Linux, I can issue
the following command to find out which process/app is listening on
a specific port. Any equivalent in HP-UX?
# netstat -atcnp | grep -i listen
tcp 0 0 0.0.0.0:9990 0.0.0.0:*
LISTEN 4783/awservices
tcp 0 0 0.0.0.0:9991 0.0.0.0:*
LISTEN 4783/awservices
tcp 0 0 0.0.0.0:4105 0.0.0.0:*
LISTEN 4348/cam
tcp 0 0 127.0.0.1:2222 0.0.0.0:*
LISTEN 15877/1
tcp 0 0 127.0.0.1:3310 0.0.0.0:*
LISTEN 14810/clamd
tcp 0 0 0.0.0.0:5555 0.0.0.0:*
LISTEN 20197/xinetd
tcp 0 0 0.0.0.0:21 0.0.0.0:*
LISTEN 4565/vsftpd
tcp 0 0 172.yy.xx.xx:7774 0.0.0.0:*
LISTEN 4792/aws_orb
tcp 0 0 :::47776 :::*
LISTEN 5217/aws_agtgate
U
Attachment:
Netbandwith.pl
Description: Perl program
- Follow-Ups:
- References:
- Prev by Date: [HPADM] Re: HP-Ux equivalent for "netstat -atcnp" & checking NIC bandwidth utilization
- Next by Date: [HPADM] Re: HP-Ux equivalent for "netstat -atcnp" & checking NIC bandwidth utilization
- Previous by thread: [HPADM] Re: HP-Ux equivalent for "netstat -atcnp" & checking NIC bandwidth utilization
- Next by thread: [HPADM] Re: HP-Ux equivalent for "netstat -atcnp" & checking NIC bandwidth utilization
- Index(es):
Relevant Pages
|