Dave,

Am Montag, 16. April 2007 13:59 schrieb Dave Shield:
> On 16/04/07, Florian Jauernig <[EMAIL PROTECTED]> wrote:
> > When using the "bulkwalk" method on a v2 session object and using
> > multiple OIDs to be walked......
>
> Errr.... is that allowed?
> I'm not too familiar with the perl APIs, but the command-line tools
> "snmpwalk" and "snmpbulkwalk" only accept a single OID, and
> will walk the subtree rooted at that OID.
>    I would expect the same to be true of the equivalent perl calls.
>
> It's valid to run a GetBulk request on multiple OIDs, but not the
> (higher-level)  BulkWalk, IMO.

>From the man page this is absolutely allowed. There is even an example 
given, that does exactly the same.

<-- snipp -->
$sess->bulkwalk(<non-repeaters>, <max-repeaters>, <vars> [,<callback>])

Do a "bulkwalk" of the list of Varbinds.  This is done by sending a GETBULK 
request (see getbulk() above) for the Varbinds. For each requested 
variable, the response is examined to see if the next lexico instance has 
left the requested sub-tree. Any further instances returned for this 
variable are ignored, and the walk for that sub-tree is considered 
complete.
<-- snapp -->

The crazy thing is, that when I run the bulkwalk without the "NonIncreasing" 
key set to 1, I can see in the tethereal capture that all OIDs get fully 
processed. But as described in my first mail to the ML, there are responded 
OIDs missing in the result array from bulkwalk.

So I think the internal code in net-snmp perl API is correct as long as it 
only coveres retrieving the data from the agent. But when this data is 
prepared to be passed back to perl, there is a problem.

Many thanks in advance

Florian

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to