Guest

Cisco IOS Software Releases 12.2 T

Error Log Count Enhancement

Table Of Contents

Error Log Count Enhancement

Feature Overview

Benefits

Related Features and Technologies

Related Documents

Supported Platforms

Supported Standards, MIBs, and RFCs

Configuration Tasks

Enabling the Error Log Count Capability

Verifying the Error Log Count Capability

Configuration Examples

Enabling the Error Log Count Capability Example

Command Reference

logging count

show logging


Error Log Count Enhancement


Feature History

Release
Modification

12.2(8)T

This feature was introduced.


This document describes the error log count enhancement feature in Cisco IOS Release 12.2(8)T. It includes the following sections:

Feature Overview

Supported Platforms

Supported Standards, MIBs, and RFCs

Configuration Tasks

Configuration Examples

Command Reference

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.

To access Cisco Feature Navigator, you must have an account on Cisco.com. If you have forgotten or lost your account information, send a blank e-mail to cco-locksmith@cisco.com. An automatic check will verify that your e-mail address is registered with Cisco.com. If the check is successful, account details with a new random password will be e-mailed to you. Qualified users can establish an account on Cisco.com by following the directions at http://www.cisco.com/register.

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:

http://www.cisco.com/go/fn

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:

Command
Purpose

Router(config)# logging count

Enables the error log count capability.

Verifying the Error Log Count Capability

Enter the show logging count command to view information about syslog error messages.

Router# show logging count

Facility       Message Name                     Sev Occur   Last Time
=============================================================================
SYS            BOOTTIME                           6    1 00:00:12
SYS            RESTART                            5    1 00:00:11
SYS            CONFIG_I                           5    3 1d00h
-------------  -------------------------------  -----------------------------
SYS TOTAL                                              5

LINEPROTO      UPDOWN                             5   13 00:00:19
-------------  -------------------------------  -----------------------------
LINEPROTO TOTAL                                       13

LINK           UPDOWN                             3    1 00:00:18
LINK           CHANGED                            5   12 00:00:09
-------------  -------------------------------  -----------------------------
LINK TOTAL                                            13

SNMP           COLDSTART                          5    1 00:00:11
-------------  -------------------------------  -----------------------------
SNMP TOTAL                                             1

Configuration 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 count

Building configuration...
Current configuration : 2507 bytes
!
! Last configuration change at 14:53:38 UTC Tue Feb 5 2002
!
.
.
.
hostname router
!
logging count
logging buffered notifications

Command 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

logging count

Modified Command

show logging

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

Release
Modification

12.2(8)T

This command was introduced.


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 count

Building configuration...
Current configuration : 2507 bytes
!
! Last configuration change at 14:53:38 UTC Tue Feb 5 2002
.
.
.
hostname router
!
logging count
logging buffered notifications

Related Commands

Command
Description

show logging

Displays the state of logging (syslog).


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

history

(Optional) Shows the information in the syslog history table only.

slot slotnumber

(Optional) Displays information in the syslog history table for a specific line card. Slot numbers range from 0 to 11 for the Cisco 12012 Internet router and 0 to 7 for the Cisco 12008 Internet router.

summary

(Optional) Displays counts of messages by type for each line card.

count

(Optional) Shows the counts of each logging message.


Command Modes

Privileged EXEC

Command History

Release
Modification

10.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 count

Facility       Message Name                     Sev Occur   Last Time
=============================================================================
SYS            BOOTTIME                           6    1 00:00:12
SYS            RESTART                            5    1 00:00:11
SYS            CONFIG_I                           5    1 00:00:05
-------------  -------------------------------  -----------------------------
SYS TOTAL                                              3

LINEPROTO      UPDOWN                             5   13 00:00:19
-------------  -------------------------------  -----------------------------
LINEPROTO TOTAL                                       13

LINK           UPDOWN                             3    1 00:00:18
LINK           CHANGED                            5   12 00:00:09
-------------  -------------------------------  -----------------------------
LINK TOTAL                                            13

SNMP           COLDSTART                          5    1 00:00:11
-------------  -------------------------------  -----------------------------
SNMP TOTAL                                             1

Table 1 describes the significant fields shown in the display.

Table 1 show logging Field Descriptions

Field
Description

Facility

The facility, such as syslog, from which these error messages are occurring.

Message Name

The name of this message.

Sev

The severity level of this message.

Occur

How many times this message has occurred.

Last Time

The last (most recent) time this message occurred.

Sys Total

Total number of error messages that have occurred.


Related Commands

Command
Description

logging count

Enables the error log count capability.

service timestamps

Configures the system to time-stamp debugging or logging messages.