2
Collecting log and operating information
IMPORTANT:
To facilitate quick troubleshooting, execute the following commands:
•
info-center enable
—Enables the information center. By default, the information center is enabled.
•
info-center logfile enable
—Enables the log file feature so the system outputs logs to log files. By default,
the log file feature is enabled.
•
info-center diagnostic-logfile enable
—Enables saving diagnostic logs to the diagnostic log file. By
default, saving diagnostic logs to the diagnostic log file is enabled.
During operation, the device generates common log messages and diagnostic log messages to
record information about routine operations and operating status.
shows the types of files
that the system uses to store the log messages. You can export these files by using FTP, TFTP, or
USB.
In an IRF system, log files are stored on the master device. Multiple devices will have log files if
master/subordinate switchovers have occurred. You must collect log files from all member devices.
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.