R2511-HP MSR Router Series Network Management and Monitoring Command Reference(V5)

296
Examples
# Save logs in the log file buffer into the log file.
<Sysname> logfile save
logfile enable
Use logfile enable to enable the log file feature on MSR20-1X routers.
Use logfile disable to disable the log file feature on MSR20-1X routers.
Syntax
logfile { enable | disable }
Default
The log file feature is disabled on MSR20-1X routers.
Views
Any view
Default command level
2: System level
Parameters
enable: Enables the log file feature.
disable: Disables the log file feature.
Usage guidelines
The log file feature enables output of system information to a log file.
To apply the new configuration, you must reboot the router.
The following matrix shows the command and router compatibility:
Command MSR900 MSR93X MSR20-1X
MSR20 MSR30 MSR50 MSR1000
logfile enable
No. No. Yes. No. No. No. No.
Examples
# Enable the output of system information to a log file on MSR20-1X routers.
<Sysname> logfile enable
Related commands
display logfile status
reset logbuffer
Use reset logbuffer to clear the log buffer.
Syntax
reset logbuffer