Timestamps are useful for viewing when certain events happen on a router. Timestanps are also helpful for troubleshooting, because they allow the network administrator to compare simultaneous events on network routers and analyze whether one occurrence caused, or was a result of, another.
If a router is configured to get the time from a Network Time Protocol (NTP) server, the times in the router's log entries may be different from the time on the system clock if the [localtime] option is not in the service timestamps log command. In the example below, the router gets its time from an NTP server and theservice timestamps log datetime command is issued. The show clock command displays a time of 14:12:26, yet when a configuration change is made immediately after the show clock command, the log message shows a time of 21:12:28, as shown in this example:
clock timezone PST -8
clock summer-time PDT recurring
service timestamps debug datetime
service timestamps log datetime
logging buffered 16000 debugging
ntp clock-period 17179272
ntp server 188.8.131.52
router#show clock14:12:26.312 PDT Thu Apr 27 2000
Enter configuration commands, one per line. End with CNTL/Z.
Apr 27 21:12:28: %SYS-5-CONFIG_I: Configured from console by vty0
Add the [localtime] option to the service timestamps log command. For example, if the current configuration is service timestamps log datetime, issue this global configuration command:
router(config)#service timestamps log datetime localtime
router(config)#^Z (ctrl z to exit)
The times should now be synchronized between the system clock and the log message timestamps.
Hi, consider my devices and suggest networking.cluster1:intel nuc1 : no internet, or any other connections. Only connects to intel nuc2 on specific ports.Would like to have flexibility in managing/assigning ports, ip to which its allowed toconnectintel nu...
Team please help this Noon;I am unable to pingFrom Router 2 I cannot ping 184.108.40.206From Router 3 I cannot ping 220.127.116.11From Router 3 I cannot ping 18.104.22.168From Router 4 I cannot ping 22.214.171.124I have attached the configuration I did and below are the IP routes. ...
Hello community,I need your help. I changed a switch today (old: C3560, new: C2960X). The old C3560 was connected to another C3560 over a trunk port.Since I changed the switch (same config, same vlans etc.) the C3560 on the other side remains r...
Hello everyone, I am currently having an issue with this lab I am working on in packet tracer. I have around 14 hours into this and cannot seem to find out why I am having issues.This is a Lab with HSRP for 4 Vlans, 10,20,30, and 40. Overall, I have ...
Hi, I have a building like a Campus with different Departments at any Level of the Building. In some of that I use the same Switch for 2 Departments, so users are in different VRF at the moment. I don't know the MAc address or other info about the clients...