Hi everyone,

 

I am trying to set the following OID  ""1.3.6.1.4.1.5624.1.2.16.2.7.1.3.4"
where ".4" is an index.

This OID represents "etsysConfigMgmtChangeOperation". This OID should be set
with an octet with value 1000000000000000 for example. 

I am doing the following:

 

requestPDU = new PDU();

requestPDU.setType(pduType);

VariableBinding vb = new VariableBinding(new OID(oid));

if(oid.equals("1.3.6.1.4.1.5624.1.2.16.2.7.1.3.4")){

             Variable var2 = new OctetString("1000000000000000");

             vb.setVariable(var2);

}

snmp.listen();

response1 = snmp.send(requestPDU, target);

 

I am checking response and I get  Wrong value(10).

 

What I need is to set the oid with an octet 10101110. I get the following
response on Wireshark

Wrong Value(10)..Value (octetstring):31 30 31 30 31 31 31 30.

 

I think I have problem with var2 how can I set the value with type octet
such that the octet looks like "10101110" and not 31 30 31 30 31 31 31 30.

 

Looking forward for your help

 

Regards

 

 

_______________________________________________
SNMP4J mailing list
[email protected]
http://lists.agentpp.org/mailman/listinfo/snmp4j

Reply via email to