470
Information center commands
Commands and descriptions for centralized devices apply to the following routers:
•
MSR1002-4/1003-8S.
•
MSR2003.
•
MSR2004-24/2004-48.
•
MSR3012/3024/3044/3064.
•
MSR954(JH296A/JH297A/JH298A/JH299A/JH373A).
•
MSR958(JH300A/JH301A).
Commands and descriptions for distributed devices apply to MSR4060 and MSR4080 routers.
diagnostic-logfile save
Use
diagnostic-logfile save
to manually save diagnostic logs from the diagnostic log file buffer to
the diagnostic log file.
Syntax
diagnostic-logfile save
Views
Any view
Predefined user roles
network-admin
Usage guidelines
You can specify the directory to save the diagnostic log file by using the
info-center
diagnostic-logfile directory
command.
The system clears the diagnostic log file buffer after saving the buffered diagnostic logs to the
diagnostic log file.
If the diagnostic log file buffer is empty, this command displays a success message event though no
logs are saved to the diagnostic log file.
Examples
# Manually save diagnostic logs from the diagnostic log file buffer to the diagnostic log file.
<Sysname> diagnostic-logfile save
The contents in the diagnostic log file buffer have been saved to the file
flash:/diagfile/diagfile.log.
Related commands
info-center diagnostic-logfile enable