Okay, one more case I want to be sure of. Let's assume that 1.3.6.1.4.1.59.1.5.3.1.1.10 is the numerically (as opposed to lexicographically) highest OID in the 1.3.6.1.4.1.59.1.5.3.1.1 subgroup. How should the agent respond to
$ snmpwalk /*args*/ 1.3.6.1.4.1.59.1.5.3.1.1.10 and $ snmpgetnext /*args*/ 1.3.6.1.4.1.59.1.5.3.1.1.10 Thanks On 03/17/2012 03:24 AM, Vincent Bernat wrote: > OoO En cette nuit nuageuse du samedi 17 mars 2012, vers 00:02, Charlie > Martin<crmar...@sgi.com> disait : > >>> Use: >>> snmpwalk -On -v 2c -c copan psmdev1 1.3.6.1.4.1.59.1.5.3.1.1 >> 1020 $ snmpwalk -On -v 2c -c copan psmdev1 1.3.6.1.4.1.59.1.5.3.1.1 >> .1.3.6.1.4.1.59.1.5.3.1.1 = No Such Instance currently exists at this OID >> Which actually corresponds to the overall problem I'm trying to figure >> out. So, let's say I send >> snmpget -On -v 2c -c copan psmdev1 1.3.6.1.4.1.59.1.5.3.1.1 > You should get "No such instance" > >> and >> snmpgetnext -On -v 2c -c copan psmdev1 1.3.6.1.4.1.59.1.5.3.1.1 > You should get 1.3.6.1.4.1.59.1.5.3.1.1.1 = 9 (if I remember correctly) > > Maybe you don't handle this last bit in your pass_persist script: if the > requested OID is less than the first OID you can serve, you must return > the first OID you can serve. > > snmpwalk 1.3.6.1.4.1.59.1.5.3.1.1.2 does a getnext on > 1.3.6.1.4.1.59.1.5.3.1.1.2 and get 1.3.6.1.4.1.59.1.5.3.1.1.3 but > returns nothing because it is not included in the subtree rooted at > 1.3.6.1.4.1.59.1.5.3.1.1.2. -- Charles R. (Charlie) Martin Senior Software Engineer SGI logo 1900 Pike Road Longmont, CO 80501 Phone: 303-532-0209 E-Mail: crmar...@sgi.com <mailto:crmar...@sgi.com> Website: www.sgi.com <http://www.sgi.com> ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders