I have tried to fix the problem, but it is not as easy as it should.

With my patch I get this:

apps/snmptable -CbB   localhost:161 myPropSeqOfStructItemAttribTable
# SNMP table: my-PROPERTY-MIB::myPropSeqOfStructItemAttribTable
#  Boolean Char Octet Long Short     ULong UShort String
#        ?    ?     ?    ?     1 301110000      ?      ?
#        ?    ?     ?    ?     2 302220000      ?      ?
#        ?    ?     ?    ?     3 303330000      ?      ?
#        ?    ?     ?    ?     4 304440000      ?      ?
#        ?    ?     ?    ?     5 305550000      ?      ?
#        ?    ?     ?    ?     6 306660000      ?      ?

without index, it seems OK, but

apps/snmptable -CbBi   localhost:161 myPropSeqOfStructItemAttribTable
# SNMP table: my-PROPERTY-MIB::myPropSeqOfStructItemAttribTable
#   index Boolean Char Octet Long Short     ULong UShort String
# 1.3.1.1       ?    ?     ?    ?     1 301110000      ?      ?
# 1.3.1.2       ?    ?     ?    ?     ?                 ?      ?      ?
# 1.3.2.1       ?    ?     ?    ?     2 302220000      ?      ?
# 1.3.2.2       ?    ?     ?    ?     ?                 ?      ?      ?
# 1.3.3.1       ?    ?     ?    ?     3 303330000      ?      ?
# 1.3.3.2       ?    ?     ?    ?     ?                 ?      ?      ?
# 1.3.4.1       ?    ?     ?    ?     4 304440000      ?      ?
# 1.3.4.2       ?    ?     ?    ?     ?                 ?      ?      ?
# 1.3.5.1       ?    ?     ?    ?     5 305550000      ?      ?
# 1.3.5.2       ?    ?     ?    ?     ?                 ?      ?      ?
# 1.3.6.1       ?    ?     ?    ?     6 306660000      ?      ?
# 1.3.6.2       ?    ?     ?    ?     ?                 ?      ?      ?


With -Ci option, I need help!


Attachment: snmptable-fix-sparse-row.patch
Description: Binary data


P.S.:
The problem seems not new, it occurs with /usr/bin/snmptable --version
NET-SNMP version: 5.4.2.1
too.


//Regards
Claus


On 19.07.2013, at 21:48, Claus Klein wrote:

Hi

I'm wondering why is there a different output for the same table with and without -CB option:

snmptable -CibB -r0 -t15 localhost:161 myPropSeqOfStructItemAttribTable
# SNMP table: my-PROPERTY-MIB::myPropSeqOfStructItemAttribTable
#   index Boolean Char Octet Long Short     ULong UShort String
# 1.3.1.1       ?    ?     ?    ?     1                 ?      ?      ?
# 1.3.2.1       ?    ?     ?    ?     2                 ?      ?      ?
# 1.3.3.1       ?    ?     ?    ?     3                 ?      ?      ?
# 1.3.4.1       ?    ?     ?    ?     4                 ?      ?      ?
# 1.3.5.1       ?    ?     ?    ?     5                 ?      ?      ?
# 1.3.6.1       ?    ?     ?    ?     6                 ?      ?      ?
# 1.3.6.2       ?    ?     ?    ?     ? 306660000      ?      ?


------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to