Back to Articles

The SDM can forward traps to up to three destinations.

The following script is an illustration of the TrapForwarder file that is delivered with the SDM:
<?xml version="1.0" encoding="ISO-8859-1"?>
<TRAP_FORWARDER>
<TRAP_REDIRECTION Dest_Addr="193.1.17.xx" Dest_Port="162"/>
</TRAP_FORWARDER>

To forward traps:

  1. Stop the SDM service.
  2. Using EMACS or vi, open the file in the directoryTrapForwarder.xml

    /opt/AdventNet/WebNMS/conf.

  3. Start a new blank line after the line that begins <TRAP FORWARDER>.
  4. Highlight the command line that begins <TRAP_REDIRECTION . . . and then copy and paste it to the blank line.
  5. In the command line TRAP_REDIRECTION that you have just copied and pasted, change the Des_ Addr to the desired destination IP address. In the example below, all traps will be forwarded to IP address 193.1.17.10:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <TRAP_FORWARDER>
    <TRAP_REDIRECTION Dest_Addr="193.1.17.10" Dest_Port="162"/>
    </TRAP_FORWARDER>
  6. To add another destination IP address, press ENTER to start a new line.
  7. Copy the previous command line that begins with <TRAP_REDIRECTION . . . and paste it into the new blank line.
  8. Change the Des_Addr to the desired destination IP address.
  9. To add another destination IP address, repeat steps 4 through 6. You can forward traps to a maximum of three destinations.
  10. When completed, click .File > Save
  11. Close the file and exit the editor (EMACS or vi).
    NOTE: The SDM service must be restarted for the change to take effect.