Chapter 4 Configuring General Router Features

Managing Configuration Sessions

Displaying Configuration Error Messages and Descriptions

Configuration changes are automatically verified during the commit operation, and a message is displayed if one or more configuration entries fail. To display an error message and description for a failed configuration, enter the show configuration failed command.

Note You can view configuration errors only during the current configuration session. If you exit configuration mode after the commit operation, the configuration error information is lost.

In the following example, an error is introduced in global configuration mode and the error information is displayed after the commit operation fails:

RP/0/RP0/CPU0:router# configure RP/0/RP0/CPU0:router(config)# taskgroup bgp RP/0/RP0/CPU0:router(config-tg)# description this is a test of an invalid taskgroup RP/0/RP0/CPU0:router(config-tg)# commit

%Failed to commit one or more configuration items. Please use 'show configurati on failed' to view the errors

RP/0/RP0/CPU0:router(config-tg)# show configuration failed

!!CONFIGURATION FAILED DUE TO SEMANTIC ERRORS taskgroup bgp

!!% Usergroup/Taskgroup names cannot be taskid names

!

Displaying Configuration Error Messages Without Descriptions

Configuration changes are automatically verified during the commit operation, and a message is displayed if one or more configuration entries fail. To display only the error message (without a description) for a failed configuration, enter the show configuration failed noerror command, as shown in the following example:

RP/0/RP0/CPU0:router(config-tg)# show configuration failed noerror

!!CONFIGURATION FAILED DUE TO SEMANTIC ERRORS taskgroup bgp

!

Note You can view configuration errors only during the current configuration session. If you exit configuration mode after the commit operation, the configuration error information is lost.

Displaying Configuration Error Messages Produced While Loading a Configuration

To display any syntax errors found in a configuration loaded with the load command, enter the show

configuration failed load command.

 

Cisco IOS XR Getting Started Guide

4-32

OL-10957-02

Page 118
Image 118
Cisco Systems Cisco IOS XR Displaying Configuration Error Messages and Descriptions, Configuration failed load command