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
Got Duplicate PVIDs in Your User VG? Try Recreatevg!
Viewed 3853 times since Fri, Feb 1, 2019
Tunneling With SSH to Your Destination
Viewed 4586 times since Wed, May 30, 2018
HMC: HMC and LPAR management commands
Viewed 7505 times since Sun, Jun 3, 2018
AIX - How to get CPU infomation
Viewed 6092 times since Fri, Jun 8, 2018
Installing a Interim Fix (APAR IV16587)
Viewed 3185 times since Tue, Jul 17, 2018
LVM: Extend an existing Volume Group by adding a new disk
Viewed 5842 times since Sat, Jun 2, 2018
Kerberos authentication configuration for AIX servers
Viewed 11256 times since Mon, Jun 25, 2018
IP configuration in AIX
Viewed 3027 times since Tue, Jul 17, 2018
Monitoring Events with AIX Audit
Viewed 4497 times since Wed, May 30, 2018
Problems with NFS on an AIX Reboot? Then Go Single
Viewed 7600 times since Wed, May 30, 2018