logging persistent-storage
Syntax
logging persistent-storage [severity {alert|crit|debug|emerg|err|info|notice|warning}]
no logging persistent-storage
Description
Enables or disables storage of logs in storage. Only logs of the specified severity and above will be preserved in the storage.
The
no
form of this command disables storage of logs in storage.
Command context
config
Parameters
severity <LEVEL>
- Specifies the severity of the syslog messages:
alert
: Preserves syslog messages with the severity ofalert (6)
andemergency (7)
.crit
: Preserves syslog messages with the severity ofcritical (5)
and above. Default.debug
: Preserves syslog messages with the severity ofdebug (0)
and above.emerg
: Preserves syslog messages with the severity ofemergency (7)
only.err
: Preserves syslog messages with the severity oferr (4)
and aboveinfo
: Preserves syslog messages with the severity ofinfo (1)
and above.notice
: Preserves syslog messages with the severity ofnotice (2)
and above.warning
: Preserves syslog messages with the severity ofwarning (3)
and above.
Authority
Administrators or local user group members with execution rights for this command.
Usage
These logs can be copied out by using the
copy support-files all
or
copy support-files previous-boot
.
Examples
Enabling storage of logs in storage with severity
info
:
switch(config)#logging persistent-storage severity info Logs will be written to storage and made available across reboot. Do you want to continue (y/n)?
Disabling storage of logs in storage:
switch(config)# no logging persistent-storage