Re: problem encountered while issuing multiple snmpset on octetstring oids

2010-10-18 Thread Leo Lin
: From: Dave Shield Subject: Re: problem encountered while issuing multiple snmpset on octetstring oids To: "Leo Lin" Cc: "Net-snmp-users" Date: Monday, October 18, 2010, 7:31 AM On 18 October 2010 15:13, Leo Lin wrote: > Then, I issue an snmpset and modify the contents

Re: problem encountered while issuing multiple snmpset on octetstring oids

2010-10-18 Thread Dave Shield
On 18 October 2010 15:13, Leo Lin wrote: > Then, I issue an snmpset and modify the contents to a strlen less than > 'private' (7). > snmpset does it right the first time, but consecutives calls to snmpset, > gives me the remainder of 'private' It sounds as if you are forgetting to add the null t

problem encountered while issuing multiple snmpset on octetstring oids

2010-10-18 Thread Leo Lin
Hi,   I'm using net-snmp-5.6.rc1, and I just encontered a strange behavior while issuing multiple snmpset on octet string oids.   I have an oid that holds an octet string.  When my module is initialized, the contents of the oid is initialized to "private".   Then, I issue an snmpget to check if