On Fri, 23 Sep 2016 14:13:52 +0000 Sridhar wrote: LS> I am new to Netsnmp, I adding the context support . LS> LS> I am facing issue in snmpv2 walk , If I filling the context Name LS> during the registration table . I am not able do the walk for register LS> table , It only accessible in context based walk , So what I need to LS> add , for support the default walk . So please help me if I missed LS> anything . LS> [...] LS> I have wrapper will fil the context name , LS> However during initialization I will pass context as NULL. So I assumed there will be table registration without context name . LS> LS> My snmpwalk output: LS> bash-4.3# snmpwalk -v2c -cpublic localhost 1.3.6.1.2.1.2.2.1.2.1 LS> IF-MIB::ifEntry = No Such Object available on this agent at this OID LS> LS> bash-4.3# snmpwalk -v3 -u test1 -l authPriv -a MD5 -A 'password' -x DES -X 'password' -n "" localhost 1.3.6.1.2.1.2.2.1.2.1 LS> IF-MIB::ifEntry = No Such Object available on this agent at this OID LS> LS> bash-4.3#snmpwalk -v3 -u test1 -l authPriv -a MD5 -A 'password' -x DES -X 'password' -n "snmp_context" localhost 1.3.6.1.2.1.2.2.1.2.1 LS> IF-MIB::ifDescr.1 = STRING: LS> IF-MIB::ifSpecific.2 = No more variables left in this MIB View (It is past the end of the MIB tree) LS> LS> If I am comment above line , I can able to do the walk .
The only reason you'd see this would be if you actually registered with a context. If you use your debugger (or add debug output), I'm sure you'll find that the table is being registered with a context, and thus is only available when you specify that context when walking the table. -- Robert ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders