Views:
The SnmpSet class sets values on a remote agent.
Constructor
var request = new SnmpSet( context );
Properties
Name Type Description
retries int The number of retries before failure.
timeout int The timeout in seconds before a particular 'set' attempt is assumed to have failed.
Methods
Return Value Name Description
void addInteger( String oid , int value ) Adds an oid:integer pair to this SET request.
void addOid( String oid ) Adds an oid:null value pair to this SET request.
void addString( String oid , String value ) Adds an oid:string pair to this SET request.
void addUnsigned( String oid , String value ) Adds an oid:unsigned pair to this SET request.
void destroy() Frees up any resources used by this SET request.
boolean isDestroyed() Returns true if this request has been destroyed.
boolean sendRequest() Performs the SET request, returning true if successful.
Sample usage
var setter = new SnmpSet( context );
setter.addString( “1.2.3.4.5.6.7.8.9”, “value” );
setter.sendRequest();