A type of
SnmpV2or3Trap that does an 'inform' instead of a simple trap.
Constructor
var trap = new SnmpInform();
Properties
| Name | Type | Descriptions |
| trapOID | String | Describes the event being reported |
Methods
| Return Value | Name | Description |
| void | addInteger( String oid , int value ) | Adds an oid:integer pair to this trap. |
| void | addOid( String oid ) | Adds an oid:null value pair to this trap. |
| void | addString( String oid , String value ) | Adds an oid:string pair to this trap. |
| void | destroy() | Frees any resources used by this INFORM request. |
| boolean | isDestroyed() | Returns true if this inform has been destroyed. |
| boolean | send( SnmpContext context ) | Sends this trap to the specified SNMP context. |
Sample usage
var trap = new SnmpInform(); trap.trapOID = ‘1.3.6.1.4.1.10734.3.4.3.0.1’; trap.addInteger( ‘1.3.6.1.4.1.10734.3.4.3.1.1’, 101 ); trap.send( context );
