How to Configure SNMP Traps
- Open your snmpd.conf file for editing.
-
Depending on the version of SNMP traps you want to send:
-
To be able to send SNMP version 1 traps from the Hardware Management Agent, add the following line to
snmpd.conf
:trapsink
host communitystring trapport -
To be able to send SNMP version 2 traps from the Hardware Management Agent, add the following line to
snmpd.conf
:trap2sink
host communitystring trapport
-
Example 3-1 Setting SNMP Version 2 Traps
The following example shows the line added to the snmpd.conf
file to
configure SNMP Traps using SNMP version 2:
trap2sink 10.18.141.22 public 162
Parent topic: Configuring Net-SNMP In Oracle Solaris