1-13
Saving System Information to a Log File
With the log file feature enabled, the log information generated by system can be saved to a specified
directory with a predefined frequency. This allows you to check the operation history at any time to
ensure that the device functions properly.
Logs are saved into the logfile buffer before they are saved into a log file. The system writes the logs in
the logfile buffer into the log file at a specified frequency, which is usually set to 24 hours and during a
relatively free time, in mornings for example. You can also manually save the logs. After the logs in the
logfile buffer are saved into the log file successfully, the system clears the logfile buffer.
Follow these steps to set to save system information to a log file:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Enable the log file feature
info-center logfile enable
Optional
Enabled by default
Configure the frequency with
which the log file is saved
info-center logfile frequency
freq-sec
Optional
The default value is 86,400
seconds.
Configure the maximum
storage space reserved for a
log file
info-center logfile size-quota
size
Optional
The default value is 1 MB.
Configure the directory to save
the log file
info-center logfile
switch-directory
dir-name
Optional
By default, the directory to save
the log file is the logfile
directory under root directory of
the CF card.
Manually save the log buffer
content to the log file
logfile save
Optional
Available in any view
By default, the system saves
the log file with the frequency
defined by the
info-center
logfile frequency
command.
z
To ensure that the device works normally, use the
info-center logfile size-quota
command to set
a logfile to be no smaller than 1 MB and no larger than 10 MB.
z
Use the
info-center logfile switch-directory
command to manually configure the directory to
which a log file can be saved. The configuration will be invalid after system reboot or the
primary/backup switchover.
Configuring Synchronous Information Output
Synchronous information output refers to the feature that if the user’s input is interrupted by system
output such as log, trap, or debugging information, then after the completion of system output the
Содержание S7906E - Switch
Страница 82: ...1 4 DeviceA interface tunnel 1 DeviceA Tunnel1 service loopback group 1...
Страница 200: ...1 11 DeviceB display vlan dynamic No dynamic vlans exist...
Страница 494: ...ii Displaying and Maintaining Tunneling Configuration 1 45 Troubleshooting Tunneling Configuration 1 45...
Страница 598: ...ii...
Страница 1757: ...4 9...
Страница 1770: ...6 4...
Страница 2017: ...2 11 Figure 2 3 SFTP client interface...
Страница 2062: ...i Table of Contents 1 URPF Configuration 1 1 URPF Overview 1 1 What is URPF 1 1 How URPF Works 1 1 Configuring URPF 1 2...
Страница 2238: ...1 16 DeviceA cfd linktrace service instance 1 mep 1001 target mep 4002...
Страница 2442: ...2 4 Set the interval for sending Syslog or trap messages to 20 seconds Device mac address information interval 20...