set snmp trap

Use the set snmp trap command to enable or disable the different SNMP traps on the system, or to add an entry into the SNMP authentication trap receiver table.

set snmp trap {enable | disable} [all | module | chassis | bridge | repeater | auth | vtp | ippermit | vmps | config | entity | stpx]
set snmp trap rcvr_addr rcvr_community

Syntax Description
enable  Keyword used to activate SNMP traps. 
disable  Keyword used to deactivate SNMP traps. 
all  (Optional) Keyword that specifies all trap types. 
module  (Optional) Keyword that specifies the moduleUp and moduleDown traps from the CISCO-STACK-MIB. 
chassis  (Optional) Keyword that specifies the chassisAlarmOn and chassisAlarmOff traps from the CISCO-STACK-MIB. 
bridge  (Optional) Keyword that specifies the newRoot and topologyChange traps from RFC 1493 (the BRIDGE-MIB). 
repeater  (Optional) Keyword that specifies the rptrHealth, rptrGroupChange, and rptrResetEvent traps from RFC 1516 (the SNMP-REPEATER-MIB). 
auth  (Optional) Keyword that specifies the authenticationFailure trap from RFC 1157. 
vtp  (Optional) Keyword that specifies the VTP from the CISCO-VTP-MIB. 
ippermit  (Optional) Keyword that specifies the IP Permit Denied access from the CISCO-STACK-MIB. 
vmps  (Optional) Keyword that specifies the vmVmpsChange trap from the CISCO-VLAN-MEMBERSHIP-MIB. 
config  (Optional) Keyword that specifies the sysConfigChange trap from the CISCO-STACK-MIB. 
entity  (Optional) Keyword that specifies _____________________ 
stpx  (Optional) Keyword that specifies the STPX trap. 
rcvr_addr  IP address or IP alias of the system to receive SNMP traps. 
rcvr_community  Community string to use when sending authentication traps. 
Default

The default configuration has SNMP traps disabled.

Command Type

Switch command.

Command Mode

Privileged.

Usage Guideline

An IP permit trap is sent when unauthorized access based on the IP permit list is attempted.

Examples

This example shows how to enable SNMP chassis traps:

Console> (enable) set snmp trap enable chassis
SNMP chassis alarm traps enabled.
Console> (enable)
  

This example shows how to enable all traps:

Console> (enable) set snmp trap enable
All SNMP traps enabled.
Console> (enable)
  

This example shows how to disable SNMP chassis traps:

Console> (enable) set snmp trap disable chassis
SNMP chassis alarm traps disabled.
Console> (enable)
  

This example shows how to add an entry in the SNMP trap receiver table:

Console> (enable) set snmp trap 192.122.173.42 public
SNMP trap receiver added.
Console> (enable)
  
Related Commands

clear ip permit
clear port filter
set ip permit
show ip permit
show port counters
show snmp
test snmp trap