Chapter 4
| System Management Commands
Event Logging
– 130 –
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 | 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).
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
Syslog logging: Enabled
History logging in FLASH: level errors
Console#show logging ram
Syslog logging: Enabled
History logging in RAM: level debugging
Console#
The following example displays settings for the trap function.
Console#show logging trap
Remote Log Status : Enabled
Remote Log Facility Type : Local use 7
Remote Log Level Type : Debugging messages
Remote Log Server IP Address : 1.2.3.4
Remote Log Server IP Address : 0.0.0.0
Remote Log Server IP Address : 0.0.0.0
Remote Log Server IP Address : 0.0.0.0
Table 20: 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.
History logging in RAM The message level(s) reported based on the logging history command.