Forwarding traps

Using the SNMP Trap Multiplexer, you can forward traps to one or more servers.

About this task

To configure the SNMP Trap Multiplexer to forward traps to network management systems running on host1 and host2:

Procedure

  1. Edit the schema file, $NCHOME/etc/precision/TrapMuxSchema.cfg, to contain a set of host/socket pairs. For example, append the following lines to the file:
    insert into trapMux.sinkHosts (host, port) values ("host1", 5999);
    insert into trapMux.sinkHosts (host, port) values ("host2", 5999);
  2. Start the SNMP Trap Multiplexer using the following commands:
    ncp_trapmux -domain DOMAIN1 
    ncp_trapmux -domain DOMAIN2 

Results

In the above example, when a trap is sent to the server that is running the ncp_trapmux process, it is forwarded to test-host1, port 5999 and test-host2, port 5999.