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 setup an user in AIX
Viewed 3266 times since Mon, May 28, 2018
To do a quick check on the number of path present (does not mean all are Enabled] using for loop
Viewed 3793 times since Fri, Jun 8, 2018
AIX Encrypted File System
Viewed 5807 times since Tue, Jul 17, 2018
Trouble Shooting AIX Networking
Viewed 2537 times since Tue, May 22, 2018
Online Backups and Recovery in a Snap AIX
Viewed 5064 times since Wed, May 30, 2018
Check connection (rsh or nimsh) between NIM server and LPAR
Viewed 10354 times since Thu, Feb 21, 2019
Monitor logfiles and command output on AIX using multitail.
Viewed 2282 times since Thu, Feb 21, 2019
AIX Oracle tuning
Viewed 218877 times since Tue, Jul 2, 2019
Mirroring the rootvg Volume Group for AIX
Viewed 3943 times since Mon, May 21, 2018
n a perfect world....rootvg would always reside on hdisk0
Viewed 2243 times since Thu, Jun 6, 2019