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 6/7 Script to create a file with commands to remove missing and failed paths
Viewed 5590 times since Tue, Jun 14, 2022
AIX oslevel version OS
Viewed 5801 times since Wed, Apr 17, 2019
SSH-COPY-ID on AIX. SSH remote AIX’s box without password
Viewed 19272 times since Thu, Feb 21, 2019
Install and configure GNU watch (gwatch) on AIX
Viewed 8757 times since Thu, Feb 21, 2019
AIX Increase paging space logical volume size
Viewed 3927 times since Tue, Jul 17, 2018
Create jfs2 logical volume on AIX
Viewed 6229 times since Thu, Feb 21, 2019
AIX rootvg Mirroring
Viewed 5900 times since Mon, May 21, 2018
Reconfigure RSCT ID to fix DLPAR issues on cloned AIX systems
Viewed 17185 times since Thu, Feb 21, 2019
How to upgrade TL and SP in AIX using alternate disk(alt_disk_copy)
Viewed 14228 times since Sun, Jun 30, 2019
AIX: How to set automatic logoff (only for terminals)
Viewed 3916 times since Mon, Jun 11, 2018