I'm trying to kill
the process associated with port 161 (SNMP) on OS X.
I tried to get the process ID associated with this port using netstat
and lsof
but none of these seem to list PIDs:
$ netstat -an | grep 161
udp4 0 0 *.161 *.*
$ netstat -anp udp | grep 161
udp4 0 0 *.161 *.*
lsof -i :161