Operating System - HP-UX
1753468 Members
4517 Online
108794 Solutions
New Discussion юеВ

Howto find out which programm is running on port xx

 

Howto find out which programm is running on port xx

Hello together,
i have a little problem, as some program always listens on the ports i want to start my tomcat on.
I know on linux there is lsof or i can use netstat for getting the Pid running on a special port. Is there any way to find that out in hpux without installing lsof?
Netstat doesnt know -p

Thanks
Peter
Wer meint gut zu sein hat es verpasst besser zu werden!
5 REPLIES 5
Arunvijai_4
Honored Contributor

Re: Howto find out which programm is running on port xx

Hello Peter,

You can install "lsof" depot from,
http://hpux.connect.org.uk/hppd/hpux/Sysadmin/lsof-4.75/

Without lsof, it is hard to find out.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Muthukumar_5
Honored Contributor

Re: Howto find out which programm is running on port xx

You can not find with netstat in hp-ux for the PID. It is very hard one. Installation of lsof tool is simple.

Use swinstall or sam and install it. You can start to use it. It will not take much time or energy ;)

--
Muthu
Easy to suggest when don't know about the problem!
Arunvijai_4
Honored Contributor

Re: Howto find out which programm is running on port xx

Hi peter,

You can take a look at /etc/services for any configured services on HP-UX. "man services" for more information.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"

Re: Howto find out which programm is running on port xx

Hi,

i dont wanted to use lsof cause i need to install it and i got no root privileges on that machine.
But i just maled the admin to do so.
Thanks for you answers

greetings
Wer meint gut zu sein hat es verpasst besser zu werden!
Arunvijai_4
Honored Contributor

Re: Howto find out which programm is running on port xx

A similar thread, http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=805952

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"