Operating System - HP-UX
1834204 Members
3088 Online
110066 Solutions
New Discussion

Re: how to list open connections and applications?

 
unixguy_1
Regular Advisor

how to list open connections and applications?

how to list open connections and applications for a particular user?

thanks in advanve.
Unixguy.
6 REPLIES 6
Torsten.
Acclaimed Contributor

Re: how to list open connections and applications?

I think the LSOF application is what you are looking for.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Steven E. Protter
Exalted Contributor

Re: how to list open connections and applications?

Shalom,

netstat -an | grep -i listen
# Shows you ever application listening. An application that is listening, is probably trying to server users.
lsof will let you see what a user is doing.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
unixguy_1
Regular Advisor

Re: how to list open connections and applications?

thanks for reply,

can you please provide the examble of lsof command?

what lsof command will do?

thanks in advance
Unixguy.

Torsten.
Acclaimed Contributor

Re: how to list open connections and applications?

see

http://hpux.connect.org.uk/hppd/hpux/Sysadmin/lsof-4.82/

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Nafez ALNajjar
Frequent Advisor

Re: how to list open connections and applications?

Hi,
Try:
netstat -a |grep -i

e.g
netstat -a |grep -i telnet
to get the current opened connections to your server and the running listener.

Regards,
Nafez ALNajjar
Viktor Balogh
Honored Contributor

Re: how to list open connections and applications?

for listing the applications of a specific user this is the recommended way:

# ps -fu USERNAME

for the open connection you can use netstat with the '-a' option like others said

****
Unix operates with beer.