Re: SNMP

Allan Brighton (allan@ramjet.multinet.DE)
Wed, 19 Jan 94 13:13:27 +0100

Hi again,

I just found and fixed the bug after I sent the last mail:
Here is the fix, if anyone needs it:

in snmp.h, change 16 to something larger (say 255) for the line:

#define PKT_SZERORLST 16 <== should be larger

Here is the test script again, since there was a mistake in the last mail:

---------------------------------------------------------------------
# test snmp bug

set s [snmp open nat]
set oids {.1.3.6.1.2.1.16.1.1.1.4.1 .1.3.6.1.2.1.16.1.1.1.5.1 .1.3.6.1.2.1.16.1.1.1.6.1 .1.3.6.1.2.1.16.1.1.1.7.1 .1.3.6.1.2.1.16.1.1.1.8.1 .1.3.6.1.2.1.16.1.1.1.9.1 .1.3.6.1.2.1.16.1.1.1.10.1 .1.3.6.1.2.1.16.1.1.1.11.1 .1.3.6.1.2.1.16.1.1.1.12.1 .1.3.6.1.2.1.16.1.1.1.13.1 .1.3.6.1.2.1.16.1.1.1.3.1 .1.3.6.1.2.1.16.1.1.1.14.1 .1.3.6.1.2.1.16.1.1.1.15.1 .1.3.6.1.2.1.16.1.1.1.16.1 .1.3.6.1.2.1.16.1.1.1.17.1 .1.3.6.1.2.1.16.1.1.1.18.1 .1.3.6.1.2.1.16.1.1.1.19.1}

snmp get $s -l $oids pdu
puts "result: $pdu"
exit
---------------------------------------------------------------------

Allan Brighton
allan@multinet.de