1846763 Members
4857 Online
110256 Solutions
New Discussion

Re: ports/lsof

 
SOLVED
Go to solution
Nobody's Hero
Valued Contributor

ports/lsof

Get an error message when starting Openview, snmp trap port 162 is busy. Im trying to use lsof to find out who has that port in use. Can someone tell me what the command is. I've tried about 150 different ones.
UNIX IS GOOD
4 REPLIES 4
Craig Rants
Honored Contributor

Re: ports/lsof

This should help

http://gatekeep.cs.utah.edu/hppd/hpux/Sysadmin/lsof-4.55/man.html

GL,
C
"In theory, there is no difference between theory and practice. But, in practice, there is. " Jan L.A. van de Snepscheut
S.K. Chan
Honored Contributor
Solution

Re: ports/lsof

What you can do is stop all you Openview process (eg: the pmd and ovtrapd which uses port 162), then run
# netstat -an|grep 162
to see is there anythng else running on that port.
S.K. Chan
Honored Contributor

Re: ports/lsof

If you have lsof, the syntax would be

# lsof -i:162
harry d brown jr
Honored Contributor

Re: ports/lsof

Robert,

# /usr/local/bin/lsof -P|grep -e "\:161 " -e "\:162 "
snmpdm 981 root 5u inet 0x42d88400 0t0 UDP *:161 (Idle)
#



live free or die
harry
Live Free or Die