Re: net-snmp-5.5-27.el6.i686

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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@L703108 pgsql]# snmpwalk -v 1 -c public 127.0.0.1 1.3.6.1.2.1.2.2.1 ifMIB
>>
>> [root@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@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@xxxxxxxxxxxxx
http://www.netwolves.com
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux