Re: String index table

2004-09-28 Thread Marko Bozikovic
Robert Story (Users) wrote: This is likely a shell issue.. try Yup, it's a bash issue... I have to escape " character. I've found the answer to my problem (by looking into snmpset source code :) This function is called when using -Ir cmd-line option for string indexes: netsnmp_ds_toggle_boolean(

Re: String index table

2004-09-24 Thread Users
On Fri, 24 Sep 2004 14:18:58 +0200 Marko wrote: MB> snmpset -Ir localhost alterField1.\"ab\" = 1 MB> ALTERBOX-TEST::alterField1."ab" = INTEGER: 1 MB> MB> OID (sniffed by ethereal): 1.3.6.1.4.1.9184.1.2.3.1.2.2.97.98 MB> MB> however, if I run it without -Ir switch, I get: MB> alterField1."ab": Unk

Re: String index table

2004-09-24 Thread Marko Bozikovic
Dave Shield wrote: Hmmm... the names you're using don't actually match the MIB fragment you gave! -snip- Hm... I'm new at this, so I'm really not sure, but please bear with me :) I've made a new test MIB, it's attached (I hope it's ok) This is snapshot by snmptranslate: +--alterbox(9184) |

Re: String index table

2004-09-24 Thread Dave Shield
> 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..., the OID sent to snmpd is 2.2.1.3.2.98.97 Hmmm... the names you're using don't actually match the MIB fragment you

String index table

2004-09-24 Thread Marko Bozikovic
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 'sn