How to configure Trap Exploder and Spectrum to run on the same system
search cancel

How to configure Trap Exploder and Spectrum to run on the same system

book

Article ID: 10418

calendar_today

Updated On:

Products

CA Spectrum

Issue/Introduction

By default, both Trap Exploder and Spectrum will listen for traps on port 162. However, you can only have one process running on a system listening for traps on port 162.

The following are the instructions for configuring Trap Exploder and Spectrum to run on the same system.



Environment

Release:
Component:

Resolution

The following instructions assume the devices being managed are configured to send their traps to port 162 on the system where Trap Exploder and Spectrum are running:

1. Configure Trap Exploder to listen for traps on port 162:

a. On Linux, edit the /etc/init.d/trapexploder file

b. Look for the following:

# set the port the agent should run on, default is 162
PORT=162

If configured to use a port other than 162, change to use port 162 and save.

2. Configure Spectrum to listen for traps on port 1162:

a. Edit the $SPECROOT/SS/.vnmrc file

b. Set the snmp_trap_port parameter to 1162 as follows:

snmp_trap_port=1162

c. Save the changes to the $SPECROOT/SS/.vnmrc file

3. Configure Trap Exploder to forward traps to port 1162:

a. Edit the trapexploder.cf file

b. Add a filter to forward traps to port 1162 on the SpectroSERVER system. The following is an example that forwards all traps to port 1162 of the SpectroSERVER machine at ip address 1.2.3.4:

filter * * * * * * forward 1.2.3.4:1162

c. Save the changes to the trapexploder.cf file

4. Shutdown Trap Exploder and Spectrum if running

5. Restart Trap Exploder and Spectrum

Trap Exploder should be running on port 162 and SpectroSERVER should be running on port 1162. Run the following commands to verify:

Linux:

netstat -anp | grep 162

Windows:

netstat -ano | grep 162

The netstat output should look similar to the following:

udp6       0      0 :::162                  :::*                                10757/trapexploder
udp6       0      0 :::1162                 :::*                                8676/SpectroSERVER