[snmpsim-users] snmpbulkget outpu in version 0.2.2
Brought to you by:
elie
|
From: Bhagat, Y. (Yateen) <yat...@al...> - 2013-05-30 12:14:08
|
Hi Ilya
I have observed that the snmpbulkget request output from snmpsim is not in proper order.
Our snmp manager sends a bulkget request for "particular OIDs and repeat count" as shown in the perl snippet below:
$max_reps=5;
$alarmSeqNo=272164;
$result = $session->get_bulk_request(
-maxrepetitions => $max_reps,
-varbindlist => [
"1.3.6.1.4.1.637.74.1.2.2.1.1.1.4.1.3.$alarmSeqNo",
"1.3.6.1.4.1.637.74.1.2.2.1.1.1.4.1.4.$alarmSeqNo",
"1.3.6.1.4.1.637.74.1.2.2.1.1.1.4.1.6.$alarmSeqNo",
"1.3.6.1.4.1.637.74.1.2.2.1.1.1.4.1.2.$alarmSeqNo",
"1.3.6.1.4.1.637.74.1.2.2.1.1.1.4.1.7.$alarmSeqNo",
"1.3.6.1.4.1.637.74.1.2.2.1.1.1.4.1.5.$alarmSeqNo",
"1.3.6.1.4.1.637.74.1.2.2.1.1.1.4.1.10.$alarmSeqNo",
],
);
The real SNMP agent node returns the response as under ( as seen in wireshark)
'1.3.6.1.4.1.637.74.1.2.2.1.1.1.4.1.3.272165' => 2322,
'1.3.6.1.4.1.637.74.1.2.2.1.1.1.4.1.4.272165' => '11#3',
'1.3.6.1.4.1.637.74.1.2.2.1.1.1.4.1.6.272165' => '0x07dd051e091a1900',
'1.3.6.1.4.1.637.74.1.2.2.1.1.1.4.1.2.272165' => 39,
'1.3.6.1.4.1.637.74.1.2.2.1.1.1.4.1.7.272165' => 1,
'1.3.6.1.4.1.637.74.1.2.2.1.1.1.4.1.5.272165' => 1,
'1.3.6.1.4.1.637.74.1.2.2.1.1.1.4.1.10.272165' => '',
------------
------------
'1.3.6.1.4.1.637.74.1.2.2.1.1.1.4.1.3.272169' => 2322,
'1.3.6.1.4.1.637.74.1.2.2.1.1.1.4.1.4.272169' => '11#3',
'1.3.6.1.4.1.637.74.1.2.2.1.1.1.4.1.6.272169' => '0x07dd051e091a1900',
'1.3.6.1.4.1.637.74.1.2.2.1.1.1.4.1.2.272169' => 39,
'1.3.6.1.4.1.637.74.1.2.2.1.1.1.4.1.7.272169' => 1,
'1.3.6.1.4.1.637.74.1.2.2.1.1.1.4.1.5.272169' => 1,
'1.3.6.1.4.1.637.74.1.2.2.1.1.1.4.1.10.272169' => '',
Note : 1. The OIDs are returned in the same order as specified in the request (ref perl snippet)
2. The number of OIDs returned = 7*5=35 as expected ( request has 7 OIDs and repeat count of 5)
However when the same bulkget request is sent to the snmpsim, the response is different as under:
'1.3.6.1.4.1.637.74.1.2.2.1.1.1.4.1.3.272165' => 2322,
'1.3.6.1.4.1.637.74.1.2.2.1.1.1.4.1.3.272166' => 2322,
'1.3.6.1.4.1.637.74.1.2.2.1.1.1.4.1.3.272167' => 2322,
'1.3.6.1.4.1.637.74.1.2.2.1.1.1.4.1.3.272168' => 2322,
'1.3.6.1.4.1.637.74.1.2.2.1.1.1.4.1.4.272165' => '11#1',
'1.3.6.1.4.1.637.74.1.2.2.1.1.1.4.1.4.272166' => '11#3',
'1.3.6.1.4.1.637.74.1.2.2.1.1.1.4.1.4.272167' => '11#0',
'1.3.6.1.4.1.637.74.1.2.2.1.1.1.4.1.4.272168' => '11#0'
---------
---------
'1.3.6.1.4.1.637.74.1.2.2.1.1.1.4.1.10.272165' => '',
'1.3.6.1.4.1.637.74.1.2.2.1.1.1.4.1.10.272166' => '',
'1.3.6.1.4.1.637.74.1.2.2.1.1.1.4.1.10.272167' => '',
'1.3.6.1.4.1.637.74.1.2.2.1.1.1.4.1.10.272168' => '',
Note : 1. The OIDs are returned in an order DIFFERENT from one specified in the request (ref perl snippet)
2. The number of OIDs returned is not 7*5=35 as expected it retuned only 28 , OIDs for the last index number
272169 were missing
Please help !
Regards
Yateen
|