Operating System - HP-UX
1833875 Members
3155 Online
110063 Solutions
New Discussion

Monitoring of specific port without using NNM

 
SOLVED
Go to solution
M. Ismail
Advisor

Monitoring of specific port without using NNM

Hi *,

Is it possible to monitor specific port on HP-UX without using NNM(HP Openview).
Is there any simple tool to do this.

Regds,
Ismail.
No problem can stand the assault of sustained thinking.
5 REPLIES 5
Vijaya Kumar_3
Respected Contributor

Re: Monitoring of specific port without using NNM

Yes, there are many native unix tools available, few to mention

1. netstat
2. lsof
3. nmap

All these utilities can be used to check whether particular port is used or not.

You can write a small shell script around these utilities and can do monitor the port

Hope this helps
Vijay
Known is a drop, unknown is ocean - visit me at http://vijay.theunixplace.com
KapilRaj
Honored Contributor
Solution

Re: Monitoring of specific port without using NNM

Hi,

I have the following in one of the monitoring script

lsof -i tcp:

Regds,

Kaps
Nothing is impossible
M. Ismail
Advisor

Re: Monitoring of specific port without using NNM

Dear All,

Thanks a lot for your replies.

Dear Kapil,

Thanks a lot for your on dot answer to my query.

I have added '-r' to the lsof command to continously monitor the port.

"lsof -r -i tcp:"

Thanks and Regards,
Ismail.
"No problem can stand the assault of sustained thinking."
No problem can stand the assault of sustained thinking.
rick jones
Honored Contributor

Re: Monitoring of specific port without using NNM

If by monitor a port you mean see traffic to/from that port number, then you would want to use nettl or tcpdump or perhaps ethereal.
there is no rest for the wicked yet the virtuous have no pillows
M. Ismail
Advisor

Re: Monitoring of specific port without using NNM

Thanks a lot for all your help!!!

"No problem can stand the assault of sustained thinking"
No problem can stand the assault of sustained thinking.