snmpset problem

CK Ng ckng____cs.usm.my
Thu Jun 8 08:52:49 CEST 2000


Hi all,

I try to set an octet string (using SNMP++ tools) of an Oid to some values
with spaces like "testing 123", but all I'm able to set is the word
"testing", everything after a white space are 'truncated'!!!

The set function in my file looks like this:

boolean a::value_ok(const Vbx& vb) {
    ...
    vb.get_value(buf, len);
    ...
}

and the 'len' returned actually (for the above example) is 7! Is it a bug??
or I did something silly??
It works fine with UCD snmpset.

Another thing is I'm able to access the agent using snmp++ manager tools,
without any security measures, ie v1 & v2.   But when i try to use UCD
tools, it won't work. However, if authentication or privacy is used, UCD
tools work fine so as SNMP++ tools.
Clue??

Thanks.

Regards,
CK Ng
School of Computer Science
Univeristy Science Malaysia




More information about the AGENTPP mailing list