[HPADM] Re: HP-Ux equivalent for "netstat -atcnp" & checking NIC bandwidth utilization



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



Relevant Pages

  • Re: assigning multiple ip addresses to NIC on bootupm, how?
    ... rc.local is the last script run and ... he doesnt need the logical interfaces active before httpd runs ... "Listen" options in httpd.conf - which means that Apache is listening on ... [root@tregonwell root]# ifconfig eth0:1 192.168.0.140 ...
    (Fedora)
  • Re: Britishisms
    ... That is, I'm listening to each series in the normal order, but ... series by series in reverse order, ... Graeme Garden wanted to get paid for a radio programme without all that tedious script writing which took weeks of effort. ... Do you want a copy of the Christmas 2007 special, "Humph in Wonderland"? ...
    (alt.usage.english)
  • Re: openldap slapd startup delay
    ... and it's listening on hosts that are name-resolvable via ... a script, it starts straight away. ...
    (freebsd-current)
  • Re: Linux Firewall
    ... I run a stand-alone Linux workstation connected to broadband via a ... Does the following firewall script make sense to you guys(it seems to ... I have only recently migrated to Linux (Suse) from M$ XP Pro. ... use this command to see if you have anything listening: ...
    (comp.os.linux.security)
  • Re: SSH Tunneling of X protocol from non-interactive session
    ... > Mihai Osian wrote: ... you have to prepare script on ... It should be listening. ... I can go to another machine, point display to M:0.0 and open a terminal. ...
    (comp.os.linux.x)