[MIB Explorer] RE: Indexing with ifIndex

Frank Fock fock at agentpp.com
Fri Jul 30 00:46:04 CEST 2004


Hi Murali,

The check for negative index values is only active
for SMIv2. If your MIB module is a SMIv2 module,
then you should import ifIndex from IF-MIB, which
has a proper ifIndex definition.

Best regards,
Frank

Murali Ganga wrote:

>Figured it out.
>
>Reloaded the rfc1213 by specifying proper range for 
>ifIndex (1..100).
>
>Smart Mibexplorer.
>
>/Murali
>
>  
>
>>-----Original Message-----
>>From: Murali Ganga 
>>Sent: Thursday, July 29, 2004 1:27 PM
>>To: 'mibexplorer at agentpp.org'
>>Subject: Indexing with ifIndex
>>
>>Hi,
>>
>>Running 1.6.3
>>Imported ifIndex from RFC1213-MIB
>>
>>   testClientTable OBJECT-TYPE
>>        SYNTAX     SEQUENCE OF TestClientEntry
>>        MAX-ACCESS not-accessible
>>        STATUS     current
>>        DESCRIPTION
>>           "Associated client table."
>>        ::= { testClientObjects 1 }
>>
>>    testClientEntry OBJECT-TYPE
>>        SYNTAX     TestClientEntry
>>        MAX-ACCESS not-accessible
>>        STATUS     current
>>        DESCRIPTION
>>            "Specifies each client entry."
>>        INDEX { ifIndex, testClientAddress }
>>        ::= { vivatoClientTable 1 }
>>
>>    ...
>>
>>   testClientAddress OBJECT-TYPE
>>        SYNTAX     MacAddress
>>        MAX-ACCESS not-accessible
>>        STATUS     current
>>        DESCRIPTION
>>            "An index into the table. (Mac)Address of the client."
>>        ::= { testClientEntry 1 }
>>   ...
>> 
>>Explorer complains:
>>invalid index definition because
>>ifIndex may be negative (RFC2578 §7.7).
>>
>>What would be the problem ?
>>
>>Thanks
>>/Murali
>>    
>>
>_______________________________________________
>MIBExplorer mailing list
>MIBExplorer at agentpp.org
>http://agentpp.org/mailman/listinfo/mibexplorer
>
>  
>




More information about the MIBExplorer mailing list