Enabling And Disabling Timestamps On Log Messages; Enabling And Disabling Sequence Numbers In Log Messages - Cisco C3201FESMIC-TP= - 3201 Fast EN Switch Mobile Interface Card Expansion Module Software Configuration Manual

Wireless mic
Table of Contents

Advertisement

Configuring System Message Logging

Enabling and Disabling Timestamps on Log Messages

By default, log messages are not timestamped.
To enable timestamping of log messages, follow these steps, beginning in privileged EXEC mode:
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 timestamps 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
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

Enabling and Disabling Sequence Numbers in Log Messages

Because there is a chance that more than one log message can have the same timestamp, you can display
messages with sequence numbers so that you can unambiguously refer to a single message. By default,
sequence numbers in log messages are not displayed.
To enable sequence numbers in log messages, follow these steps, beginning in privileged EXEC mode:
Command
Step 1
configure terminal
Step 2
service sequence-numbers
Step 3
end
Step 4
show running-config
Step 5
copy running-config startup-config
To disable sequence numbers, use the no service sequence-numbers global configuration command.
Cisco 3200 Series Wireless MIC Software Configuration Guide
6
1 18:46:11: %SYS-5-CONFIG_I: Configured from console by vty2 (10.34.195.36)
Purpose
Enters global configuration mode.
Enables log timestamps.
The first command enables timestamps on log messages,
showing the time since the system was rebooted.
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.
Returns to privileged EXEC mode.
Verifies your entries.
(Optional) Saves your entries in the configuration file.
Purpose
Enters global configuration mode.
Enables sequence numbers.
Returns to privileged EXEC mode.
Verify your entries.
(Optional) Saves your entries in the configuration file.
System Message Logging

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents