===MODE_GETNEXT===
 
===MODE_GETNEXT===
"snmpwalk" is harder: took me an afternoon to remember perl and write the first version ...
+
"snmpwalk" is harder: took me an afternoon to remember perl and write the first version ...<br>
The request almost knows what it wants, and the agent need's to reply to anything that is in the area for the OID it has registered. Let's start.
+
The request almost knows what it wants, and the agent need's to reply to anything that is in the area for the OID it has registered.  
    
Take $regat, '.1.3.6.1.4.1.8072.999'. We have a .1 extension that we would like to serve, with values in .1.1 .1.2 etc .2.1 .2.2 etc etc.
 
Take $regat, '.1.3.6.1.4.1.8072.999'. We have a .1 extension that we would like to serve, with values in .1.1 .1.2 etc .2.1 .2.2 etc etc.
   −
The secret is to fill in the blanks in the hash used for values. So if $regat or $regat.1 or $regat.1.1 etc are requested, the agent should supply the "next" OID
+
The secret is to fill in the blanks in the hash for next OID's where a value has not been assigned. So if $regat or $regat.1 or $regat.1.1 etc are requested, the agent should supply the next OID and it's value.
and it's value.
+
   Exception encountered, of type "Error"