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 HA / HACMP, System Admin↑ Mountguard
Viewed 7373 times since Mon, Jun 3, 2019
Topics: AIX, System Admin↑ Export and import PuTTY sessions
Viewed 3279 times since Fri, Apr 19, 2019
AIX -- extending Logical Volumes online
Viewed 2991 times since Tue, Mar 12, 2019
AIX: Remove existing disk
Viewed 2891 times since Sun, Jun 3, 2018
AIX, Security, System Admin↑ Clearing password history
Viewed 2694 times since Fri, Apr 19, 2019
AIX - How to get CPU infomation
Viewed 6167 times since Fri, Jun 8, 2018
Remove disk from volumegroup in AIX
Viewed 7282 times since Tue, Apr 16, 2019
How to know witch process is running in a particular port on AIX using KDB
Viewed 13029 times since Thu, Nov 29, 2018
Authenticate AIX using MS DC’s kerberos servers (Active Directory)
Viewed 2373 times since Thu, Feb 21, 2019
How to setup an user in AIX
Viewed 4319 times since Mon, May 28, 2018