Adjusting the Configuration File for Sending SNMP Traps
Use
In the configuration file, you define details about the sending of the SNMP traps using the method CCMS_OnAlert_SNMP_TRAP_CFG, such as the recipients and the port to which the traps are to be sent, and the protocol with which they are to be sent.
Features
The values in the configuration file are determined using three levels:
- Predefined default values
- General default values of the configuration file (section [SNMP_DEFAULT])
- Special values for a recipient host ([DESTINATION_<x>] sections)
These values have increasing priority from the top of the file to the bottom; that is, a value that is specified in a level with a higher value overwrites the value of a lower level.
You can set the following parameters in each of the above sections ([SNMP_DEFAULT] and [DESTINATION_<x>]):
| Parameter | Meaning |
|---|---|
|
VERSION |
SNMP version (1, 2c, or 3) |
|
HOSTNAME COMMUNITY INFORM TIMEOUT RETRIES TRANSPORT PORT MIB_DIR |
Parameters whose names and meanings correspond to those of the method parameters for the method CCMS_OnAlert_SNMP_TRAP (see Setting Up the Sending of SNMP Traps) |
Set the following parameters only if you are using SNMP version 3:
| Parameter | Meaning |
|---|---|
|
USER_NAME |
Name of the SNMP user |
|
AUTH_PASSPHRASE |
Password of the SNMP user |
|
SECURITY_LEVEL |
Security level; the following levels are supported: NoauthNoPriv: No authentication, no encryption (Default) authNoPriv: Authentication, no encryption |
|
AUTH_PROTOCOL |
Procedure for authenticating the message (creation of a checksum used to ensure that the message was not changed); the MD5 (Message Digest 5) procedure is supported |
|
SECURITY_ENGINE |
Engine ID of the application from which the SNMP traps are to be sent; this parameter is only required if INFORM=0, since the engine ID is generated during the communication if INFORM=1 |
|
CONTEXT_ENGINE CONTEXT_NAME |
Reserved for internal use |
|
PRIV_PROTOCOL PRIV_PASSPHRASE |
Not yet supported |
Activities
Specify the complete path of the adjusted configuration file in the method parameter CFG_FILE. Perform the usual adjustment and assignment of the method as described in Setting Up the Sending of SNMP Traps.
Example
There is a template with the default settings for the configuration file in the SNMPLIB archive. This template has the following content:
Sending Alerts Using SNMP Traps start page