hit counter script

Enabling And Disabling Time Stamps On Log Messages; Enabling And Disabling Sequence Numbers In Log Messages - Cisco Catalyst 9200 Configuration Manual

Hide thumbs Also See for Catalyst 9200:
Table of Contents

Advertisement

Enabling and Disabling Time Stamps on Log Messages

Enabling and Disabling Time Stamps on Log Messages
By default, log messages are not time-stamped.
This task is optional.
SUMMARY STEPS
1. configure terminal
2. Use one of these commands:
3. end
DETAILED STEPS
Command or Action
Step 1
configure terminal
Example:
Device# configure terminal
Step 2
Use one of these commands:
• service timestamps log uptime
• service timestamps log datetime[msec | localtime |
show-timezone]
Example:
Device(config)# service timestamps log uptime
or
Device(config)# service timestamps log datetime
Step 3
end
Example:
Device(config)# end

Enabling and Disabling Sequence Numbers in Log Messages

If there is more than one log message with the same time stamp, you can display messages with sequence
numbers to view these messages. By default, sequence numbers in log messages are not displayed.
This task is optional.
System Management Configuration Guide, Cisco IOS XE Gibraltar 16.10.x (Catalyst 9200 Switches)
126
• service timestamps log uptime
• service timestamps log datetime[msec | localtime | show-timezone]
Purpose
Enters global configuration mode.
Enables log time stamps.
• log uptime Enables time stamps on log messages,
showing the time since the system was rebooted.
• log datetime Enables time stamps on log messages.
Depending on the options selected, the time stamp can
include the date, time in milliseconds relative to the
local time zone, and the time zone name.
Returns to privileged EXEC mode.
Configuring System Message Logs

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents

Save PDF