Re: Responding to GETNEXT...

"Ken Adey" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <000e01c7d16a$e19deb30$660aa8c0@redvin>
Thanks, Dave,
     By "first instance", do you mean the first leaf node?

What do I return for a request for the last instance, nothing?

Ken....

----- Original Message ----- 
From: "Dave Shield" <[email protected]>
To: "Ken Adey" <[email protected]>
Cc: <[email protected]>
Sent: Saturday, July 28, 2007 3:44 PM
Subject: Re: Responding to GETNEXT...


> 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
> 


-------------------------------------------------------------------------
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.