Collect Logs
Device logs involve user operations, system faults, and system security issues. Logs are classified into
user logs and diagnostic logs. After logging in to the switch,
follows:
<HUAWEI> save logfile
<HUAWEI> system-view
[HUAWEI] diagnose
[HUAWEI-diagnose] save
[HUAWEI-diagnose] terminal diag-logging
You can transfer the files from flash:/syslogfile/, flash:/logfile/, and flash:/resetinfo/ to your computer
through TFTP, FTP, or SFTP to facilitate information query and feedback. For details, see the
Configuration Guide - Basic
In V200R009 and later versions, you can only run save logfile all command to save the
logs in the user log buffer area and diagnostic log buffer area to the user log file and
diagnostic log file, respectively.
diag-logfile
Configuration.
obtain the user logs and diagnostic logs
//Collect common user logs.
//Collect device diagnostic logs.
//Enable diagnostic log debugging.
9
as