Timeout: No Response from localhost

Hi All!

I having an issue when trying to run snmpwalk, so the following command it returns an error:

bash-3.00# /usr/sfw/bin/snmpwalk -v 2c -c public localhost sysDescr.0
Timeout: No Response from localhost
bash-3.00#

I have checked also:

bash-3.00# svcs -a | grep sma
online         Mar_24   svc:/application/ssmagent:default
online         13:51:11 svc:/application/management/sma:default
bash-3.00# svcs -a | grep snmp
online         13:36:20 svc:/application/management/snmpdx:default
bash-3.00#

But I am still getting the same error.

On the logs I have:

bash-3.00# tail /var/log/snmpd.log
Turning on AgentX master support.
Error opening specified endpoint "udp:161"
Server Exiting with code 1
bash-3.00#
bash-3.00# tail /var/svc/log/application-management-snmpdx:default.log
[ May 17 01:35:02 Executing stop method ("/lib/svc/method/svc-snmpdx stop 85") ]
[ May 17 01:35:07 Method "stop" exited with status 0 ]
[ Jun  7 11:54:08 Enabled. ]
[ Jun  7 11:54:08 Executing start method ("/lib/svc/method/svc-snmpdx start") ]
[ Jun  7 11:54:08 Method "start" exited with status 0 ]
[ Jun  7 13:36:14 Stopping because service restarting. ]
[ Jun  7 13:36:14 Executing stop method ("/lib/svc/method/svc-snmpdx stop 5531") ]
[ Jun  7 13:36:19 Method "stop" exited with status 0 ]
[ Jun  7 13:36:20 Executing start method ("/lib/svc/method/svc-snmpdx start") ]
[ Jun  7 13:36:20 Method "start" exited with status 0 ]

my config file: /etc/sma/snmp/snmpd.conf is:

# rocommunity: a SNMPv1/SNMPv2c read-only access community name
#   arguments:  community [default|hostname|network/bits] [oid]

rocommunity  public

##########################################################################
# SEA subagents dynamically register with the master agent via port 161,
--More--(42%)

So please can someone help?

---------- Post updated at 02:06 PM ---------- Previous update was at 01:59 PM ----------

from this command :

bash-3.00# /usr/local/bin/lsof -i udp:161
COMMAND PID USER   FD   TYPE        DEVICE SIZE/OFF NODE NAME
java    927 root    5u  IPv4 0x60030049940      0t0  UDP *:snmpd
bash-3.00#

Shouldn�t I have

snmpd

in the place of

java

?

Yes, you may have accidentally binded another process (the java process in your lsof output) to port 161. So, when you try to run snmpd, it will fail because it cannot bind to the port.

So how do I correct that?