Hi

Is it possible that it may be a problem in my 'get_first_data_pont' or
'get_next_data_point' routines? I guess not, as these are responsible to
find the first/next row and have nothing to do with the columns in a table.
(And the 'next' indices are correctly found by getnext).

In the code generated by mib2c in XXXtable.c a the beginning there are the
following four lines:

    /** Define the minimum and maximum accessible columns.  This
        optimizes retrival. */
    table_info->min_column = 4;
    table_info->max_column = 16;

I'm not sure if this is correct as columns (OIDs) 13,14 do not exist
(holes).


I tried mib2c with netsnmp 5.6.1. I also tried other generation scripts
(table_data.conf) with the same effect...


Maybe I do something which is prohibited. Is it actually allowed to have
'holes' between OIDs within a table? E.g. something like this (I changed the
MIB, just to give an example):

snmptranslate -Tp -IR  NET-SNMP-EXAMPLES-MIB::netSnmpHostsTable
+--netSnmpHostsTable(2)
   |
   +--netSnmpHostsEntry(1)
      |  Index: netSnmpHostName
      |
      +-- ---- String    netSnmpHostName(1)
      |        Size: 0..64
      +-- CR-- EnumVal   netSnmpHostAddressType(2)
      |        Textual Convention: InetAddressType
      |        Values: unknown(0), ipv4(1), ipv6(2), ipv4z(3), ipv6z(4),
dns(16)
      +-- CR-- String    netSnmpHostAddress(*3*) *<========*
      |        Textual Convention: InetAddress
      |        Size: 0..255
      +-- CR-- EnumVal   netSnmpHostStorage(*6*)* <=======*
      |        Textual Convention: StorageType
      |        Values: other(1), volatile(2), nonVolatile(3), permanent(4),
readOnly(5)
      +-- CR-- EnumVal   netSnmpHostRowStatus(7)
               Textual Convention: RowStatus
               Values: active(1), notInService(2), notReady(3),
createAndGo(4), createAndWait(5), destroy(6)


2011/4/21 Boris Zweimueller <[email protected]>

> Sure, here they are!
>
> Thanks
>
> Boris
>
>
> 2011/4/21 Dave Shield <[email protected]>
>
>> On 21 April 2011 05:47, Boris Zweimueller <[email protected]> wrote:
>> > Attached are the relevant excerpt of the MIB (Descriptions removed for
>> size)
>> > and the generated files ttfCfgTable.c and ttfCfgTable_columns.h
>>
>> Could you please post the rest of the header files   (ttfCfgTable.h and
>> ttfCfgTable_checkfns.h).    I can't really attempt to reproduce the
>> problem
>> without the full code that you are using.
>>
>> Thanks
>>
>> Dave
>>
>>
>> ------------------------------------------------------------------------------
>> Benefiting from Server Virtualization: Beyond Initial Workload
>> Consolidation -- Increasing the use of server virtualization is a top
>> priority.Virtualization can reduce costs, simplify management, and improve
>> application availability and disaster protection. Learn more about
>> boosting
>> the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
>> _______________________________________________
>> 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
>>
>
>
------------------------------------------------------------------------------
Fulfilling the Lean Software Promise
Lean software platforms are now widely adopted and the benefits have been 
demonstrated beyond question. Learn why your peers are replacing JEE 
containers with lightweight application servers - and what you can gain 
from the move. http://p.sf.net/sfu/vmware-sfemails
_______________________________________________
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