Send v2c Inform

 

The snmpv2cinformreq example can be used to send v2c inform requests. The inform requests can be sent from a manager to another manager. A trap receiver program in the manager station can receive and display inform messages. By default, the inform requests are sent to the port 162 of the manager station.

 

Source

 

Refer the source code for the snmpv2cinformreq example present in <examples/low_level_api_examples/snmpapps/snmp2cinformreq.java> for more information.

 

Usage

 

java snmpv2cinformreq [options] hostname timeTicks snmpTrapOid-value [OID type value]

 

java snmpv2cinformreq [-d] [-c community] [-p port] host TimeTicksvalue OIDvalue [OID {INTEGER | STRING | GAUGE | TIMETICKS | OPAQUE | IPADDRESS | COUNTER | COUNTER64 | UNSIGNED32} value] ...

 

Options

 

[-d] - Debug output. By default, off.

[-c] community - Community string. By default "public".
[-p] port
- Remote port number. By default, 162.
host -
Remote host (agent). Mandatory.
timeticks
- The value of object sysUpTime when the event occurred. Mandatory.
OID-value
- Object Identifier. Mandatory.
OID
- Multiple Object Identifiers with values.

type - Type of the object.
value
- The object instance value to be set.



Copyright © 2012, ZOHO Corp. All Rights Reserved.