2
To more easily identify log files from different member devices, use two directories to save the log
files from each member device and include member IDs in the directory names.
Table 1 Log and operating information
Category
File name format
Log file directory
Content
Common log
logfile.log
flash:/logfile
Command execution, events, and status
changes log messages.
Diagnostic
log
diagfile.log
flash:/diagfile
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
member devices when a
communication error occurs.
Operating
statistics
file-basename.tar.gz
N/A
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 each member
device.
<Sysname> logfile save
The contents in the log file buffer have been saved to the file
flash:/logfile/logfile.log
2.
Identify the common log file on each member device:
# Display the common log file on the master device.
<Sysname> dir flash:/logfile/
Directory of flash:/logfile
0 -rw- 21863 Jul 11 2013 16:00:37 logfile.log
1048576 KB total (38812 KB free)
# Display the common log file on each subordinate device:
<Sysname> dir slot2#flash:/logfile/
Directory of slot2#flash:/logfile
0 -rw- 21863 Jul 11 2013 16:00:37 logfile.log
1048576 KB total (38812 KB free)
3.
Transfer the files to the desired destination by using FTP, TFTP, or USB. (Details not shown.)