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
Authenticate AIX using MS DC’s kerberos servers (Active Directory)
Viewed 1981 times since Thu, Feb 21, 2019
Script HW/SW AIX
Viewed 8776 times since Mon, Jun 4, 2018
AIX Full memory dump configure
Viewed 3168 times since Mon, Jul 16, 2018
Trick to Purge/Clean Swap Usage on AIX
Viewed 7274 times since Thu, Nov 29, 2018
Create volume groups on AIX - Normal Big Scalable
Viewed 6465 times since Thu, Feb 21, 2019
AIX rootvg Mirroring
Viewed 4270 times since Mon, May 21, 2018
Useful AIX commands
Viewed 9099 times since Sun, Jun 17, 2018
The new VIOS performance advisor tool part util
Viewed 2986 times since Tue, Jun 4, 2019
AIX HA / HACMP, System Admin↑ Mountguard
Viewed 6197 times since Mon, Jun 3, 2019
Migrating AIX User Environments
Viewed 2006 times since Wed, May 30, 2018