[CentOS] net-snmp-5.5-27.el6.i686

Tue Nov 29 00:41:54 UTC 2011
Corey Henderson <corman at cormander.com>

On 11/28/2011 2:13 PM, Steve Clark wrote:
> Hello,
>
> Can someone explain why I don't get a timeout when I use the community string "public" even if I don't have it
> defined in my snmpd.conf file. It doesn't return data but it also doesn't timeout. See example below.
> ...
> rocommunity nobody 127.0.0.1
> ...
>
> [root at L703108 pgsql]# snmpwalk -v 1 -c public 127.0.0.1 1.3.6.1.2.1.2.2.1 ifMIB
>
> [root at L703108 pgsql]# snmpwalk -v 1 -c xyz 127.0.0.1 1.3.6.1.2.1.2.2.1 ifMIB
> Timeout: No Response from 127.0.0.1
>
> [root at L703108 pgsql]# snmpwalk -v 1 -c nobody 127.0.0.1 1.3.6.1.2.1.2.2.1 ifMIB
> IF-MIB::ifIndex.1 = INTEGER: 1
> IF-MIB::ifIndex.2 = INTEGER: 2
> IF-MIB::ifIndex.3 = INTEGER: 3
> IF-MIB::ifIndex.4 = INTEGER: 4
> IF-MIB::ifIndex.5 = INTEGER: 5
> IF-MIB::ifIndex.6 = INTEGER: 6
> ...
>
>
>

The default /etc/snmp/snmpd.conf file comes with this line at the top:

com2sec local           localhost       public

Comment it out, service snmpd reload, and you'll no longer have the problem.

-- 
Corey Henderson
http://cormander.com/