CC'ing message to coders-group

2011/1/26 Eirik Nordbrøden <[email protected]>

> Hello
>
> This is something that I do not know much about, but I got curios and
> started looking in some code. These are my conclusion and I hope they will
> help. Hopefully some of the maintainers will answer also as they would be
> able to pinpoint the problem much better.
>
> 1) I presume you use the MFD style for code generation?
> 2) You should have something like this just before the call to
> '_locallogTable_container_col_save' in '_locallogTable_container_row_save'
> function:
>
>        if ((0x1 << (i - 1)) & ~LOCALLOGTABLE_SETTABLE_COLS)
>            continue;
> This is intended to prevent calls to '_locallogTable_container_col_save'
> for none writeable columns.
> 3) In the file 'locallogTable_constants.h' you should find the definition
> of the 'LOCALLOGTABLE_SETTABLE_COLS' macro.
> 4) This macro should contain a list of the writeable columns of your table.
> 5) The file 'locallogTable_constants.h' is generated based on the MIB.
>
> So my conclusions are that there are two possible causes for the problem:
> A) Your MIB definitions for the first (index?) column is wrong. Normally
> the index column should have 'MAX-ACCESS not-accessible'.
> B) There is an error in the code generation.
>
> PS There should be a comment just above the definition of the
> 'LOCALLOGTABLE_SETTABLE_COLS' macro in the file 'locallogTable_constants.h'
> that indicates that this macro should be manually reviewed and possibly
> updated.
>
> Eirik Nordbrøden, Morecom A/S
> (+47) 90174789
>
>
I'm not sure what you mean by "MFD". mib2c comes with 2 options - net-snmp &
old-style (UCD, I think). I always pick net-snmp (or the newer one).

Your first conclusion is correct - turns out I had set the first column
index to "read-only" instead of "not-accessible". That was causing the error
message.

Thank you very much for your help Eirik!

Yours,
Abraham V.
------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to