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

Tue Nov 29 11:48:48 UTC 2011
Steve Clark <sclark at netwolves.com>

On 11/28/2011 07:41 PM, Corey Henderson wrote:
> 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.
>
That was it - I guess I didn't read the man page well enough. I was providing my own config
file with the -c fname option but the default file was being picked up also since I didn't also
specify -C option.

Thanks,

-- 
Stephen Clark
*NetWolves*
Sr. Software Engineer III
Phone: 813-579-3200
Fax: 813-882-0209
Email: steve.clark at netwolves.com
http://www.netwolves.com