[SNMP4J] Sending hexadecimal string values (snmp set)

2011-10-11 Thread Miroslav Genov
Hello, I'm encountering a strange issue with snmp4j (2.0.2) when I'm sending snmp set commands. When I sent the same command using the standard snmpset I got the right result. I'm doing the same think that with snmp4j but I'm encountering a bad response: mgenov:Huawei_last$ snmpset -v 2c -c

Re: [SNMP4J] Sending hexadecimal string values (snmp set)

2011-10-11 Thread Frank Fock
Hello Miroslav, You should use OctetString.fromHexString(48 57 54 43 d0 bf 30 04, ' ') to create the OctetString value you set. Alternatively you can also use OctetString s = OctetString.fromHexString(48:57:54:43:d0:bf:30:04); Best regards, Frank Am 11.10.2011 18:53, schrieb Miroslav Genov: