PurposeCommand or Action
•
Issuing the service timestamps log datetime command configures
debugging messages to be time-stamped with the date and time.
•
service timestamps debug uptime
Example:
RP/0/RSP0/CPU0:router(config)# service
◦
The optional localtime keyword includes the local time zone in
time stamps.
◦
The optional msec keyword includes milliseconds in time stamps.
timestamps debug datetime msec
show-timezone
◦
The optional show-timezone keyword includes time zone
information in time stamps.
or
RP/0/RSP0/CPU0:router(config)# service
timestamps debug uptime
•
Issuing the service timestamps log uptime command configures
debugging messages to be time-stamped with the time that has elapsed
since the networking device last rebooted.
Entering the service timestamps command without any keywords or
arguments is equivalent to entering the service timestamps debug
uptime command.
Tip
commit
Step 4
Disabling Time Stamps
This tasks explains how to disable the inclusion of time stamps in syslog messages.
SUMMARY STEPS
1.
configure
2.
Do one of the following:
•
service timestamps disable
•
no service timestamps [debug | log] [datetime [localtime] [msec] [show-timezone]] | uptime]
3.
commit
DETAILED STEPS
PurposeCommand or Action
configure
Step 1
Disables the inclusion of time stamps in syslog messages.Do one of the following:
Step 2
Cisco ASR 9000 Series Aggregation Services Router System Monitoring Configuration Guide, Release 4.2.x
301
Implementing Logging Services
Disabling Time Stamps