[tkined] Problem with SNMP table row creation with small timeouts

Peter Soares (psoares@nortel.ca)
21 Aug 1998 07:51 EDT

Having problems with SNMP table creation with small timeouts and
synchronous requests. From the reply to message 1998-07/msg00047
understood that scotty version 2.1.9 would fix this (was using
2.1.8). Using a small script that creates two rows in a table and
then requests 14 different SNMP gets gives the following results
with 2.1.9 with a timeout of 3 seconds and retries set to 2:

On a SUN:
result1 (table add 6) = {1.3.6.1.2.1.37.1.5.1.9.6 INTEGER createAndGo} \
{1.3.6.1.2.1.37.1.5.1.2.6 {OBJECT IDENTIFIER} \\
ATM-MIB!atmNoTrafficDescriptor}
[cut other columns]

result2 (table add 7) = badValue 1 \
{1.3.6.1.2.1.37.1.5.1.9.6 INTEGER createAndGo}
[cut other columns]

result3 (get 1.3.6.1.2.1.1.1.0) = badValue 1 \
{1.3.6.1.2.1.37.1.5.1.9.6 INTEGER createAndGo}
[cut other columns]

result4 (get 1.3.6.1.2.1.1.2.0) = \
{1.3.6.1.2.1.1.2.0 {OBJECT IDENTIFIER} 1.3.6.1.4.1.335.1.5}

[all other queries are correct]

The first request is to create a row with index 6 (which is successful).
Following is a request to create a row with index 7 (where the response
received appears to be from on of the retries for creation of index 6).
The next, a request for sysDescr, appears to be the response for another
retry for index 6 creation. From then on everything is fine. Are the
results for the attempt to create row with index 7 and get the sysDescr
correct?

On a HP:
result1 (table add 8) = noResponse

result2 (table add 9) = badValue 1 \
{1.3.6.1.2.1.37.1.5.1.9.8 INTEGER createAndGo}
[cut other columns]

result3 (get 1.3.6.1.2.1.1.1.0) = badValue 1 \
{1.3.6.1.2.1.37.1.5.1.9.8 INTEGER createAndGo}
[cut other columns]

result4 (get 1.3.6.1.2.1.1.2.0) = \
{1.3.6.1.2.1.1.2.0 {OBJECT IDENTIFIER} 1.3.6.1.4.1.335.1.5}

[all other queries are correct]

Similar to the SUN. Attempt was to create index 8 and 9. The attempt
to create row index 9 has a retry response from the previous row
creation attempt. The attempt to obtain sysDescr yields the same
results. From the 4th request things are correct.

If I am incorrect about the fix being in 2.1.9 sorry for the
misunderstanding but in which version is it?

The script used follows:

set sessionID [snmp session -address 200.100.100.1 -community private \
-timeout 3 -retries 2]
set column 8
set nextColumn [expr $column + 1]
catch {eval [subst {$sessionID set \
{{atmTrafficDescrRowStatus.${column} createAndGo} \
{atmTrafficDescrType.${column} atmNoTrafficDescriptor} \
{atmTrafficDescrParam1.${column} 0} \
{atmTrafficDescrParam2.${column} 0} \
{atmTrafficDescrParam3.${column} 0} \
{atmTrafficDescrParam4.${column} 0} \
{atmTrafficDescrParam5.${column} 0} \
{atmTrafficQoSClass.${column} 0}}}]} result1

catch {eval [subst {$sessionID set \
{{atmTrafficDescrRowStatus.${nextColumn} createAndGo} \
{atmTrafficDescrType.${nextColumn} atmNoTrafficDescriptor} \
{atmTrafficDescrParam1.${nextColumn} 0} \
{atmTrafficDescrParam2.${nextColumn} 0} \
{atmTrafficDescrParam3.${nextColumn} 0} \
{atmTrafficDescrParam4.${nextColumn} 0} \
{atmTrafficDescrParam5.${nextColumn} 0} \
{atmTrafficQoSClass.${nextColumn} 0}}}]} result2

catch {$sessionID get 1.3.6.1.2.1.1.1.0} result3
catch {$sessionID get 1.3.6.1.2.1.1.2.0} result4
catch {$sessionID get 1.3.6.1.2.1.1.3.0} result5
catch {$sessionID get 1.3.6.1.2.1.1.4.0} result6
catch {$sessionID get 1.3.6.1.2.1.1.5.0} result7
catch {$sessionID get 1.3.6.1.2.1.1.6.0} result8
catch {$sessionID get 1.3.6.1.2.1.1.7.0} result9
catch {$sessionID get 1.3.6.1.2.1.2.1.0} result10
catch {$sessionID get 1.3.6.1.2.1.2.2.1.1.1} result11
catch {$sessionID get 1.3.6.1.2.1.2.2.1.1.2} result12
catch {$sessionID get 1.3.6.1.2.1.2.2.1.1.69} result13
catch {$sessionID get 1.3.6.1.2.1.2.2.1.1.70} result14
catch {$sessionID get 1.3.6.1.2.1.2.2.1.1.71} result15
catch {$sessionID get 1.3.6.1.2.1.2.2.1.1.72} result16

puts "result1 (table add $column) = $result1\n"
puts "result2 (table add $nextColumn) = $result2\n"
puts "result3 (get 1.3.6.1.2.1.1.1.0) = $result3\n"
puts "result4 (get 1.3.6.1.2.1.1.2.0) = $result4\n"
puts "result5 (get 1.3.6.1.2.1.1.3.0) = $result5\n"
puts "result6 (get 1.3.6.1.2.1.1.4.0) = $result6\n"
puts "result7 (get 1.3.6.1.2.1.1.5.0) = $result7\n"
puts "result8 (get 1.3.6.1.2.1.1.6.0) = $result8\n"
puts "result9 (get 1.3.6.1.2.1.1.7.0) = $result9\n"
puts "result10 (get 1.3.6.1.2.1.2.1.0) = $result10\n"
puts "result11 (get 1.3.6.1.2.1.2.2.1.1.1) = $result11\n"
puts "result12 (get 1.3.6.1.2.1.2.2.1.1.2) = $result12\n"
puts "result13 (get 1.3.6.1.2.1.2.2.1.1.69) = $result13\n"
puts "result14 (get 1.3.6.1.2.1.2.2.1.1.70) = $result14\n"
puts "result15 (get 1.3.6.1.2.1.2.2.1.1.71) = $result15\n"
puts "result16 (get 1.3.6.1.2.1.2.2.1.1.72) = $result16\n"

$sessionID destroy

Peter

--
!! This message is brought to you via the `tkined & scotty' mailing list.
!! Please do not reply to this message to unsubscribe. To subscribe or
!! unsubscribe, send a mail message to <tkined-request@ibr.cs.tu-bs.de>.
!! See http://wwwsnmp.cs.utwente.nl/~schoenw/scotty/ for more information.