- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Finding the port number information
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2003 02:13 AM
12-05-2003 02:13 AM
How to find out how many processes are getting served by a particular port number & related information..Is there any command which will give the above information, apart from 'rpcinfo'..Is the command 'lsof' will provide this information..if yes please provide me the lsof script & the options to use it.
if anybody is free..please provide me the solution asap...waiting for your prompt reply. :)
Thank You,
Best Regards,
Phani Varma P.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2003 02:15 AM
12-05-2003 02:15 AM
Re: Finding the port number information
Have you tried "netstat -an". Grep for the port number you want.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2003 02:16 AM
12-05-2003 02:16 AM
Re: Finding the port number information
http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/lsof-4.69/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2003 02:48 AM
12-05-2003 02:48 AM
Re: Finding the port number information
Thanks for your information..Can you give me the particular options/syntax to use lsof so that i can get the desired output.
Regards,
Phani
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2003 02:58 AM
12-05-2003 02:58 AM
Re: Finding the port number information
command will give you all ports and their associated process IDs.
you can do a grep.
lsof -i | grep 389
You can also use lsof with -k option to kill.
-Vijay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2003 03:20 AM
12-05-2003 03:20 AM
Solution# lsof -c your_command (will tell you all process that opened with 'your_command')
# lsof -p PID (open files from a process PID)
# lsof -u UID/user_name (open files for a user login)
# lsof -i tcp:200 (process list on the socket by tcp protocol)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2003 03:29 AM
12-05-2003 03:29 AM
Re: Finding the port number information
ftp://vic.cc.purdue.edu/pub/tools/unix/lsof/FAQ/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2003 04:16 AM
12-05-2003 04:16 AM
Re: Finding the port number information
e.g.
lsof -i tcp:80
lsof -i tcp:8080
Kaps