Table Of Contents
Related Features and Technologies
Supported Standards, MIBs, and RFCs
Enabling the Error Log Count Capability
Verifying the Error Log Count Capability
Enabling the Error Log Count Capability Example
Error Log Count Enhancement
Feature History
This document describes the error log count enhancement feature in Cisco IOS Release 12.2(8)T. It includes the following sections:
•
Supported Standards, MIBs, and RFCs
Feature Overview
The Cisco IOS logging facility allows you to save error messages locally or to a remote host. When these error messages exceed the capacity of the local buffer dedicated to storing them, the oldest messages are removed. To provide you with more information about messages that have occurred and may have been removed from the local buffer, an error log counter tabulates the occurrences of each error message, and time-stamps the most recent occurrence.
These messages are further sorted by message facility. Messages from each message facility are grouped together and totaled in the count. If a message is rate-limited, the count is incremented based on the actual messages that have occurred.
The service timestamps command configuration determines the format of the "Last Time" column in the show logging command output. Use the service timestamps command to configure the time-stamp format in the "Last Time" column.
Benefits
•
Provides detailed information regarding system messages, including the most recent time the message occurred.
•
Alerts you to a potential problem with the system if you see the same error message occurring repeatedly.
Related Features and Technologies
•
Cisco IOS Logging
Related Documents
•
Cisco IOS Configuration Fundamentals Configuration Guide, Cisco IOS Release 12.2
•
Cisco IOS Configuration Fundamentals Command Reference, Cisco IOS Release 12.2
Supported Platforms
•
Cisco 800 series
•
Cisco 806
•
Cisco 820 series
•
Cisco 828
•
Cisco 1400 series
•
Cisco 1600 series
•
Cisco 1700 series
•
Cisco 2500 series
•
Cisco 2600 series
•
Cisco 3620 series
•
Cisco 3640 series
•
Cisco 3660 series
•
Cisco 7100 series
•
Cisco 7200 series
•
Cisco 7500 series
•
Cisco 7700 series
•
Cisco Catalyst 4000 Gateway Module
•
Cisco CVA120
•
Cisco ONS 15104
•
Cisco Route Processor Module (RPM)
•
Cisco SOHO 70 series
•
Cisco SOHO 78
•
Cisco uBR925 series cable access routers
•
Cisco uBR7200 series universal broadband routers
•
Cisco Universal Router Module (URM)
•
Cisco VG200
Determining Platform Support Through Cisco Feature Navigator
Cisco IOS software is packaged in feature sets that support specific platforms. To get updated information regarding platform support for this feature, access Cisco Feature Navigator. Cisco Feature Navigator dynamically updates the list of supported platforms as new platform support is added for the feature.
Cisco Feature Navigator is a web-based tool that enables you to quickly determine which Cisco IOS software images support a specific set of features and which features are supported in a specific Cisco IOS image. You can search by feature or release. Under the release section, you can compare releases side by side to display both the features unique to each software release and the features in common.
Cisco Feature Navigator is updated regularly when major Cisco IOS software releases and technology releases occur. For the most current information, go to the Cisco Feature Navigator home page at the following URL:
Supported Standards, MIBs, and RFCs
Standards
No new or modified standards are supported by this feature.
MIBs
No new MIBs are supported by this feature
To obtain lists of supported MIBs by platform and Cisco IOS release, and to download MIB modules, go to the Cisco MIB website on Cisco.com at the following URL:
http://www.cisco.com/public/sw-center/netmgmt/cmtk/mibs.shtml
RFCs
No new or modified RFCs are supported by this feature.
Configuration Tasks
See the following sections for configuration tasks for this feature. Each task in the list is identified as either required or optional.
•
Enabling the Error Log Count Capability (required)
Enabling the Error Log Count Capability
To enable the error log count capability, use the following command in global configuration mode:
Verifying the Error Log Count Capability
Enter the show logging count command to view information about syslog error messages.
Router# show logging countFacility Message Name Sev Occur Last Time=============================================================================SYS BOOTTIME 6 1 00:00:12SYS RESTART 5 1 00:00:11SYS CONFIG_I 5 3 1d00h------------- ------------------------------- -----------------------------SYS TOTAL 5LINEPROTO UPDOWN 5 13 00:00:19------------- ------------------------------- -----------------------------LINEPROTO TOTAL 13LINK UPDOWN 3 1 00:00:18LINK CHANGED 5 12 00:00:09------------- ------------------------------- -----------------------------LINK TOTAL 13SNMP COLDSTART 5 1 00:00:11------------- ------------------------------- -----------------------------SNMP TOTAL 1Configuration Examples
This section provides the following configuration example:
•
Enabling the Error Log Count Capability Example
Enabling the Error Log Count Capability Example
In the following example, the error log count capability is enabled:
Router# logging countBuilding configuration...Current configuration : 2507 bytes!! Last configuration change at 14:53:38 UTC Tue Feb 5 2002!...hostname router!logging countlogging buffered notificationsCommand Reference
This section documents new and modified commands. All other commands used with this feature are documented in the Cisco IOS Release 12.2 command reference publications.
New Command
Modified Command
logging count
To enable the error log count capability, use the logging count command in global configuration mode. To disable the error log count capability, use the no form of this command.
logging count
no logging count
Syntax Description
This command has no arguments or keywords.
Defaults
This command is disabled.
Command Modes
Global configuration
Command History
Usage Guidelines
The logging count command counts every syslog message and time-stamps the occurrence of each message.
Examples
The following example shows how to enable the logging count feature:
Router# logging countBuilding configuration...Current configuration : 2507 bytes!! Last configuration change at 14:53:38 UTC Tue Feb 5 2002...hostname router!logging countlogging buffered notificationsRelated Commands
show logging
To display the state of logging (syslog), use the show logging command in privileged EXEC mode.
show logging [history | slot slotnumber | summary | count]
Syntax Description
Command Modes
Privileged EXEC
Command History
Release Modification10.0
This command was introduced.
11.2 GS
The slot and summary keywords were added.
12.2(8)T
The count keyword was added.
Usage Guidelines
This command displays the state of syslog error and event logging, including host addresses, and whether console logging is enabled. This command also displays Simple Network Management Protocol (SNMP) configuration parameters and protocol activity.
When you use the optional count keyword, information about count and time-stamp logging is displayed, such as the number of times a particular message occurs and the time stamp of the last occurrence of the specified message.
When you use the optional history keyword, information about the syslog history table is displayed, such as the table size, the status of messages, and text of messages stored in the table. Messages stored in the table are governed by the logging history command.
The service timestamps command configuration determines the format of the "Last Time" column in the show logging command output. Use the service timestamps command to configure the time-stamp format in the "Last Time" column.
Examples
The following example shows the number of times syslog messages have occurred and the most recent time that each error message occurred:
Router# show logging countFacility Message Name Sev Occur Last Time=============================================================================SYS BOOTTIME 6 1 00:00:12SYS RESTART 5 1 00:00:11SYS CONFIG_I 5 1 00:00:05------------- ------------------------------- -----------------------------SYS TOTAL 3LINEPROTO UPDOWN 5 13 00:00:19------------- ------------------------------- -----------------------------LINEPROTO TOTAL 13LINK UPDOWN 3 1 00:00:18LINK CHANGED 5 12 00:00:09------------- ------------------------------- -----------------------------LINK TOTAL 13SNMP COLDSTART 5 1 00:00:11------------- ------------------------------- -----------------------------SNMP TOTAL 1Table 1 describes the significant fields shown in the display.
Related Commands
Command Descriptionlogging count
Enables the error log count capability.
service timestamps
Configures the system to time-stamp debugging or logging messages.