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.

Theno这个命令disabl形式es storage of logs in storage.

Command context

config

Parameters

severity
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 above

  • info: 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复制所有支持文件orcopy support-files previous-boot.

Examples

Enabling storage of logs in storage with severityinfo:

switch(config)#logging persistent-storage severity infoLogs 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