logging persistent-storage

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.

Parameter

Description

severity <LEVEL>

Specifies the severity of the syslog messages:

  • alert: Preserves syslog messages with the severity of alert (6) and emergency (7)
  • crit: Preserves syslog messages with the severity of critical (5) and above. Default.
  • debug: Preserves syslog messages with the severity of debug (0) and above.
  • emerg: Preserves syslog messages with the severity of emergency (7) only.
  • err: Preserves syslog messages with the severity of err (4) and above.
  • info: Preserves syslog messages with the severity of info (1) and above.
  • notice: Preserves syslog messages with the severity of notice (2) and above.
  • warning: Preserves syslog messages with the severity of warning (3) and above.

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

Command History

Release

Modification

10.07 or earlier

--

Command Information

Platforms

Command context

Authority

All platforms

config

Administrators or local user group members with execution rights for this command.