Specifications

13-16
System Management Software Configuration Guide for Cisco IE 2000U and Connected Grid Switches
Chapter 13 Configuring System Message Logging
Verifying the Configuration
To remove a syslog server, use the no logging host global configuration command, and specify the syslog
server IP address. To disable logging to syslog servers, enter the no logging trap global configuration
command.
EXAMPLE
In the following example, the user configures the syslog facility to the kernel facility type:
Switch(config)# logging facility kern
Verifying the Configuration
To display the logging configuration and the contents of the log buffer, use the show logging privileged
EXEC command. For information about the fields in this display, see the Cisco IOS Configuration
Fundamentals Command Reference, Release 15.2M&T.
Configuration Example
The following example shows how to enable standard system logging to the local syslog buffer:
Switch(config)# logging buffered
In the following example, synchronous logging for line 4 is enabled with a severity level of 6. Then
synchronous logging for line 2 is enabled with a severity level of 7 and is specified with a maximum
number of buffer lines of 1,000.
Switch(config)# line 4
Switch(config-line)# logging synchronous level 6
Switch(config-line)# exit
Switch(config)# line 2
Switch(config-line)# logging synchronous level 7 limit 1000
Switch(config-line)# end
This example shows part of a logging display with the service timestamps log datetime global
configuration command enabled:
*Mar 1 18:46:11: %SYS-5-CONFIG_I: Configured from console by vty2 (10.34.195.36)
This example shows part of a logging display with the service timestamps log uptime global
configuration command enabled:
00:00:46: %LINK-3-UPDOWN: Interface Port-channel1, changed state to up
This example shows part of a logging display with sequence numbers enabled:
000019: %SYS-5-CONFIG_I: Configured from console by vty2 (10.34.195.36)
The following example shows how to change the level of messages sent to the console terminal to alerts,
meaning that messages at levels 0 and 1 are sent:
Step 6
show running-config Verify your entries.
Step 7
copy running-config
startup-config
(Optional) Save your entries in the configuration file.
Command Purpose