Thursday, 15 November 2012

Find Process associated with Port


In Linux:-
----------
netstat -tulpn
----------
In AIX:-
------------------
#netstat -Aan | grep Port_Number
==>Above command will Display the process who is holding the socket then use below command to get the Process ID.

#rmsock <Address_of_PCB> tcpcb
<Address_of_PCB> => is the output of previous command
-------------------                                                                                                                

No comments:

Post a Comment