9
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,
obtain the user logs and diagnostic logs
as
follows:
<HUAWEI>
save logfile
//Collect common user logs.
<HUAWEI>
system-view
[HUAWEI]
diagnose
[HUAWEI-diagnose]
save diag-logfile
//Collect diagnostic logs.
[HUAWEI-diagnose]
terminal diag-logging
//Enable diagnostic log debugging.
You can transfer the files from cfcard:/logfile to your computer through TFTP, FTP, or SFTP to facilitate
information query and feedback. For details, see the
Configuration Guide - Basic Configuration
.