On 14 July 2010 11:41, Martin Townsend <[email protected]> wrote:
> I am seeing a problem sending BULKGET snmp messages for non-repeater
> values.  If you specify the instance number then it retrieves the
> incorrect value.
>
> e.g. using snmpbulkget on our router.
> r...@ts7800:snmpd# snmpbulkget -v2c -Cn2 -Cr0 -c public 192.168.0.1
> sysLocation.0 ifIndex.1
> SNMPv2-MIB::sysServices.0 = INTEGER: 78
> IF-MIB::ifIndex.2 = INTEGER: 2
>
> for some reason it is retrieving the next OID in the tree, ie
> sysServices.0 instead of sysLocation.0, ifIndex.2 instead of ifIndex.1

That is correct.
The behaviour of the GETBULK protocol operation is effectively
a supercharged version of GETNEXT.   It should retrieve the value(s)
following the specified OIDs - not the OID itself.

Please re-read the SNMP specifications.




> yet if I use no instance numbers.
> r...@ts7800:snmpd# snmpbulkget -v2c -Cn2 -Cr0 -c public 192.168.0.1
> sysLocation ifIndex
> SNMPv2-MIB::sysLocation.0 = STRING: UK
> IF-MIB::ifIndex.1 = INTEGER: 1
> it's fine.

Once again, this is retrieving the next values after the specied OIDs.

Things seem to be working as expected.

Dave

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
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

Reply via email to