Re: Responding to GETNEXT...
"Dave Shield" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
On 27/07/07, Ken Adey <[email protected]> wrote: > I have a pass-thru script that responds correctly for specific OIDs in > my MIB (ie. using snmpget). What I don't know how to do, is how should my > script respond to GETNEXT commands (ie. from snmpwalk) for OIDs that aren't > data OIDs (eg. my root OID)? You should return the OID and value for the next valid instance. For example, if you receive a GETNEXT request for your root OID, then you should return the OID and value for the first instance. If you receive a GETNEXT request for this first instance OID, then you should return the OID and value for the second instance. (Similarly for any OID lying between the first and second instances). If you receive a GETNEXT request for the second instance OID (or those immediately following), then you should return the OID and value for the third instance. And so on. Dave ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users