Using SNMP Traps

This section describes how to set up your system to send and
receive traps. It also describes the traps that you can use to
receive change notification for logical domains (domains), as well as other traps
that you can use.

Using Oracle VM Server for SPARC MIB Module Traps

Sending and Receiving Traps

Send Traps

Configure the trap.

Edit the /etc/sma/snmp/snmpd.conf file to add the directives to define the trap,
inform version, and destination.

This example sends send both v1 and v2c traps to the SNMP
trap daemon that runs on the same host. The /etc/sma/snmp/snmpd.conf file is
updated with the following directives:

trapcommunity public
trapsink localhost
trap2sink localhost

Receive Traps

Start the SNMP trap daemon utility.

For information about the output format options, see the snmptrapd(1M) man page.

The snmptrapd utility is an SNMP application that receives and logs SNMP
TRAP messages. For example, the following snmptrapd command shows that a new
domain was created (ldomTrapDesc = Ldom Created) with a name of ldg2 (ldomName = ldg2).