System Management Commands | 79
show trapflags
This command displays trap conditions. Configure which traps the switch should generate by enabling
or disabling the trap condition. If a trap condition is enabled and the condition is detected, the switch's
SNMP agent sends the trap to all enabled trap receivers. The switch does not have to be reset to
implement the changes. Cold start traps are always generated and cannot be disabled.
Syntax
show trapflags
Mode
Privileged Exec
snmp-server
This command sets the name and the physical location of the switch, and the organization responsible
for the network. The range for name, location, and contact is from 1 to 31 alphanumeric characters.
Syntax
snmp-server {sysname name | location loc | contact con}
Default
None
Mode
Global Config
Note: The DVMRP, OSPF, and PIM traps are not supported in the L2 image.
Table 5-16. Fields of show trapflags Command Report
Field Description
Authentication Flag May be enabled or disabled. The factory default is enabled. Indicates whether
authentication failure traps will be sent.
Link Up/Down Flag May be enabled or disabled. The factory default is enabled. Indicates whether link status
traps will be sent.
Multiple Users Flag May be enabled or disabled. The factory default is enabled. Indicates whether a trap will
be sent when the same user ID is logged into the switch more than once at the same time
(either via telnet or serial port).
Spanning Tree Flag May be enabled or disabled. The factory default is enabled. Indicates whether spanning
tree traps will be sent.
DVMRP Traps May be enabled or disabled. The factory default is disabled. Indicates whether DVMRP
traps will be sent.
OSPF Traps May be enabled or disabled. The factory default is disabled. Indicates whether OSPF
traps will be sent.
PIM Traps May be enabled or disabled. The factory default is disabled. Indicates whether PIM traps
will be sent.