Hey,
>> Try putting your snmpd.conf file in /usr/local/etc/snmp Have try, but it didn't work, so I run the based command, and now I got my snmp working. Now, I'm able to do : snmpget -v2c -c tutget localhost:9999 NET-SNMP-TUTORIAL-MIB::nstAgentModuleObject.0 >>NET-SNMP-TUTORIAL-MIB::nstAgentModuleObject.0 = INTEGER: 1 But : snmpset -v2c -c tutset localhost:9999 NET-SNMP-TUTORIAL-MIB::nstAgentModuleObject.0 = 5 Return me : Reason: wrong Length (The set value has an illegal length from what the agent expects) Failed object: NET-SNMP-TUTORIAL-MIB::nstAgentModuleObject.0 This is because I'm running on Ubunu x64 I guess. I found this thread : http://sourceforge.net/mailarchive/forum.php?thread_name=CAKoMtGY7YiMM9L4UmcFEFim23sp7YWxAdQiLPVf-EhwsLicmzQ%40mail.gmail.com&forum_name=net-snmp-users And I'm actually trying our solution (long instead of int). I compile back net snmp (./configure // make // make install (do I have to do that all the time ?). Restart snmpd But still getting : snmpset -v2c -c Dialog localhost NET-SNMP-TUTORIAL-MIB::nstAgentModuleObject.0 = 5 Error in packet. Reason: wrongLength (The set value has an illegal length from what the agent expects) Failed object: NET-SNMP-TUTORIAL-MIB::nstAgentModuleObject.0 snmpset -v2c -c Dialog localhost NET-SNMP-TUTORIAL-MIB::nstAgentModuleObject.0 s 5 No log handling enabled - using stderr logging NET-SNMP-TUTORIAL-MIB::nstAgentModuleObject.0: Bad variable type (Type of attribute is Integer32, not OCTET STRING) Cordialement, --------------------------------------------------------------------------- -----Message d'origine----- De : Dave Shield [mailto:d.t.shi...@liverpool.ac.uk] Envoyé : vendredi 18 mai 2012 11:33 À : Jérôme BELLEGARDE Cc : net-snmp-users@lists.sourceforge.net Objet : Re: Problem installing a MIB On 18 May 2012 08:43, Jérôme BELLEGARDE <j.bellega...@alpha-direct-services.com> wrote: >>>What is in your snmpd.conf file? > > My snmpd.conf file is locate on /etc/snmp/ > (which is the basic way of the Ubuntu server). That's the location for the Ubuntu-provided agent - yes. But if you're running a self-compiled agent, then that does *not* look in /etc/snmp. It typically looks in /usr/local/etc/snmp instead See the FAQ entry My new agent is ignoring the old snmpd.conf file. Why? (http://www.net-snmp.org/wiki/index.php/FAQ:Agent_28) > Or else there is another one in /var/net-snmp. No - ignore that one. > When I run : > > net-snmp-config --snmpconfpath >>>>/usr/local/etc/snmp:/usr/local/share/snmp:/usr/local/lib/snmp:/home/ >>>>dialog/.snmp:/var/net-snmp > > /usr/local/etc/snmp => not exist > /usr/local/share/snmp => exist but no file snmpd.conf, only snmp.conf > /usr/local/lib/snmp => not exist > When I try to put my snmpd.conf in /var/net-snmp, I restart snmpd service, > and it overwrite it with info on top. Try putting your snmpd.conf file in /usr/local/etc/snmp Dave ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users