service timestamps message-type [uptime]
service timestamps message-type datetime [msec] [localtime] [show-timezone]
no service timestamps type
message-type Type of message to time stamp: debug or log. uptime (Optional) Time stamp with the time since the system was rebooted. datetime Time stamp with the date and time. msec (Optional) Include milliseconds in the date and time stamp. localtime (Optional) Time stamp relative to the local time zone. show-timezone (Optional) Include the time zone name in the time stamp.
To configure the system to time-stamp debugging or logging messages, use one of the service timestamps global configuration commands. To disable this service, use the no form of this command.
Time stamps can be added to either debugging or logging messages independently. The uptime form of the command adds time stamps in the format HHHH:MM:SS, indicating the time since the system was rebooted. The datetime form of the command adds time stamps in the format MMM DD HH:MM:SS, indicating the date and time according to the system clock. If the system clock has not been set, the date and time are preceded by an asterisk (*) to indicate that the date and time are probably not correct.
If the service timestamps command is specified with no arguments or keywords, the default is service timestamps debug uptime.
The default for the service timestamps type datetime command is to format the time in Coordinated Universal Time (UTC), with no milliseconds and no time zone name.
The no service timestamps command by itself disables time stamps for both debug and log messages
In the following example, the user enables time stamps on debugging messages, showing the time since reboot:Router(config)# service timestamps debug uptime
In the following example, the user enables time stamps on logging messages, showing the current time and date relative to the local time zone, with the time zone name included:Router(config)# service timestamps log datetime localtime show-timezone
� Cisco Systems, Inc. 2001, 2002, 2003
World Wide Education
|Converted from CHM to HTML with chm2web Pro 2.85 (unicode)|