Administration Guide › Action Alerts › Working with SNMP Traps › Preparing CA NSM to Receive SNMP Traps from Alerts › Configure CA NSM to Receive SNMP Traps
Configure CA NSM to Receive SNMP Traps
Before you can direct alerts to be sent to CA NSM as SNMP traps, you must configure CA NSM to receive traps. You can send both SNMPv2 traps and SNMPv3 traps to CA NSM.
To configure CA NSM to receive SNMP traps from CA Enterprise Log Manager alerts
- Log on to CA NSM.
- Enable support for SNMP version3 as follows:
- Display the command prompt. From the Start menu, click Run, enter cmd, and click OK.
- Type the following:
caugui settings
The EM Settings window appears.
- Click the Event Management tab.
- Scroll to display the description: SNMP - Enable SNMP version 3 support.
- Select the row and type Y to select YES in the setting column for SNMP Enable SNMP version 3 support.
- Click Yes to confirm the change.
- Close the window.
- Change the port used by the SNMP service from the current port, for example 5162, to port 162 as follows:
- Open Windows Explorer.
- Navigate to the .../System32/drivers/etc folder, typically under C:\WINDOWS.
- Back up the Services file. Right click services and select copy.
- Open the Services file in a text editor, such as Notepad, and scroll to the entry resembling the following:
snmptrap 162/udp snmp-trap #SNMP trap
- Edit the snmptrap line to replace the port number 162, with an alternative, for example, 5162. Add the catrapmuxd line where you assign port 162.
snmptrap 5162/udp
catrapmuxd 162/udp catrapmuxd #CA Trap Multiplexer
- Save and close the file.
- Modify the CA Trap Multiplexer configuration file, catrapmux.conf, as follows:
- Navigate to C:\Program Files\CA\SC\CCS\WVEM\CAIUSER.
- Open CATRAPMUX.CONF in a text editor, such as Notepad.
- Scroll to the bottom of the file. Edit the file as needed to include the following entries.
CATRAPMUX_CMD:6161
AWS_SNMP:6162
catrapd:6163
snmptrap:5162
Note: The first three entries represent default settings.
- Save and close the file.
- Add a line to the snmpv3.dat configuration file to configure SNMP v3 security parameters.
- Navigate to the C:\Program Files\CA\SC\CCS\CommonResourcePackages\Misc.
- Open snmpv3.dat in a text editor and add the following line at the end of the file.
*.*.*.* *:* test1234:AuthPriv:MD5:test1234:DES:test1234
Note: These are the same parameters that you must enter in the V3 Security Parameters dialog in the Alert wizard in order for the SNMP trap to be received by CA NSM. The username and password are what you configure here, the Auth protocol is MD5 and the Encryption protocol is DES.
- Save and close the file.
- Install the CA Trap Multiplexer service:
- Access the command prompt.
- Run the following command:
catrapmuxd uniconfig
CA Trap Multiplexer is added to the Services list with a status of Started.
- Verify that CA Trap Multiplexer is running and start SNMP Trap Service.
- From the Start menu, select Programs, Administrative Tools, Services
The Services list appears.
- Examine the status of CA Trap Multiplexer. Verity that the status is Started.
- Select the SNMP Trap Service, right-click and select Start from the pop-up menu.
- Start all services with a Startup Type of Automatic.
- Access the command prompt.
- Run the following command:
Unicntrl start all
CA NSM is now configured to receive SNMP v3 traps based on scheduled alerts sent by CA Enterprise Log Manager.