Cisco Systems OL-14361-01 manual 116, Logging console severity, Show logging

Page 14

Chapter 5 Configuring Additional Router Features

Configuring Logging and Logging Correlation

 

Command or Action

Purpose

Step 4

 

 

logging console [severity]

Logs messages on the console.

 

 

When a severity level is specified, only messages at

 

Example:

that severity level are logged on the console.

 

RP/0/RP0/CPU0:router(config)# logging console

See Table 5-2for a summary of the logging severity

 

emergencies

 

levels.

 

 

Step 5

 

 

logging buffered [severity buffer-size]

Copies logging messages to an internal buffer.

 

 

Newer messages overwrite older messages after the

 

Example:

buffer is filled.

 

RP/0/RP0/CPU0:router(config)# logging buffered

Specifying a severity level causes messages at that

 

1000000

 

level and numerically lower levels to be logged in an

 

 

 

 

internal buffer. See Table 5-2for a summary of the

 

 

logging severity levels.

 

 

The buffer size is from 4096 to 4,294,967,295 bytes.

 

 

Messages above the set limit are logged to the

 

 

console.

Step 6

 

 

commit

Commits the target configuration to the router running

 

 

configuration.

 

Example:

 

 

RP/0/RP0/CPU0:router(config)# commit

 

Step 7

 

 

end

Ends the configuration session and returns to EXEC

 

 

mode.

 

Example:

 

 

RP/0/RP0/CPU0:router(config)# end

 

Step 8

 

 

show logging

Displays the messages that are logged in the buffer.

 

Example:

 

 

RP/0/RP0/CPU0:router# show logging

 

 

 

 

Examples

In the following example, basic message logging is configured:

RP/0/RP0/CPU0:router# configure

RP/0/RP0/CPU0:router(config)# logging 10.1.1.1

RP/0/RP0/CPU0:router(config)# logging trap debugging

RP/0/RP0/CPU0:router(config)# logging console emergencies

RP/0/RP0/CPU0:router(config)# logging buffered 1000000

RP/0/RP0/CPU0:router(config)# commit

RP/0/RP0/CPU0:router(config)# end

RP/0/RP0/CPU0:router# show logging

Syslog logging: enabled (162 messages dropped, 0 flushes, 0 overruns)

Console logging: level emergencies, 593 messages logged

Monitor logging: level debugging, 0 messages logged

Trap logging: level debugging, 2 messages logged

Logging to 10.1.1.1, 2 message lines logged

Buffer logging: level debugging, 722 messages logged

Log Buffer (1000000 bytes):

 

Cisco IOS XR Getting Started Guide

5-116

OL-14361-01

Image 14
Contents Configuring Additional Router Features ContentsExample Command or Action PurposeConfigure 104End Related Topic Document Title105 Commit106 Configuring Telnet, HTTP, and XML Host ServicesPrerequisites Telnet ipv6 server max-servers limit 107Telnet ipv4 server max-servers limit Http server108 Managing Configuration History and RollbackRP/0/RP0/CPU0routerconfig# telnet ipv6 server max-servers 109 Displaying the Configuration Changes Recorded in a CommitIDDisplaying the CommitIDs RP/0/RP1/CPU0router# show configuration rollback changes to Previewing Rollback Configuration ChangesRolling Back the Configuration to a Specific Rollback Point 110111 RP/0/RP1/CPU0router# rollback configuration toRP/0/RP0/CPU0router# rollback configuration last RP/0/RP1/CPU0router# show configuration commit changes ? 112Deleting CommitIDs 113Logging Locations and Severity Levels Configuring Logging and Logging CorrelationLogging Destination Command Global Configuration Mode Level Description115 Alarm Logging CorrelationConfiguring Basic Message Logging Logging trap severityShow logging 116Logging console severity Disabling Console Logging 117Command Description 118119 Configuring User AccountsCreating Users and Assigning Groups 120 Password 0 7 passwordSecret 0 5 password Username user-name121 Configuring Software EntitlementConfiguration Limiting 122 Static Route Configuration LimitsIS-IS Configuration Limits 123 OSPFv2 and v3 Configuration LimitsDescription Limit Router Configuration Mode Exec Mode Maximum Interfaces for Each Ospf Instance Example 124BGP Configuration Limits 125Maximum paths 126Routing Policy Language Line and Policy Limits 127128 Limit Configuration Command Command Exec Mode Multicast Configuration LimitsDefault Absolute Maximum Show Current Settings 129130 Mpls Configuration LimitsOther Configuration Limits