2
Category
File name format
Content
Diagnostic log
diagfile.log
Diagnostic log messages about device operation, including the
following items:
•
Parameter settings in effect when an error occurs.
•
Information about a card startup error.
•
Handshaking information between the MPU and interface
module when a communication error occurs.
Operating
statistics
file-basename.gz
Current operating statistics for feature modules, including the
following items:
•
Device status.
•
CPU status.
•
Memory status.
•
Configuration status.
•
Software entries.
•
Hardware entries.
Collecting common log messages
1.
Save common log messages from the log buffer to a log file:
By default, the log file is saved in the
logfile
directory of the flash memory on the active MPU (in
standalone mode) or global active MPU (in IRF mode).
# Save log messages to the log file on the default MDC (
Admin
).
<Sysname> logfile save
The contents in the log file buffer have been saved to the file
flash:/logfile/logfile1.log
# Identify non-default MDCs created on the device.
<Sysname> display mdc
ID Name Status
---------------------------------
1 Admin active
2 mdc2 active
3 mdc3 active
# Save log messages to the log file on each non-default MDC.
<Sysname> system-view
[Sysname] switchto mdc mdc2
******************************************************************************
* Copyright (c) 2004-2020 New H3C Technologies Co., Ltd. All rights reserved.*
* Without the owner's prior written consent, *
* no decompiling or reverse-engineering shall be allowed. *
******************************************************************************
<Sysname> logfile save
The contents in the log file buffer have been saved to the file
flash:/logfile/logfile1.log
<Sysname> switchback
[Sysname] switchto mdc 3
******************************************************************************
* Copyright (c) 2004-2020 New H3C Technologies Co., Ltd. All rights reserved.*