Example configuration
The following examples show how to configure the SNMP Probe to receive traps and informs. In addition to the probe configuration, the examples show how to use the Net-SNMP command-line tool to send the trap or inform to the probe.
The examples use the default protocol of UDP.
Configuring traps
This example shows how
to configure the probe to receive the coldStart
trap.
This trap occurs when the monitored device starts.
The following table shows the information in the mttrapd.conf file required to configure the SNMP Probe for a trap.
Data item | Example value |
---|---|
SNMP user |
|
|
|
Authorization encryption |
|
|
MD5 |
|
|
Privacy encryption |
|
|
DES |
|
|
Authorization engine |
|
|
|
SNMP Probe information |
|
|
|
|
|
To configure the probe, edit the mttrapd.conf file
and add the following createUser
entry:
createUser -e 0x0102030405 netcoolTrap MD5 tr4psMD5 DES tr4psDES
To
send the coldStart
trap using the Net-SNMP command-line
tool, add the following entry to mttrapd.conf:
snmptrap -e 0x0102030405 -v3 -u netcoolTrap -a MD5 -A tr4psMD5 -x DES -X tr4psDES -l authPriv snapper:1162 "" coldStart.0
Configuring informs
Data item | Example value |
---|---|
SNMP user |
|
|
|
Authorization encryption |
|
|
MD5 |
|
|
Privacy encryption |
|
|
DES |
|
|
SNMP Probe information |
|
|
|
|
|
To configure the probe edit the mttrapd.conf file
and add the following createUser
entry:
createUser netcoolInform MD5 1nformsMD5 DES 1nformsDES
To send an inform using the Net-SNMP command-line tool, add the following entry to mttrapd.conf:
snmptrap -Ci -v3 -u netcoolInform -a MD5 -A 1nformsMD5 -x DES -X 1nformsDES -l authPriv snapper:1162 "" coldStart.0
Values of the ConfPath and PersistentDir properties
The ConfPath and PersistentDir properties define the locations of the mttrapd.conf file and the hashed file. For example:
ConfPath : '$NCHOME/omnibus/var/master/conf'
PersistentDir : '$NCHOME/omnibus/var/master'