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": Unknown Object Identifier (Index out of range: "ab MB> (alterIndex)) MB> MB> and no packets are sent to snmpd (again, notice the missing end quote in MB> the error report) Why is this happening?
This is likely a shell issue.. try snmpset -Ir localhost alterField1.\'ab\' = 1 MB> When I set strOid to "alterField1.\"ab\"", both functions return: The '\' is only necessary from the shell. In c code, leave it out. Also, try using a single quote, instead of a double quote. -- Robert Story; NET-SNMP Junkie <http://www.net-snmp.org/> <irc://irc.freenode.net/#net-snmp> Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users> You are lost in a twisty maze of little standards, all different. ------------------------------------------------------- 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
