To enable trap forwarding, issue the following command:
itpconfig enable trapforwarding
--ipaddress=ipaddress
--port=port
--community=community
Note -
If the trap forwarding is already enabled, use the itpconfig
modify trapforwarding command instead.
Mandatory options for itpconfig enable trapforwarding
are:
|
|
–-ipaddress
|
Sets the destination IP address for the forwarded
trap. This can be loopback (127.0.0.1) or any other
valid IP address. This must correspond to the
configuration of the SNMP listener.
|
–-port
|
Sets the destination port for the forwarded trap.
There is no default value, but 162 is a common port
value. This must correspond to the configuration of the
SNMP listener.
|
–-community
|
Sets the destination SNMP V2c community for the
forwarded trap. This value must correspond to the
configuration of the SNMP listener.
|
|
Example:
itpconfig enable trapforwarding --ipaddress=127.0.0.1 --port=1234
--community=test