Specifications

13-17
System Management Software Configuration Guide for Cisco IE 2000U and Connected Grid Switches
Chapter 13 Configuring System Message Logging
Related Documents
Switch(config)# logging console alerts
This example shows how to enable the configuration-change logger and to set the number of entries in
the log to 500:
Switch(config)# archive
Switch(config-archive)# log config
Switch(config-archive-log-cfg)# logging enable
Switch(config-archive-log-cfg)# logging size 500
Switch(config-archive-log-cfg)# end
In the following example, the logging history 1 command is used to configure the system to save only
level 1 (alert) and level 0 (emergency) messages to the logging history table, and, by extension, to send
only these levels in the SNMP notifications. The configuration is then confirmed using the show logging
history command.
Switch(config)# logging history 1
Switch(config)# snmp-server enable traps syslog
Switch(config)# end
Switch#
4w0d: %SYS-5-CONFIG_I: Configured from console by console
Switch# show logging history
Syslog History Table:1 maximum table entries,
! The following line indicates that 'logging history level 1' (alerts) is configured.
saving level alerts or higher
18 messages ignored, 0 dropped, 0 recursion drops
1 table entries flushed
SNMP notifications enabled, 0 notifications sent
entry number 2 : LINK-3-UPDOWN
Interface FastEthernet0, changed state to up
timestamp: 2766
Switch#
This is an example of output for the configuration log:
Switch# show archive log config all
idx sess user@line Logged command
38 11 unknown user@vty3 |no aaa authorization config-commands
39 12 unknown user@vty3 |no aaa authorization network default group radius
40 12 unknown user@vty3 |no aaa accounting dot1x default start-stop group
radius
41 13 unknown user@vty3 |no aaa accounting system default
42 14 temi@vty4 |interface GigabitEthernet4/0/1
43 14 temi@vty4 | switchport mode trunk
44 14 temi@vty4 | exit
45 16 temi@vty5 |interface FastEthernet5/0/1
46 16 temi@vty5 | switchport mode trunk
47 16 temi@vty5 | exit
Related Documents
Cisco IOS Configuration Fundamentals Command Reference, Release 15.2M&T
Cisco IOS Master Command List, All Releases
Cisco System Messages