101
Examples
# Enable synchronous information output, and then issue the
display current-configuration
command to view the current configuration of the device.
<Sysname> system-view
[Sysname] info-center synchronous
Info-center synchronous output is on
[Sysname] display current-
At this time, the system receives log information. It displays the log information first, and then
displays your previous input, which is
display current-
in this example.
%May 21 14:33:19:425 2007 Sysname SHELL/4/LOGIN: VTY login from 192.168.1.44
[Sysname] display current-
Enter
configuration
to complete the
display current-configuration
command, and press the
Enter
key to execute the command.
# Enable synchronous information output, and then save the current configuration (enter interactive
information).
<Sysname> system-view
[Sysname] info-center synchronous
Info-center synchronous output is on
[Sysname] save
The current configuration will be written to the device. Are you sure? [Y/N]:
At this time, the system receives the log information. It displays the log information first and then
displays [Y/N].
%May 21 14:33:19:425 2007 Sysname SHELL/4/LOGIN: VTY login from 192.168.1.44
[Y/N]:
Enter
Y
or
N
to complete your input.
info-center syslog min-age
Use
info-center syslog min-age
to set the minimum storage period for logs stored in the log buffer
and log file.
Use
undo info-center syslog min-age
to restore the default.
Syntax
info-center syslog min-age
min-age
undo info-center syslog min-age
Default
The log minimum storage period is not set.
Views
System view
Predefined user roles
network-admin
Parameters
min-age
: Sets the log minimum storage period in hours. The value range is 1 to 8760.