snmp-trap-sink-create
This command is used to specify a SNMPv1 trap receiver for SNMP traps.
Syntax snmp-trap-sink-create
community community-string |
Specify the community name to send traps. |
type TRAP_TYPE_V1_TRAP|TRAP_TYPE_V2C_TRAP|TRAP_TYPE_V2_INFORM |
Specify the type of SNMP trap. |
dest-host dest-host-string |
Specify the destination host. |
dest-port dest-port-number |
Specify the destination port. The default port is 162. |
Defaults None
Access CLI
History
Version 2.0 |
Command introduced. |
Version 2.4 |
The options, TRAP_TYPE_V3_TRAP|TRAP_TYPE_V3_INFORM deprecated. |
Usage Use this command to send SNMP traps to a receiver. You can configure up to two receivers.
Examples To send TRAP_TYPE_V1_TRAP, from community string, snmp-group, to the destination, trap-recvr, on port 43, use the following command:
CLI network-admin@switch > snmp-trap-sink-create community snmp-group trap TRAP_TYPE_V1_TRAP dest-host trap-recvr dest-port 43