SNMP Event Handler
Warning: This EventHandler is not supported since version 4.6.8
Overview
The SNMP event handler can be used to respond to get/getnext/set commands.
Configuration
Parameter |
Description |
class |
com.architech.switchboard.SNMPSwitchboard |
snmpUsername |
Not currently used. |
snmpPassword |
Not currently used. |
snmpOID |
The base OID. All requests outside this OID are
silently ignored. |
Objects/Properties/Attributes
The event handler sets the following event properties:
Property |
Description |
event.originator |
The event handler object. |
snmp.command |
The command request:
get
set
getnext
|
snmp.oid |
The request OID |
snmp.value |
The value in case of set or getnext commands. |
When the handler receives a get request the snmp.oid contains
the OID for the request. You are then expected to set the snmp.value
property which will then be returned to the requestor. For a set command
the snmp.value already has a value. For the getnext request (e.g.
snmp-walk) you are requested to return the OID that immediatly follows the OID
provided in snmp.oid. This command is used when SNMP clients are
traversing the OID tree. Many unix systems have a snmpwalk command that
will allow you to test this command.
Notes
If what you want to is to send SNMP Traps, the system.snmpTrap()
is available to you.
See Also
Event Handler Overview,
SNMP Trap Connector
|