# netstat -ane | egrep ".162|Proto" -> take the value from User column (let say 29)
# ps -u 29 -> grab the PID for the process (let say 1234)
# kill -9 1234 -> kill the process that keeps that port open
-OR-
# /usr/sbin/lsof -i @localhost:162 -> grab the PID for the process (let say 1234)
# kill -9 1234
Last edited by igorc; 04-03-2007 at 03:05 AM.
|