[prev in list] [next in list] [prev in thread] [next in thread] 

List:       centos
Subject:    Re: [CentOS] net-snmp-5.5-27.el6.i686
From:       Steve Clark <sclark () netwolves ! com>
Date:       2011-11-29 11:48:48
Message-ID: 4ED4C6A0.8060701 () netwolves ! com
[Download RAW message or body]

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@netwolves.com
http://www.netwolves.com
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic