
60
Related commands:
info-center timestamp loghost
.
Examples
# Configure the time stamp format for log information as
boot
.
<Sysname> system-view
[Sysname] info-center timestamp log boot
At this time, if you log in to the FTP server using the username ftp, the log information generated is as
follows:
%0.109391473 Sysname FTPD/5/FTPD_LOGIN: User ftp (192.168.1.23) has logged in
successfully.
# Configure the time stamp format for log information as
date
.
<Sysname> system-view
[Sysname] info-center timestamp log date
At this time, if you log in to the FTP server using the username ftp, the log information generated is as
follows:
%Jan 30 05:36:29:579 2011 Sysname FTPD/5/FTPD_LOGIN: User ftp (192.168.1.23) has logged
in successfully.
# Configure the time stamp format for log information as
none
.
<Sysname> system-view
[Sysname] info-center timestamp log none
At this time, if you log in to the FTP server using the username ftp, the log information generated is as
follows:
% Sysname FTPD/5/FTPD_LOGIN: User ftp (192.168.1.23) has logged in successfully.
info-center timestamp loghost
Syntax
info-center timestamp
loghost
{
date
|
iso
|
no-year-date
|
none
}
undo info-center timestamp
loghost
View
System view
Default level
2: System level
Parameters
date
: Indicates the current system date and time, in the format of "Mmm dd hh:mm:ss:ms yyyy". However,
the display format depends on the log host.
iso
: Sets the time stamp to ISO 8601 format, for example, 2011-01-21T15:32:55.
no-year-date
: Indicates the current system date and time (year exclusive).
none
: Indicates that no time stamp information is provided.
Description
Use the
info-center timestamp loghost
command to configure the time stamp format of the system
information sent to the log host.
Use the
undo
info-center timestamp loghost
command to restore the default.