On 22 July 2011 09:06, Mohammad Waqas Athar <[email protected]> wrote:
> I generated code using mib2c.table_raw.conf . ALL work well except Get Next 
> Request.
> when i walk table using snmpwalk i get  Error: OID not increasing:
> i looked at the code and it seems the column number does not increase.
> Do we have to increase the column number ourself?

Yes - the whole point of the 'table_raw' template is that it's a *raw* table
framework.   By using this (rather than the table_data or table_iterator
templates, or the MfD framework),  you are saying that you want to handle
the NEXT processing yourself.
   The other table frameworks typically attempt to determine the next valid
row (and column if necessary),  leaving the MIB handler to deal with supplying
the appropriate value.

table_raw doesn't do this - you have to determine the next OID yourself,
and then supply the corresponding value.


Note also that you should be increasing the *row* number first.
You only increase the column number once you've finished processing
the last row for the original column.

We wouldn't normally recommend using table_raw, until you've had
a bit of experience with the other templates first.   It's definitely intended
as a more advanced option.

Dave

------------------------------------------------------------------------------
10 Tips for Better Web Security
Learn 10 ways to better secure your business today. Topics covered include:
Web security, SSL, hacker attacks & Denial of Service (DoS), private keys,
security Microsoft Exchange, secure Instant Messaging, and much more.
http://www.accelacomm.com/jaw/sfnl/114/51426210/
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to