Deploy trap
processing
In the recommended trap
processing configuration, two
SNMP Trap Adapter
(Receiver) instances are invoked using different
trapd.conf files. The trapd.conf for the “trap exploder” instance includes trap
forwarding statements and indicates the port to use when listening for traps.
In contrast, the trapd.conf for the other instance of the
SNMP Trap Adapter
does not include trap forwarding statements. In the
following procedure, BASEDIR is the location where the
Release 8.1 is installed. Deploy the trap processing as
follows:
- When installing the Release 8.1, install theSNMP Trap Adapter(Receiver) as a service. The default configuration will use InCharge/SAM/smarts/local/conf/icoi/trapd.conf, the version of the trapd.conf file that is not configured to forward traps. The and the have detailed instructions for configuring theSNMP Trap Adapter(Receiver) to receive traps.
- Manually create a service for theSNMP Trap Adapterthat is configured as a trap exploder by using the sm_service command. The trap exploder instance will use InCharge/SAM/smarts/local/conf/trapd/trapd.conf, the version of the trapd.conf file configured to forward traps. A typical service command on a UNIX host looks like this:/InCharge/SAM/smarts/bin/sm_service install --force --unmanaged --startmode=runonce --description="Smarts SNMP Trap Exploder Server" --name=trap_exp /InCharge/SAM/smarts/bin/sm_trapd --name=TRAP_EXPLODER --config=trapd --port=162 --sport=9180 --seed=seedfile --rules=default --output
- Use sm_edit to configure the two different versions of trapd.conf:
- TheSNMP Trap Adapter(Receiver) instance will use InCharge/SAM/smarts/local/conf/icio/trapd.conf. The file should not include trap forwarding statements.
- The trap exploder instance will use InCharge/SAM/smarts/local/conf/trapd/trapd.conf. This file should include all trap forwarding statements. Traps that must be processed into notifications should be forwarded to <host:port> where theSNMP Trap Adapter(Receiver) instance listens for traps.
- Configure the trap_mgr.conf file for theSNMP Trap Adapter(Receiver) instance to forward traps as notifications to theGlobal Manager(InCharge/SAM/smarts/local/conf/icoi/trap_mgr.conf). Detailed procedures are in the .
- Start both theSNMP Trap Adapter(Receiver) and theSNMP Trap Adapter(Exploder).