Cisco XR 1200 series Command Reference Manual page 354

Cisco ios xr system monitoring command reference
Table of Contents

Advertisement

service timestamps
Usage Guidelines
Time stamps can be added to either debugging or syslog messages independently. The uptime keyword adds
time stamps in the format hhhh:mm:ss, indicating the elapsed time in hours:minutes:seconds since the
networking device last rebooted. The datetime keyword 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 (*), which indicates that the date and time have not been set and should be
verified.
The no form of the service timestamps command causes messages to be time-stamped in the default format.
Entering the service timestamps form of this command without any keywords or arguments is equivalent to
issuing the service timestamps debug uptime form of this command.
Task ID
Task ID
logging
Examples
This example shows how to enable time stamps on debugging messages, which show the elapsed time since
the networking device last rebooted:
RP/0/0/CPU0:router(config)# service timestamps debug uptime
This example shows how to enable time stamps on syslog messages, which show the current time and date
relative to the local time zone, with the time zone name included:
RP/0/0/CPU0:router(config)# service timestamps log datetime localtime show-timezone
Cisco IOS XR System Monitoring Command Reference for the Cisco XR 12000 Series Router, Release 4.1
342
Operations
read, write
Logging Services Commands
OL-24735-01

Advertisement

Table of Contents
loading

Table of Contents