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.

Table 1. Information required to configure traps
Data item Example value

SNMP user

  • User name

netcoolTrap

Authorization encryption

  • Method

MD5

  • Password

tr4psMD5

Privacy encryption

  • Method

DES

  • Password

trp4psDES

Authorization engine

  • Engine identifier

0x0102030405

SNMP Probe information

  • Server name

snapper

  • Port

1162

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

Table 2. Information required to configure informs
Data item Example value

SNMP user

  • User name

netcoolInform

Authorization encryption

  • Method

MD5

  • Password

1nformsMD5

Privacy encryption

  • Method

DES

  • Password

1nformsDES

SNMP Probe information

  • Server name

snapper

  • Port

1162

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'