12-11-2004 01:26 AM - edited 03-02-2019 08:32 PM
Hi,
What is the functionality of using service timestamps..
Why do we use this...
Thanks
Irshad
12-11-2004 03:17 AM
It puts a timestamp in front of all syslog and debug message so that you can see the time relationship between them.
Be careful with the parameters, depending on whether you want UTC time or your local timezone. Be careful also to set your clock correctly to UTC, and apply the correct timezone offset. If you try setting your clock to your local time, then it is very confusing: NTP will not work, and the timestamps will be offset. Here is some doc to read:
Kevin Dorrell
Luxembourg
12-11-2004 12:10 PM
I would like to amplify slightly the response from Kevin. The default of IOS is to put a timestamp on log messages and on debug messages which is based on the uptime of the router. The service timestamps command gives you the ability to specify several things about the messages: whether to use uptime or clock time, what degree of precision to use in the timestamp (seconds or miliseconds), whether to reflect the timezone.
So the command gives you the ability to control how the timestamp will appear in the log messages and in debug messages.
HTH
Rick
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide