hit counter script

Enabling And Disabling Time Stamps On Log Messages - Cisco WS-C3020 Software Configuration Manual

Catalyst blade switch for hp
Table of Contents

Advertisement

Chapter 29
Configuring System Message Logging
Command
Step 3
logging synchronous [level [severity-level |
all] | limit number-of-buffers]
Step 4
end
Step 5
show running-config
Step 6
copy running-config startup-config
To disable synchronization of unsolicited messages and debug output, use the no logging synchronous
[level severity-level | all] [limit number-of-buffers] line configuration command.

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.
Command
Step 1
configure terminal
Step 2
service timestamps log uptime
or
service timestamps log datetime [msec] [localtime]
[show-timezone]
Step 3
end
Step 4
show running-config
Step 5
copy running-config startup-config
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
OL-8915-03
1 18:46:11: %SYS-5-CONFIG_I: Configured from console by vty2 (10.34.195.36)
Purpose
Enable synchronous logging of messages.
(Optional) For level severity-level, specify the message severity
level. Messages with a severity level equal to or higher than this
value are printed asynchronously. Low numbers mean greater
severity and high numbers mean lesser severity. The default is 2.
(Optional) Specifying level all means that all messages are
printed asynchronously regardless of the severity level.
(Optional) For limit number-of-buffers, specify the number of
buffers to be queued for the terminal after which new messages
are dropped. The range is 0 to 2147483647. The default is 20.
Return to privileged EXEC mode.
Verify your entries.
(Optional) Save your entries in the configuration file.
Purpose
Enter global configuration mode.
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.
Return to privileged EXEC mode.
Verify your entries.
(Optional) Save your entries in the configuration file.
Cisco Catalyst Blade Switch 3020 for HP Software Configuration Guide
Configuring System Message Logging
29-7

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Catalyst 3020

Table of Contents