- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Who & what process has port open ?
Categories
Company
Local Language
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- This widget could not be displayed.This widget could not be displayed.This widget could not be displayed.This widget could not be displayed.This widget could not be displayed.This widget could not be displayed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2004 02:17 AM
11-08-2004 02:17 AM
HP-UX B.11.11 U 9000/800/A500-7X
Hello HP,
How do I figure out "who" or "what process"
has a port open?
Info from "netstat -a" :
Proto Recv-Q Send-Q Local Address Foreign Address (state)
tcp 0 0 hohp120.6011 hohp120.58438 ESTABLISHED
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2004 02:19 AM
11-08-2004 02:19 AM
Re: Who & what process has port open ?
Regards,
Fred
"Reality is just a point of view." (P. K. D.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2004 02:23 AM
11-08-2004 02:23 AM
Re: Who & what process has port open ?
#lsof -ufoo
option pro-duces a listing of all network files OR files belonging to processes owned by user ``foo''.
Regards,
P.Naidu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2004 02:26 AM
11-08-2004 02:26 AM
SolutionSearch the forums for 'lsof' to find the depot for 11i. Once it is downloaded, run 'lsof -i tcp:6011'. It will show the process listening at 6011 with it's owner.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2004 02:44 AM
11-08-2004 02:44 AM
Re: Who & what process has port open ?
lsof is good adivce
available at http://hpux.connect.org.uk/
netstat -a|grep tcp|cut -f2 -d"."|while read a b
do
lsof -i tcp:$a 2>/dev/null
done|sort -u
Is fun
Steve Steel