Facing problem while configuring snmp

HI,

I am facing these two errors while configuring snmp can any body guide me.
vi /var/log/snmpd.log

Error opening specified endpoint "udp:161"
Server Exiting with code 1

i also tried

bash-3.00# netstat -a | grep snm
*.snmpd Idle
bash-3.00# lsof -i :161
bash: lsof: command not found
bash-3.00# lsof -i udp:161
bash: lsof: command not found

Please see my con figuration file snmpd.conf

more /etc/sma/snmp/snmpd.conf
 
# snmpd.conf
#
# - created by the snmpconf configuration program
#
com2sec local localhost public
com2sec mynetwork 255.255.0.0 public
 
group MyRWGroup v1 local
group MyRWGroup v2c local
group MyRWGroup usm local
group MyROGroup v1 mynetwork
group MyROGroup v2c mynetwork
group MyROGroup usm mynetwork
 
view all included .1 80
 
access MyROGroup "" any noauth exact all none none
access MyRWGroup "" any noauth exact all all none

syslocation Right here, right now.

can anybody help me to resolve this issue thankls in advance

Hello,

Its a good idea to start a support request with a cat of /etc/release. If you are running s10 then lsof does not report properly. Something is blocking on your port. Try:

# netstat -an -P udp | grep 161

to check the status of that port. Go from there.

Ray dot Mroz AT Sun dot Com

You may want to double check that nothing in /etc/default/snmpd is over-riding your configuration. I think by default, the local loopback address (127.0.0.1) is passed in the SNMPDOPTS directive.