2-1329
Catalyst 6500 Series Switch Command Reference—Release8.4
OL-6244-01
Chapter2 Catalyst 6500 Series Switch and ROM Monitor Commands test snmp trap
test snmp trap
To send an SNMP trap message to the trap receivers, use the test snmp trap command.
test snmp trap {trap_num [specific_num] | trap_name}
Syntax Description
Defaults This command has no default settings.
Command Types Switch command.
Command Modes Privileged.
Usage Guidelines You must enable the SNMP trap before testing.
Examples This example shows how to run trap 0:
Console> (enable) test snmp trap 0
SNMP trap message sent. (4)
Console> (enable)
These examples show how to test SNMP traps by specific names:
Console> (enable) test snmp trap ciscoRFSwactNotif
ciscoRFSwactNotif notification was sent.
Console> (enable)
Console> (enable) test snmp trap ciscoFlashDeviceInsertedNotif
ciscoFlashDeviceInsertedNotif notification was sent.
Console> (enable)
Related Commands se t snmp trap
show snmp
trap_num Number of the trap.
specific_num (Optional) Number of a predefined trap.
trap_name Name of the notification defined in the MIB.