2-666
Catalyst 6500 Series Switch Command Reference—Release8.4
OL-6244-01
Chapter2 Catalyst 6500 Series Switch and ROM Monitor Commands
set snmp trap
Defaults The default is SNMP traps are disabled.
Command Types Switch command.
Command Modes Privileged.
Usage Guidelines This command is not supported by the NAM.
An IP permit trap is sent when unauthorized access based on the IP permit list is attempted.
Use the show snmp command to verify the appropriate traps were configured.
To use this command, you must configure all notification tables: snmpTargetAddrTable,
snmpTargetParamsTable, and snmpNotifyTable.
Use the all option to enable or disable all trap types and all port traps.
Use the set port trap command to enable or disable a single port or a range of ports.
The trap configuration is saved in NVRAM and the configuration file.
Examples This example shows how to enable SNMP chassis traps:
Console> (enable) set snmp trap enable chassis
SNMP chassis alarm traps enabled.
macthreshold (Optional) Specifies MAC address threshold notification traps.
module (Optional) Specifies the moduleUp and moduleDown traps from the
CISCO-STACK-MIB.
redundancy (Optional) Specifies the redundancy status traps.
stpx (Optional) Specifies the spanning tree extension traps.
syslog (Optional) Specifies the syslog notification traps.
system (Optional) Specifies the system notification traps.
vlancreate (Optional) Specifies the VLAN creation traps.
vlandelete (Optional) Specifies the VLAN deletion traps.
vmps (Optional) Specifies the vmVmpsChange trap from the
CISCO-VLAN-MEMBERSHIP-MIB.
vtp (Optional) Specifies the VTP from the CISCO-VTP-MIB.
rcvr_addr IP address or IP alias of the system to receive SNMP traps.
rcvr_community Community string to use when sending authentication traps.
port rcvr_port (Optional) Specifies the UDP port and port number; valid values are from 0 to
65535.
owner
rcvr_owner (Optional) Specifies the user who configured the settings for the SNMP trap; the
valid value is a character string from 1 to 21 characters in length.
index rcvr_index (Optional) Specifies index entries with the same rcvr_addr; valid values are from
0 to 65535.