OID expanded with number of OIDs by OCTET index?
Torben Surmer <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Hello, I created a MIB table with OID 1, 3, 6, 1, 4, 1, 8072, 2, 2, 1,100 and an OCTET_STR index netsnmp_table_set_add_indexes(table_set, ASN_OCTET_STR, 0); When I want to add a new row with column 2 I have to do something like: snmpset localhost .1.3.6.1.4.1.8072.2.2.1.100.1.2.\"AB\" s "hello world" so it is the OID + TabelEntry + Column2 + str Index ... okay ... but it provides: NET-SNMP-MIB::netSnmp.2.2.1.100.1.2.2.65.66 = STRING: "hello world" 65 and 66 are the ascii codes for A and B. Exact what I want and what I expected. Obviously the 2 is the "length" of the str Index. Is this a must? Or is it possible to create a str indexed row without the "length" oid? Torben _________________________________________________________________ Make every IM count. Download Windows Live Messenger and join the i’m Initiative now. It’s free. http://im.live.com/messenger/im/home/?source=TAGWL_June07 ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ 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