[prev in list] [next in list] [prev in thread] [next in thread]
List: hpux-admin
Subject: [HPADM] HP-Ux equivalent for "netstat -atcnp" & checking NIC bandwidth utilization
From: sunhux G <sunhux () gmail ! com>
Date: 2010-12-02 15:52:56
Message-ID: AANLkTinqjg7FWGjL9d147g=tkLROC_boCEm2=+MxCYP3 () mail ! gmail ! com
[Download RAW message or body]
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 #3 (text/html)]
<div>Hi</div><div><br></div><div><br></div><div>Q1:</div><div>I'm looking for a \
command or tool or script in HP-UX B11.11 that would</div><div>give me bandwidth \
utilization of a NIC (say lan0).</div><div><br></div><div> "netstat -i" \
gave input & output bytes but not the rate (ie kbits/sec \
or</div><div>Mbits/sec)</div><br><div><br></div><div>Q2:</div><div>Secondly, my HP-UX \
doesn't have lsof & it's a bit difficult for me to</div> <div>get Change \
approval to install one. On Solaris or Linux, I can issue</div><div>the following \
command to find out which process/app is listening on</div><div>a specific port. Any \
equivalent in HP-UX?</div><div><br></div> <div><span class="Apple-style-span" \
style="font-family: arial, helvetica, sans-serif; font-size: 12px; color: rgb(51, 51, \
51); "># netstat -atcnp | grep -i listen<br style="padding-top: 0px; padding-right: \
0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; \
margin-bottom: 0px; margin-left: 0px; "> tcp 0 0 <a \
href="http://0.0.0.0:9990">0.0.0.0:9990</a> 0.0.0.0:* \
LISTEN 4783/awservices<br style="padding-top: 0px; padding-right: 0px; \
padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; \
margin-bottom: 0px; margin-left: 0px; "> tcp 0 0 <a \
href="http://0.0.0.0:9991">0.0.0.0:9991</a> 0.0.0.0:* \
LISTEN 4783/awservices<br style="padding-top: 0px; padding-right: 0px; \
padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; \
margin-bottom: 0px; margin-left: 0px; "> tcp 0 0 <a \
href="http://0.0.0.0:4105">0.0.0.0:4105</a> 0.0.0.0:* \
LISTEN 4348/cam<br style="padding-top: 0px; padding-right: 0px; padding-bottom: \
0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; \
margin-left: 0px; "> tcp 0 0 <a \
href="http://127.0.0.1:2222">127.0.0.1:2222</a> 0.0.0.0:* \
LISTEN 15877/1<br style="padding-top: 0px; padding-right: 0px; padding-bottom: \
0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; \
margin-left: 0px; "> tcp 0 0 <a \
href="http://127.0.0.1:3310">127.0.0.1:3310</a> 0.0.0.0:* \
LISTEN 14810/clamd<br style="padding-top: 0px; padding-right: 0px; \
padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; \
margin-bottom: 0px; margin-left: 0px; "> tcp 0 0 <a \
href="http://0.0.0.0:5555">0.0.0.0:5555</a> 0.0.0.0:* \
LISTEN 20197/xinetd<br style="padding-top: 0px; padding-right: 0px; \
padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; \
margin-bottom: 0px; margin-left: 0px; "> tcp 0 0 <a \
href="http://0.0.0.0:21">0.0.0.0:21</a> 0.0.0.0:* \
LISTEN 4565/vsftpd<br style="padding-top: 0px; padding-right: 0px; \
padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; \
margin-bottom: 0px; margin-left: 0px; "> tcp 0 0 172.yy.xx.xx:7774 \
0.0.0.0:* LISTEN 4792/aws_orb<br style="padding-top: 0px; \
padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; \
margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "> tcp 0 0 \
:::47776 :::* LISTEN \
5217/aws_agtgate</span></div><div><span class="Apple-style-span" style="font-family: \
arial, helvetica, sans-serif; font-size: 12px; color: rgb(51, 51, 51); "><br> \
</span></div><div><span class="Apple-style-span" style="font-family: arial, \
helvetica, sans-serif; font-size: 12px; color: rgb(51, 51, 51); \
"><br></span></div><div><span class="Apple-style-span" style="font-family: arial, \
helvetica, sans-serif; font-size: 12px; color: rgb(51, 51, 51); ">U</span></div>
--
---> Please post QUESTIONS and SUMMARIES only!! <---
To subscribe/unsubscribe to this list, contact majordomo@dutchworks.nl
Name: hpux-admin@dutchworks.nl Owner: owner-hpux-admin@dutchworks.nl
Archives: ftp.dutchworks.nl/pub/digests/hpux-admin (FTP, browse only)
http://www.dutchworks.nl/htbin/hpsysadmin (Web, browse & search)
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic