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:
- Stop the SDM service.
- Using EMACS or vi, open the file in the directoryTrapForwarder.xml
/opt/AdventNet/WebNMS/conf.
- Start a new blank line after the line that begins <TRAP FORWARDER>.
- Highlight the command line that begins <TRAP_REDIRECTION . . . and then copy and paste it to the blank line.
- 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>
- To add another destination IP address, press ENTER to start a new line.
- Copy the previous command line that begins with <TRAP_REDIRECTION . . . and paste it into the new blank line.
- Change the Des_Addr to the desired destination IP address.
- To add another destination IP address, repeat steps 4 through 6. You can forward traps to a maximum of three destinations.
- When completed, click .File > Save
- Close the file and exit the editor (EMACS or vi).
NOTE: The SDM service must be restarted for the change to take effect.