> But the thing that springs out immediately from your sample > code is: > > read_objid([objectIdString UTF8String], objectid, &length); > struct snmp_pdu *pdu = snmp_pdu_create(SNMP_MSG_SET); > char value = intVal + 0x30; > snmp_add_var(pdu, objectid, length, 'i', &intVal); > > you're not checking return codes. > Does the 'snmp_add_var' call succeed or not? > Does the 'read_objid' call succeed or not?
Your right, snmp_perror reports "Bad value name (25\354)", when snmp_add_var returns with a failure. I don't see any failures on the read_objid call. I'll poke around and see if I can find out what's going on. Ward ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users