Hi!

I have a little problem with a table with a string index. I have read this mail: https://sourceforge.net/mailarchive/message.php?msg_id=5817093

Running 'snmpset -Ir localhost testBuja.\"ba\" i 5' works fine.

However, trying to set the value from my client fails with error code -58 (Unknown Object Identifier (Index out of range: "ba (tableIndex))) - notice a missing " at the end of the index name, is that significant?

I tried using get_node and snmp_parse_oid functions (with first parameter set to "testBuja.\"ba\""). The returned OID is ........2.2.1.2.0.98.97. When using snmpset with -Ir, the OID sent to snmpd is ........2.2.1.3.2.98.97 (sniffed using ethereal)

This is the relevant part of the MIB (I'm fairly new at this :)

alterboxTest  OBJECT IDENTIFIER ::= { alterbox 2 }

testTable OBJECT-TYPE
        SYNTAX SEQUENCE OF TestTableEntry
        ACCESS read-write
        STATUS mandatory
        DESCRIPTION "Test Table."
        ::= { alterboxTest 2 }

testTableEntry OBJECT-TYPE
        SYNTAX TestTableEntry
        ACCESS read-write
        STATUS mandatory
        DESCRIPTION "TestTableEntry"
        INDEX { tableIndex }
        ::= { testTable 1 }

TestTableEntry ::= SEQUENCE {
        tableIndex   DisplayString,
        tableBuja   INTEGER,
        tableBaja   INTEGER
}

tableIndex OBJECT-TYPE
        SYNTAX DisplayString
        ACCESS read-write
        STATUS mandatory
        DESCRIPTION "tableIndex"
        ::= { testTableEntry 1 }

tableBuja OBJECT-TYPE
        SYNTAX INTEGER
        ACCESS read-write
        STATUS mandatory
        DESCRIPTION "tableBuja"
        ::= { testTableEntry 2 }

tableBaja OBJECT-TYPE
        SYNTAX INTEGER
        ACCESS read-write
        STATUS mandatory
        DESCRIPTION "tableBaja"
        ::= { testTableEntry 3 }

Any ideas?

Thnx,
--
Marko
ICQ: 5990814

Him: "Your skin is so soft.  Are you a model?"
Her: "No,"  [blush]  "I'm a cosmetologist."
Him: "Really? That's incredible... It must be very tough to handle
     weightlessness."
   -- "The Jerk"


------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click _______________________________________________ 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