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
Getting list users and groups in AIX
Viewed 4776 times since Mon, May 28, 2018
Writing a Custom PVID
Viewed 3493 times since Fri, Feb 1, 2019
Create jfs2 logical volume on AIX
Viewed 5783 times since Thu, Feb 21, 2019
AIX, Storage, System Admin↑ Identifying a Disk Bottleneck Using filemon
Viewed 10592 times since Fri, Apr 19, 2019
Managing System Dump Devices sysdumpdev
Viewed 4472 times since Mon, Jul 9, 2018
SNAP in AIX
Viewed 12360 times since Mon, Sep 17, 2018
Authenticate AIX using MS DC’s kerberos servers (Active Directory)
Viewed 2711 times since Thu, Feb 21, 2019
Tuning AIX Network Performance
Viewed 4763 times since Tue, May 22, 2018
AIX Creating EtherChannel Devices from Command Line
Viewed 4680 times since Mon, Jun 3, 2019
Technology level update on AIX using smit_update and alt_disk_install method
Viewed 6685 times since Sun, Jun 30, 2019