[AGENT++] GETBULK fails with non default size

Kerrison, Adam Adam_Kerrison at bmc.com
Thu May 12 18:06:44 CEST 2011


I've run into a problem where GETBULK requests fail when you use a non default size.

For example, if I request several columns from a table with a size of 12 (I've broken the command line up to make it a little more readable):

$ ./snmpBulk 1.2.3.4
    1.3.6.1.4.1.9.9.46.1.6.1.1.3.10612
    1.3.6.1.4.1.9.9.46.1.6.1.1.4.10612
    1.3.6.1.4.1.9.9.46.1.6.1.1.5.10612
    1.3.6.1.4.1.9.9.46.1.6.1.1.14.10612
    1.3.6.1.4.1.9.9.46.1.6.1.1.16.10612
    -Cxxxxx -m12
20110512.17:13:23: 15383: (3)INFO   : AuthPriv: Added default Auth and Priv protocols.
SNMP++ GetBulk to 1.2.3.4 SNMPV2 Retries=1 Timeout=1000ms Non Reptrs=0 Max Reps=12
Community=xxxxx
20110512.17:13:23: 15383: (4)DEBUG  : SNMPMessage: return value for build message: (0)
20110512.17:13:23: 15383: (A)DEBUG  : MsgQueue: Adding entry (req id) (count): (26824), (1)
20110512.17:13:23: 15383: (7)INFO   : MsgQueue: Ignore received message without outstanding request (req id): (0)
20110512.17:13:24: 15383: (A)DEBUG  : MsgQueue: Message (msg id) (req id) (info): (0), (26824), (RESEND)
20110512.17:13:24: 15383: (7)INFO   : MsgQueue: Ignore received message without outstanding request (req id): (0)
20110512.17:13:25: 15383: (A)DEBUG  : MsgQueue: Message (msg id) (req id) (info): (0), (26824), (TIMEOUT)
20110512.17:13:25: 15383: (A)DEBUG  : MsgQueue: Removed entry (req id): (26824)
20110512.17:13:25: 15383: (8)INFO   : v3MP::Cache: Entry to delete not found (req id) (type): (26824), (local)
20110512.17:13:25: 15383: (6)INFO   : MsgQueue: Message timed out, removed id from v3MP cache (rid): (26824)
SNMP++ GetBulk Error, SNMP++: SNMP request timed out

However, if I use the default size (10):

$ ./snmpBulk 1.2.3.4
    1.3.6.1.4.1.9.9.46.1.6.1.1.3.10612
    1.3.6.1.4.1.9.9.46.1.6.1.1.4.10612
    1.3.6.1.4.1.9.9.46.1.6.1.1.5.10612
    1.3.6.1.4.1.9.9.46.1.6.1.1.14.10612
    1.3.6.1.4.1.9.9.46.1.6.1.1.16.10612
    -Cxxxxx -m10
20110512.17:16:49: 15396: (3)INFO   : AuthPriv: Added default Auth and Priv protocols.
SNMP++ GetBulk to 1.2.3.4 SNMPV2 Retries=1 Timeout=1000ms Non Reptrs=0 Max Reps=10
Community=xxxxx
20110512.17:16:49: 15396: (4)DEBUG  : SNMPMessage: return value for build message: (0)
20110512.17:16:49: 15396: (A)DEBUG  : MsgQueue: Adding entry (req id) (count): (26824), (1)
20110512.17:16:49: 15396: (A)DEBUG  : MsgQueue: Response received (req id) (status) (msg id): (26824), (0), (0)
20110512.17:16:49: 15396: (A)DEBUG  : MsgQueue: Removed entry (req id): (26824)
Oid = 1.3.6.1.4.1.9.9.46.1.6.1.1.4.10101
Value =   7F FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF    ................
<trimmed the rest of the output but all the data is there>

If I request each OID individually it works with any GETBULK size. I've also tried using the NET-SNMP snmpbulkwalk tool and that succeeds so I don't believe that this is an issue with the target device.

Has anyone else encountered this? Am I going something wrong or is this a bug?

Adam



More information about the AGENTPP mailing list