cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
6450
Views
17
Helpful
2
Replies

what is service timestamps

kuldeeprawat
Level 1
Level 1

Hi,

What is the functionality of using service timestamps..

Why do we use this...

Thanks

Irshad

2 Replies 2

Kevin Dorrell
Level 10
Level 10

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:

http://www.cisco.com/univercd/cc/td/doc/product/software/ios122/122cgcr/ffun_r/ffrprt3/frf013.htm#wp1019290

http://www.cisco.com/univercd/cc/td/doc/product/software/ios122/122cgcr/ffun_r/ffrprt3/frf012.htm#wp1017927

http://www.cisco.com/univercd/cc/td/doc/product/software/ios122/122cgcr/ffun_r/ffrprt3/frf012.htm#wp1018092

Kevin Dorrell

Luxembourg

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

HTH

Rick