SNMP Configuration and Management Manual
NonStop NET/MASTER Trap Subagent
SNMP Configuration and Management Manual—424777-006
10-9
Configuration
Configuration
You might need to perform one or both of these operations before using the subagent:
•
Modify GENTRAP to change the SNMP trap definition or the way the subagent
communicates with the SNMP agent.
•
Configure trap connections.
This subsection describes these operations.
Modifying GENTRAP
When first installed, this file looks like Example 10-2. The statements highlighted in
bold type can be modified to change the trap definition or subagent-SNMP agent
communication behavior.
Changing the Trap Definition
To define a trap that differs from the one defined by the EMS Trap MIB, you need to
create a MIB definition in ASN.1 and modify GENTRAP to correspond. The trap built
by GENTRAP contains items corresponding to the objects in the EMS Trap MIB,
described later in this section. Trap object definitions in GENTRAP are shown in bold
italic type in Example 10-2.
Changing Subagent-SNMP Agent Communication
Three procedures in NMMTRAP are called from GENTRAP to handle subagent-SNMP
agent communications:
•
The openagent function initiates communication with the SNMP agent.
•
The sendtrap function builds and sends a trap to the SNMP agent.
•
The closeagent function terminates communication with the SNMP agent.
This subsection briefly describes these functions and the way GENTRAP uses them
initially. The function calls in GENTRAP are highlighted in bold type in Example 10-2
.