Hi!
I have asked this question some time agou, but didn't get an answer, and didn't make any progress myself, so I'll try my luck again :)
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: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php _______________________________________________ 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
