300-410 · Question #60
Refer to the exhibit. An administrator noticed that after a change was made on R1, the timestamps on the system logs did not match the clock. What is the reasons for this error?
The correct answer is A. The keyword localtime is defined on the timestamp service command. When the service timestamps log datetime localtime command is configured, log messages display timestamps adjusted for the local time zone and daylight saving rules. If the system clock is synchronized to UTC via NTP and local time zone settings are incorrect or misaligned…
Question
Exhibit
Options
- AThe keyword localtime is defined on the timestamp service command.
- BThe NTP server is in an different time zone.
- CAn authentication error with the NTP server results in an incorrect timestamp.
- DThe system clock is set incorrectly to summer-time hours
How the community answered
(46 responses)- A72% (33)
- B4% (2)
- C15% (7)
- D9% (4)
Why each option
When the `service timestamps log datetime localtime` command is configured, log messages display timestamps adjusted for the local time zone and daylight saving rules. If the system clock is synchronized to UTC via NTP and local time zone settings are incorrect or misaligned, these log timestamps may not match the actual current time.
The `service timestamps log datetime localtime` command causes log messages to reflect the system's local time, which includes adjustments for the configured time zone and daylight saving time. If the system's internal clock is synchronized to UTC via NTP but the local time zone or daylight saving rules are misconfigured or differ from the actual current time, the log timestamps will appear incorrect relative to the true time.
An NTP server typically provides UTC, and the local device's clock adjusts based on its configured time zone. This is a normal operation and not inherently a reason for log timestamps to be incorrect if the local timezone is set correctly.
An authentication error with the NTP server would prevent the clock from synchronizing, leading to an incorrect system clock, but the question specifically asks about log timestamps not matching the clock, which points to how timestamps are *displayed*.
While an incorrect system clock could cause mismatches, the specific use of the `localtime` keyword for service timestamps is the most direct cause for log-specific timestamp discrepancies when an NTP synchronized clock's output is converted to local time.
Concept tested: System Logging Timestamps Configuration
Source: https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/cns/configuration/15-mt/cns-15-mt-book/cns-syslog.html
Topics
Community Discussion
No community discussion yet for this question.
