PurposeCommand or Action
Returns to privileged EXEC mode.end
Example:
Switch(config)# end
Step 3
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:
•
service timestamps log uptime
•
service timestamps log datetime[msec | localtime | show-timezone]
3.
end
DETAILED STEPS
PurposeCommand or Action
Enters global configuration mode.configure terminal
Example:
Switch# configure terminal
Step 1
Enables log time stamps.Use one of these commands:
Step 2
•
service timestamps log uptime
•
log uptime—Enables time stamps on log messages,
showing the time since the system was rebooted.
•
service timestamps log datetime[msec |
localtime | show-timezone]
•
log datetime—Enables time stamps on log messages.
Depending on the options selected, the time stamp can
Example:
Switch(config)# service timestamps log uptime
include the date, time in milliseconds relative to the local
time zone, and the time zone name.
Consolidated Platform Configuration Guide, Cisco IOS Release 15.2(4)E (Catalyst 2960-X Switches)
1604
How to Configure System Message Logs