AIX: How to identify the program listening in the given port

METHOD I: # lsof –P –n –i :505 (for port 505)
METHOD II:
# netstat -Aan|grep 9404
f100060006952b98 tcp 0 0 *.9404 *.* LIST
EN
f100060006a90b98 tcp 0 0 *.19404 *.* LIST
EN
# rmsock f100060006952b98 tcpcb
The socket 0x6952808 is being held by proccess 753870 (java).

0 (0)
Article Rating (No Votes)
Rate this article
Attachments
There are no attachments for this article.
Comments
There are no comments for this article. Be the first to post a comment.
Full Name
Email Address
Security Code Security Code
Related Articles RSS Feed
AIX, user gets “pwd: The file access permissions do not allow the specified action.”
Viewed 11508 times since Tue, Mar 16, 2021
AIX - How to monitor CPU usage
Viewed 27845 times since Fri, Jun 8, 2018
AIX: Script to create a file with commands to remove missing & failed paths
Viewed 3380 times since Tue, Jun 12, 2018
Create jfs2 logical volume on AIX
Viewed 5136 times since Thu, Feb 21, 2019
How to setup an user in AIX
Viewed 4020 times since Mon, May 28, 2018
Mirroring the rootvg Volume Group for AIX
Viewed 4167 times since Mon, May 21, 2018
AIX Encrypted File System
Viewed 6064 times since Tue, Jul 17, 2018
Undocumented AIX command lquerypv
Viewed 3821 times since Mon, Jul 16, 2018
How to Analyze or Read OS Watcher Output in three easy steps -- With Example ?
Viewed 41898 times since Thu, Jun 21, 2018
Configuration of AIX Fast Connect and SMBFS
Viewed 8702 times since Mon, Jun 18, 2018