Cisco Certified Network Associate (CCNA) Practice Exam

Disable ads (and more) with a membership for a one time $2.99 payment

Study for the Cisco Certified Network Associate (CCNA) exam with our comprehensive quiz featuring multiple-choice questions and detailed explanations. Prepare effectively and enhance your understanding of networking concepts!

Practice this question and more.


Which command is used to configure timestamps for Syslog messages in milliseconds?

  1. (config)#service timestamps log datetime

  2. (config)#logging host

  3. (config)#log timestamps

  4. (config)#enable timestamps log

The correct answer is: (config)#service timestamps log datetime

The command to configure timestamps for Syslog messages in milliseconds is indeed appropriate because it sets up the router or switch to include date and time information, down to the millisecond, in the Syslog messages it generates. By using the command with "datetime," the device will timestamp the Syslog messages accurately, which is crucial for debugging and monitoring events with precision, particularly in environments where timing is essential for understanding the sequence of events. The inclusion of milliseconds allows network administrators to get a more granular view of the events happening on the network, making it easier to correlate logs with other time-sensitive data, such as packet captures or other logging from different devices. Therefore, using this command not only helps in proper logging but also aids in troubleshooting by providing a clear chronological context within the logs. The other options either do not allow for configuring timestamps specifically in milliseconds or are unrelated to timestamp configuration. For example, configuring a logging host is concerned with directing Syslog messages to a specific server and does not affect how those messages are timestamped. Other commands listed do not pertain to setting timestamps, thus making them irrelevant in the context of configuring Syslog message timestamps to include milliseconds.