Friday, July 24, 2009

Finding the process ID based on the Port in AIX

netstat -Aa| grep
*-A Shows the address of any protocol control blocks associated with the sockets.
echo "sockinfo f100090003d5eb80 tcpcb" |kdb |grep proc
* take the Hexadecimal value next to ACTIVE
# echo "sockinfo f100090002e42380 tcpcb" |kdb |grep proc

# echo "hcal 00920FA" |kdb |grep Value

the value is the PID of the process

No comments:

Post a Comment