I am having a problem with snmpset:
this is what I coded to add an integer to snmp set pdu:
int action = 2; char type= 'i'; string action_str((char *)&action, sizeof(action)); .... pdu = snmp_pdu_create(SNMP_MSG_SET);
int rc = snmp_add_var(pdu, myoid, sizeof(myoid)/sizeof(oid), type, action_str.data());
I made sure myoid is a valid oid.
I got failure from snmp_add_var, anybody have suggestions?
------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ 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