Re: mib2c.table_data.conf quastion/issue
David Ganor <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Hi,
Can you show how did you define the channelTable in the MIB file?
I suspect we might find something there...
BR,
David Ganor
On 11/12/2013 02:50, Dirk Buijsman wrote:
> I generated a C-skeleton using mib2c -c mib2c.table_data.conf MY.MIB.
> A part of the output is the structure:
>
> struct channelTable_entry {
> /* Index values */
> char channelName[NNN];
> size_t channelName_len;
>
> /* Column values */
> char channelName[NNN];
> size_t channelName_len;
> long count;
> char message[NNN];
> size_t message_len;
> char lastMessageTime[NNN];
> size_t lastMessageTime_len;
>
> int valid;
> };
>
> Obviously this gives a build error due to identical entries. What is
> the reason duplicate fields are generated? I looked a bit into the
> mib2c.table_data.conf file, but could not figure out where "index@"
> originates from.
>
> What causes this?
>
> Thanks,
> Dirk
>
> / /* Typical data structure for a row entry *//
> /struct ${i}_entry {/
> / /* Index values *//
> / @foreach $idxindex@/
> / @if $idx.needlength@/
> / $idx.decl $idx[NNN];/
> / size_t ${idx}_len;/
> / @else@/
> / $idx.decl $idx;/
> / @end@/
> / @end@/
> /
> /
> / /* Column values *//
> / @foreach $c column@/
> / @if $c.readable@/
> / @if $c.needlength@/
> / $c.decl $c[NNN];/
> / size_t ${c}_len;/
> / @else@/
> / $c.decl $c;/
> / @end@/
> / @if $c.settable@/
> / @if !$c.rowstatus@/
> / @if $c.needlength@/
> / $c.decl old_$c[NNN];/
> / size_t old_${c}_len;/
> / @else@/
> / $c.decl old_$c;/
> / @end@/
> / @end@/
> / @end@/
> / @end@/
> / @end@/
> /
> /
> / int valid;/
> /};/
>
>
> ------------------------------------------------------------------------------
> Rapidly troubleshoot problems before they affect your business. Most IT
> organizations don't have a clear picture of how application performance
> affects their revenue. With AppDynamics, you get 100% visibility into your
> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
>
>
> _______________________________________________
> 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
--
Best regards,
David Ganor
|||||||||||||||||||||||||||||||||||
Cell: +972-54-3090299
Tel: +972-74-7028642
Fax: +972-153-74-7028642
SW developer
www.oliver-solutions.com
|||||||||||||||||||||||||||||||||||
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT
organizations don't have a clear picture of how application performance
affects their revenue. With AppDynamics, you get 100% visibility into your
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
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