*Hi Dave,
I figured out the solution and it works in my v3 environment now.
Our agent does not register the snmpFramework module. So this is what I
did:
init_agent(agentName) ;
// BEGIN newly added the following two lines
should_init("snmpEngine");
init_mib_modules();
// END
init_snmp(agentName);
Now I can get the snmpEngineID information.
Thanks so much for your instructions along the way, and patience as well.
Regards,
Zongjun
*
On Fri, Mar 11, 2011 at 4:16 AM, Dave Shield <d.t.shi...@liverpool.ac.uk>wrote:
> 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
>
------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software
be a part of the solution? Download the Intel(R) Manageability Checker
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
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