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).



Article Number: 260
Posted: Mon, Jun 11, 2018 12:54 PM
Last Updated: Mon, Jun 11, 2018 12:54 PM

Online URL: http://kb.ictbanking.net/article.php?id=260