7.2.8. snmp trap

Syntax

snmp trap (auth|cold-start|linkUpDown|port-security|warm-start)

no snmp trap (auth|cold-start|linkUpDown|port-security|warm-start)

Parameter

auth

Enable the SNMP authentication failure trap.

cold-start

Enable the SNMP cold start-up failure trap.

linkUpDown

Enable the SNMP link up and down failure trap.

port-security

Enable the SNMP port security trap.

warm-start

Enable the SNMP warm start-up failure trap.

Default

All the SNMP traps are enabled.

Mode

Global Configuration

Usage

To send the SNMP traps, use the command snmp trap in the Global Configuration mode; and use the no form of the command to disable the SNMP traps.

Example

The following example disables and enables the SNMP link up and down traps individually.

Switch(config)# no snmp trap linkUpDown
Switch(config)# snmp trap linkUpDown