Enabling and disabling timestamps on log messages – Rockwell Automation 1783-WAPxxx Stratix 5100 Wireless Access Point User Manual User Manual

Page 552

Advertising
background image

552

Rockwell Automation Publication 1783-UM006A-EN-P - May 2014

Chapter 21

Configuring System Message Logging

The

logging buffered

global configuration command copies logging

messages to an internal buffer. The buffer is circular, so newer messages
overwrite older messages after the buffer is full.

To display the messages that are logged in the buffer, use the

show

logging

privileged EXEC command. The first message displayed is the

oldest message in the buffer.

To clear the contents of the buffer, use the

clear logging

privileged

EXEC command.

To disable logging to the console, use the

no logging console

global

configuration command.

To disable logging to a file, use the

no logging file [severity-

level-number | type]

global configuration command.

Enabling and Disabling Timestamps on Log Messages

By default, log messages are not timestamped.

Beginning in privileged EXEC mode, follow these steps to enable
timestamping of log messages:

1. Enter global configuration mode.

configure terminal

2. Enable log timestamps.

The first command enables timestamps on log messages, showing the time
since the system was restarted.

The second command enables timestamps on log messages. Depending on
the options selected, the timestamp can include the date, time in
milliseconds relative to the local time zone, and the time zone name.

service timestamps log uptime

or

service timestamps log datetime [msec] [localtime]

[show-timezone]

3. Return to privileged EXEC mode.

end

4. Verify your entries.

show running-config

5. (Optional) Save your entries in the configuration file.

copy running-config startup-config

Advertising