28.
Logging System Trap Messages to the NVRAM
MN700004 Rev 01
331
Argument Description
emergencies
Sets the message log filter to the highest priority level (zero).
alerts
Sets the message log filter to priority level one.
critical
Sets the message log filter to priority level two.
errors
Sets the message log filter to the lowest allowable level.
log record-priority
The
log record-priority
command, in Global Configuration mode, causes displayed and
logged trap messages to include the optional
PRIORITY
field. The no form of this command
causes displayed and logged trap messages to exclude the optional
PRIORITY
field. By
default, the
PRIORITY
field is excluded.
Command Syntax
device-name
(config)#
log record-priority
device-name
(config)#
no log record-priority
clear log nvram
The
clear log nvram
command, in Privileged (Enable) mode, removes all System trap
messages from the NVRAM. The history starts from scratch.
Command Syntax
device-name
#
clear log nvram
show log-history nvram
The
show log-history nvram
command, in Privileged (Enable) mode, displays the contents
of the stored system message history.
You can select output of the first (oldest) specified number of messages, the last (latest)
specified number of messages, the size of the stored history (number of records), or the
current trap-level status for history recording.
If no arguments are specified, the entire history is displayed. You can stop the output by
pressing <Ctrl+C>.
Command Syntax
device-name
#
show log-history nvram
[{{
first
<
first-record
>}
|{
last
<
last-
record
>}|
size
|
status
}}]
Argument Description
first <first-
record>
(Optional) Displays the specified number of stored trap messages, starting at
the oldest existing record. The range is
<1-65535>
.
last <last-
(Optional) Displays the latest specified number of stored trap messages. The