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
How to Maintain a Virtual I/O Server With FBO Part II
Viewed 11573 times since Wed, Jun 5, 2019
Using Shell Redirection: All About the Here-Doc
Viewed 11632 times since Wed, May 30, 2018
Topics: AIX, Networking, System Admin
Viewed 12592 times since Fri, Apr 19, 2019
Script to reset NIM state and deallocate resources
Viewed 3404 times since Thu, Feb 21, 2019
Part 1, Memory overview and tuning memory parameters AIX7
Viewed 5851 times since Wed, Jun 19, 2019
SNAP in AIX
Viewed 13091 times since Mon, Sep 17, 2018
How To Mirror Your Root Disk On AIX (a.k.a. rootvg)
Viewed 7728 times since Mon, May 21, 2018
Using AIX VG mirroring in combination with hardware snapshots
Viewed 6395 times since Sat, May 25, 2019
Create jfs2 logical volume on AIX
Viewed 6420 times since Thu, Feb 21, 2019
What is OS Watcher Utility and How to use it for Database Troubleshooting ?
Viewed 32463 times since Thu, Jun 21, 2018