Re: problem with snmpbulkget

Dave Shield <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
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.
> root@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.
> root@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
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.