CLI Reference Guide-R04

Table Of Contents
Chapter 4
| System Management Commands
Event Logging
– 157 –
show logging This command displays the configuration settings for logging messages to local
switch memory, to an SMTP event handler, or to a remote syslog server.
Syntax
show logging {flash | ram | sendmail | trap}
flash - Displays settings for storing event messages in flash memory
(i.e., permanent memory).
ram - Displays settings for storing event messages in temporary RAM
(i.e., memory flushed on power reset).
sendmail - Displays settings for the SMTP event handler (page 161).
trap - Displays settings for the trap function.
Default Setting
None
Command Mode
Privileged Exec
Example
The following example shows that system logging is enabled, the message level for
flash memory is “errors (i.e., default level 3 - 0), and the message level for RAM is
debugging” (i.e., default level 7 - 0).
Console#show logging flash
Global Configuration:
Syslog Logging : Enabled
Flash Logging Configuration:
History Logging in Flash : Level Errors (3)
Console#show logging ram
Global Configuration:
Syslog Logging : Enabled
Ram Logging Configuration:
History Logging in RAM : Level Debugging (7)
Console#
The following example displays settings for the trap function.
Console#show logging trap
Global Configuration:
Syslog Logging : Enabled
Remote Logging Configuration:
Table 22: show logging flash/ram - display description
Field Description
Syslog logging Shows if system logging has been enabled via the logging on
command.
History Logging in Flash The message level(s) reported based on the logging history command.