EasyManuals Logo
Home>Cisco>Network Router>Catalyst 3560-X

Cisco Catalyst 3560-X User Manual

Cisco Catalyst 3560-X
1538 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #830 background imageLoading...
Page #830 background image
1-8
Catalyst 3750-X and 3560-X Switch Software Configuration Guide
OL-25303-03
Chapter 1 Configuring System Message Logging and Smart Logging
Configuring System Message Logging
Enabling and Disabling Time Stamps on Log Messages
By default, log messages are not time-stamped.
Beginning in privileged EXEC mode, follow these steps to enable time-stamping of log messages. This
procedure is optional.
To disable time stamps for both debug and log messages, use the no service timestamps global
configuration command.
This example shows part of a logging display with the service timestamps log datetime global
configuration command enabled:
*Mar 1 18:46:11: %SYS-5-CONFIG_I: Configured from console by vty2 (10.34.195.36)
(Switch-2)
This example shows part of a logging display with the service timestamps log uptime global
configuration command enabled:
00:00:46: %LINK-3-UPDOWN: Interface Port-channel1, changed state to up (Switch-2)
Enabling and Disabling Sequence Numbers in Log Messages
Because there is a chance that more than one log message can have the same time stamp, you can display
messages with sequence numbers so that you can unambiguously see a single message. By default,
sequence numbers in log messages are not displayed.
Beginning in privileged EXEC mode, follow these steps to enable sequence numbers in log messages.
This procedure is optional.
Command Purpose
Step 1
configure terminal Enter global configuration mode.
Step 2
service timestamps log uptime
or
service timestamps log datetime [msec] [localtime]
[show-timezone]
Enable log time stamps.
The first command enables time stamps on log messages,
showing the time since the system was rebooted.
The second command 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.
Step 3
end Return to privileged EXEC mode.
Step 4
show running-config Verify your entries.
Step 5
copy running-config startup-config (Optional) Save your entries in the configuration file.
Command Purpose
Step 1
configure terminal Enter global configuration mode.
Step 2
service sequence-numbers Enable sequence numbers.
Step 3
end Return to privileged EXEC mode.

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Cisco Catalyst 3560-X and is the answer not in the manual?

Cisco Catalyst 3560-X Specifications

General IconGeneral
BrandCisco
ModelCatalyst 3560-X
CategoryNetwork Router
LanguageEnglish

Related product manuals