On 10 March 2011 17:04, Zongjun <qizong...@gmail.com> wrote: > I did get some result! > snmpwalk -v 2c -c public localhost:6161 snmpFrameworkMIB > SNMP-FRAMEWORK-MIB::snmpEngineID.0 = Hex-STRING: 80 00 .... > SNMP-FRAMEWORK-MIB::snmpEngineBoots.0 = INTEGER: 1 > SNMP-FRAMEWORK-MIB::snmpEngineTime.0 = INTEGER: 471 seconds > SNMP-FRAMEWORK-MIB::snmpEngineMaxMessageSize.0 = INTEGER: 1500
Good - so the agent does support the necessary information. > So it is the configuration file? Not so fast! We're trying to track down what might be going wrong, so we need to move one step at a time. > What went wrong this my configuration file below? [snip] > The snmpEngineBoots.0 shows this: > snmpwalk -v 3 -u public -a MD5 -A public123 -l authNoPriv localhost:161 > snmpEngineBoots.0 SNMP-FRAMEWORK-MIB::snmpEngineBoots.0 = No Such > Object available on this agent at this OID You know what I said about taking things one step at a time. You've suddently switched from SNMPv2c to SNMPv3 *and* from a known configuration setup to a presumed one *and* from your test agent binary to the main agent You've asked whether this config file is OK. So let's test it. What is the path to this snmpd.conf file? Try running the agent using snmpd -f -Le -C -c /path/to/this/snmpd.conf 6161 (i.e. run the agent with *just* this config file) and then query it using snmpwalk -v 2c -c public localhost:6161 snmpFrameworkMIB (as before). If this works (and *ONLY* if this works), try running the agent using snmpd -f -Le -c /path/to/this/snmpd.conf 6161 (i.e. run the agent with this config file plus any others in the default path) and use the same query If this works (and *ONLY* if this works), try running the agent using snmpd -f -Le 6161 (i.e. run the agent with the config files in the default path) and use the same query Please make sure that you query the agent on 6161, not on 161 and using -v 2c, not -v 3 What do you see? Dave ------------------------------------------------------------------------------ Colocation vs. Managed Hosting A question and answer guide to determining the best fit for your organization - today and in the future. http://p.sf.net/sfu/internap-sfd2d _______________________________________________ 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