Specifications

Table Of Contents
2-294
Cisco SCE 2000 and SCE 1000 CLI Command Reference
OL-26797-03
Chapter 2 CLI Command Reference
service timestamps
service timestamps
Configures the time stamp on the messages on the syslog server.
To reset the timestamp format to the default (uptime), use the no form of this command.
service timestamps log (uptime | (datetime [msec] [localtime] [show-timezone] [year]))
no service timestamps log
Syntax Description
Command Default Default time stamp format is uptime.
uptime Time stamp shows the time since the system was last rebooted. For example
"4w6d" (time since last reboot is 4 weeks and 6 days).
This is the default time-stamp format.
The format for uptime varies depending on how much time has elapsed:
HHHH:MM:SS (HHHH hours: MM minutes: SS seconds) for the first
24 hours.
DdHHh (D days HH hours) after the first day.
WwDd (W weeks D days) after the first week.
datetime Time stamp shows the date and time.
The time-stamp format for datetime is MMM DD HH:MM:SS, where
MMM is the month, DD is the date, HH is the hour (in 24-hour
notation), MM is the minute, and SS is the second.
If the datetime keyword is specified, you can optionally add the msec,
localtime, show-timezone, or year keywords.
Note The optional msec, localtime, show-timezone, and year keywords,
if present, must be in the order shown in the command syntax. All
keywords up to the last specified keyword must be present.
Incorrect: service timestamps log datetime msec year
Correct: service timestamps log datetime msec localtime
show-timezone year
If the service timestamps datetime command is used without
additional keywords, time stamps will be shown using UTC, without
the year, without milliseconds, and without a time zone name.
msec (Optional) Include milliseconds in the date-time format, in the format
HH:DD:MM:SS.mmm, where .mmm is milliseconds
localtime (Optional) Time stamp relative to the local time zone.
Note If the localtime keyword option is not used (or if the local time zone
has not been configured), time will be displayed in Coordinated
Universal Time (UTC).
show-timezone (Optional) Include the time zone name in the date-time format.
year (Optional) Include the year in the date-time format.