Hello,

I'm using snmpd from base on 5.8 and while playing with snmpbulkget (from
net-snmp), I noticed a weirdness.

* 'snmpbulkget -v2c -c public 10.100.200.19 iso.3.6.1.2.1.1' is ok
* 'snmpbulkget -v2c -c public 10.100.200.19 iso.3.6.1.2.1.31.1.1' is ok

By "ok", I mean it returns the correct MIB results. However,

* 'snmpbulkget -v2c -c public 10.100.200.19 iso.3.6.1.2.1.31.1.1
 iso.3.6.1.2.1.1' is not ok :
-----8<-----
 iso.3.6.1.2.1.31.1.1.1.1.1 = STRING: "em0"
 iso.3.6.1.2.1.1.1.0 = STRING: "OpenBSD test.my.domain 5.8 GENERIC#3 i386"
 iso.3.6.1.2.1.1.2.0 = OID: iso.3.6.1.4.1.30155.23.1
 iso.3.6.1.2.1.1.3.0 = Timeticks: (217) 0:00:02.17
 iso.3.6.1.2.1.1.4.0 = STRING: "r...@test.my.domain"
 iso.3.6.1.2.1.1.5.0 = STRING: "test.my.domain"
 iso.3.6.1.2.1.1.6.0 = ""
 iso.3.6.1.2.1.1.7.0 = INTEGER: 74
 iso.3.6.1.2.1.1.8.0 = Timeticks: (0) 0:00:00.00
 iso.3.6.1.2.1.1.9.1.1.1 = INTEGER: 1
 iso.3.6.1.2.1.1.9.1.1.2 = INTEGER: 2
-----8<-----

As you can see, only the first sub-OID of iso.3.6.1.2.1.31.1.1 is returned.
It seems that the loop surrounding mps_getbulkreq() in snmpe.c is breaking
the return of multiple OIDs but I can't find where exactly lies the bug.

Can anyone help ?

TIA,
Denis

Reply via email to