Saving log message in log file, Clearing system log – ATL Telecom R1-SW Ethernet Switch User Manual

Page 108

Advertising
background image

R1-SW24L2B User’s Manual

5-40

Saving Log Message in Log File

By default, the Corecess R1-SW24L2B does not save the log messages in a log file. After
configuring the log messages to save using the logging file enable command, the log
message generated will be saved in a log file.

To configure the log messages to be saved in a log file, use the following command in Global
configuration mode:

Table 5-26 Saving log messages in a log file

Command

Task

logging file

{enable

|

disable

}

1. Configure whether to save the log messages in a log file.

y

enable: Saves log messages in a file.

y

disable: Doesn’t save log messages in a file.


The following example shows how to configure the log message to be save in a file:

(config)# logging file enable

(config)#

Clearing System Log

To clear the system log file, the clear logging buffer command in Privileged mode. The
following is an example of clearing the logs in the log file and verifying the result:

# clear logging buffer

# show logging buffer 1

#


Advertising