[SNMP4J] is there something special about a SET command?
Noel Grandin
noel at peralex.com
Tue Apr 12 10:05:44 CEST 2005
Hi
My code basically looks like:
final PDU pdu = new PDU();
pdu.add(new VariableBinding(new OID(oid), new Integer32(val)));
pdu.setType(PDU.SET);
final CommunityTarget target = new CommunityTarget(new UdpAddress(ipAddress + "/161"), new OctetString(community));
target.setVersion(SnmpConstants.version2c);
target.setRetries(0);
target.setTimeout(60000);
final ResponseEvent responseEvent = snmp.send(pdu, target);
But the device keeps responding "No such name", but I know the OID name exists because I can do a GETNEXT to retrieve
it's value.
Is there something special one needs to do for SET commands?
Thanks,
Noel
NOTICE: Please note that this email, and the contents thereof,
are subject to the standard Peralex email disclaimer, which may
be found at: http://www.peralex.com/disclaimer.html
If you cannot access the disclaimer through the URL attached
and you wish to receive a copy thereof please send
an email to email at peralex.com
More information about the SNMP4J
mailing list