service timestamps
Add time stamps to debug and log messages. This command adds either the uptime or the current time and date.
C-Series, E-Series, S-Series, Z-Series
Syntax
service timestamps [debug | log] [datetime [localtime] [msec]
[show-timezone] | uptime]
To disable timestamping, use the no service timestamps [debug | log]
command.
Parameters
debug (OPTIONAL) Enter the keyword debug to add timestamps to debug
messages.
log (OPTIONAL) Enter the keyword log to add timestamps to log
messages with severity 0 to 6.
datetime (OPTIONAL) Enter the keyword datetime to have the current time
and date added to the message.
localtime (OPTIONAL) Enter the keyword localtime to include the localtime
in the timestamp.
msec (OPTIONAL) Enter the keyword msec to include milliseconds in the
timestamp.
show-timezone (OPTIONAL) Enter the keyword show-timezone to include the
time zone information in the timestamp.
uptime (OPTIONAL) Enter the keyword uptime to have the timestamp based
on time elapsed since system reboot.
Defaults Not configured.
Command Modes CONFIGURATION
Command History
Version 8.3.11.1 Introduced on the Z9000.
Version 8.1.1.0 Introduced on the E-Series ExaScale.
Version 7.6.1.0 Introduced on the S-Series.
Version 7.5.1.0 Introduced on the C-Series.
E-Series Original command.
Usage
Information
If you do not specify parameters and enter service timestamps, it appears as service
timestamps debug uptime in the running-configuration.
Use the show running-config command to view the current options set for the
service timestamps command.
134