Previous Topic: CA NSM System RequirementsNext Topic: Example: Alerting CA NSM of Configuration Changes


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 User Activity Reporting Module alerts

  1. Log on to CA NSM.
  2. Enable support for SNMP version3 as follows:
    1. Display the command prompt. From the Start menu, click Run, enter cmd, and click OK.
    2. Type the following:
      caugui settings
      

      The EM Settings window appears.

    3. Click the Event Management tab.
    4. Scroll to display the description: SNMP - Enable SNMP version 3 support.
    5. Select the row and type Y to select YES in the setting column for SNMP Enable SNMP version 3 support.
    6. Click Yes to confirm the change.
    7. Close the window.
  3. Change the port used by the SNMP service from the current port, for example 5162, to port 162 as follows:
    1. Open Windows Explorer.
    2. Navigate to the .../System32/drivers/etc folder, typically under C:\WINDOWS.
    3. Back up the Services file. Right click services and select copy.
    4. 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
      
    5. 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
      
    6. Save and close the file.
  4. Modify the CA Trap Multiplexer configuration file, catrapmux.conf, as follows:
    1. Navigate to C:\Program Files\CA\SC\CCS\WVEM\CAIUSER.
    2. Open CATRAPMUX.CONF in a text editor, such as Notepad.
    3. 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.

    4. Save and close the file.
  5. Add a line to the snmpv3.dat configuration file to configure SNMP v3 security parameters.
    1. Navigate to the C:\Program Files\CA\SC\CCS\CommonResourcePackages\Misc.
    2. 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.

    3. Save and close the file.
  6. Install the CA Trap Multiplexer service:
    1. Access the command prompt.
    2. Run the following command:
      catrapmuxd uniconfig
      

      CA Trap Multiplexer is added to the Services list with a status of Started.

  7. Verify that CA Trap Multiplexer is running and start SNMP Trap Service.
    1. From the Start menu, select Programs, Administrative Tools, Services

      The Services list appears.

    2. Examine the status of CA Trap Multiplexer. Verity that the status is Started.
    3. Select the SNMP Trap Service, right-click and select Start from the pop-up menu.
  8. Start all services with a Startup Type of Automatic.
    1. Access the command prompt.
    2. Run the following command:
      Unicntrl start all
      

    CA NSM is now configured to receive SNMP v3 traps based on scheduled alerts sent by CA User Activity Reporting Module.