[SNMP4J] Different results for -Ow and -Ot

Fabian Nart fabian.nart at ergon.ch
Mon Feb 20 17:36:14 CET 2006


Hi

I encounter a strange behaviour when I read from a certain snmp-table 
using the snmpj4 command line interface. When I walk through the whole 
table, i get all values (see below: First attempt). When i use the 
table-option (-Ot instead of -Ow), I receive some NULL-values (see 
below: Second attempt). I only copied a few lines to keep things clear, 
but there are many more NULL-values in the complete response.

Frank answered me to a similar question that it might have to do with 
the lexicographical ordering but I don't understand how this could help 
me out.

Thanks for comments, Fabian


--- First attempt: ---

snmp4j -c public -v 2c -Ow wwz-cmts.ergon.ch 1.3.6.1.2.1.10.127.7.1.7

1.3.6.1.2.1.10.127.7.1.7.1.2.1 = 100
1.3.6.1.2.1.10.127.7.1.7.1.2.2 = 100
1.3.6.1.2.1.10.127.7.1.7.1.2.3 = 100
(...)
1.3.6.1.2.1.10.127.7.1.7.1.3.1 = 4097
1.3.6.1.2.1.10.127.7.1.7.1.3.2 = 2
1.3.6.1.2.1.10.127.7.1.7.1.3.3 = 4096

--- Second attempt: ---

snmp4j -c public -v 2c -Ot wwz-cmts.ergon.ch 
1.3.6.1.2.1.10.127.7.1.7.1.2 1.3.6.1.2.1.10.127.7.1.7.1.3

Index = 1:
1.3.6.1.2.1.10.127.7.1.7.1.2.1 = 100
1.3.6.1.2.1.10.127.7.1.7.1.3.1 = 4097

Index = 2:
1.3.6.1.2.1.10.127.7.1.7.1.2.2 = 100
null

Index = 3:
1.3.6.1.2.1.10.127.7.1.7.1.2.3 = 100
1.3.6.1.2.1.10.127.7.1.7.1.3.3 = 4096



More information about the SNMP4J mailing list