Contextual Configuration Diff Utility

Similar documents
Contextual Configuration Diff Utility

Configuring an Intermediate IP Multicast Helper Between Broadcast-Only Networks

Logging to Local Nonvolatile Storage (ATA Disk)

Modified LNS Dead-Cache Handling

VPDN LNS Address Checking

Maintenance Checklists for Microsoft Exchange on a Cisco Unity System

Exclusive Configuration Change Access and Access Session Locking

ATM VP Average Traffic Rate

Configuration Replace and Configuration Rollback

Cisco Software Licensing Information for Cisco Unified Communications 500 Series for Small Business

Maintenance Checklists for Active Directory on a Cisco Unity System with Exchange as the Message Store

Using Microsoft Outlook to Schedule and Join Cisco Unified MeetingPlace Express Meetings

IS-IS Incremental SPF

BGP Enforce the First Autonomous System Path

OSPF Incremental SPF

Contextual Configuration Diff Utility

Generic Routing Encapsulation Tunnel IP Source and Destination VRF Membership

Release Notes for Cisco ONS MA Release 9.01

Installing IEC Rack Mounting Brackets on the ONS SDH Shelf Assembly

DHCP Lease Limit per ATM/RBE Unnumbered Interface

Cisco Unity Express Voic System User s Guide

Connecting Cisco WLAN Controller Enhanced Network Modules to the Network

Cisco 806, Cisco 820 Series, Cisco 830 Series, SOHO 70 Series and SOHO 90 Series Routers ROM Monitor Download Procedures

Connecting Cisco DSU/CSU High-Speed WAN Interface Cards

Suppress BGP Advertisement for Inactive Routes

Release Notes for Cisco ONS SDH Release 9.01

IP SLAs Random Scheduler

Protected URL Database

PPPoE Session Recovery After Reload

DHCP Option 82 Support for Routed Bridge Encapsulation

Configuring Multiple Basic Service Set Identifiers and Microsoft WPS IE SSIDL

SSG Service Profile Caching

Configuring Route Maps to Control the Distribution of MPLS Labels Between Routers in an MPLS VPN

Cisco Video Surveillance Virtual Matrix Client Configuration Guide

Per IP Subscriber DHCP Triggered RADIUS Accounting

Release Notes for Catalyst 6500 Series and Cisco 7600 Series Internet Router CEF720 Module ROMMON Software

Cisco Smart Business Communications System Teleworker Set Up

VPDN Group Session Limiting

MPLS MTU Command Changes

QoS Child Service Policy for Priority Class

RADIUS NAS-IP-Address Attribute Configurability

IMA Dynamic Bandwidth

OSPF RFC 3623 Graceful Restart Helper Mode

ISSU and SSO DHCP High Availability Features

Frame Relay Conditional Debug Support

Cisco Voice Applications OID MIB

Cisco Virtual Office End User Instructions for Cisco 1811 Router Set Up at Home or Small Office

RAID Controller Firmware Upgrade Instructions for the Cisco WAE-7341, 7371, and 674

Connecting Cisco 4-Port FXS/DID Voice Interface Cards

Cisco BTS Softswitch Site Preparation and Network Communications Requirements, Release 6.0. Safety and Compliance

DHCP Relay MPLS VPN Support

Configuring Token Ring LAN Emulation for Multiprotocol over ATM

Cisco Registered Envelope Recipient Guide

Route Processor Redundancy Plus (RPR+)

DHCP ODAP Server Support

RADIUS Tunnel Preference for Load Balancing and Fail-Over

PPPoE Session Limits per NAS Port

Cisco Aironet Directional Antenna (AIR-ANT-SE-WiFi-D)

PPPoE Client DDR Idle Timer

PPPoE Agent Remote-ID and DSL Line Characteristics Enhancement

Release Notes for Cisco Video Surveillance Manager 4.1/6.1

Installing the Cisco ONS Deep Door Kit

PPPoE Agent Remote-ID and DSL Line Characteristics Enhancement

The CVD program consists of systems and solutions designed, tested, and documented to facilitate faster, more reliable, and more predictable customer

7825-I4, 7828-I4 Hard Disk Firmware Update

Configuration Partitioning

Protocol-Independent MAC ACL Filtering on the Cisco Series Internet Router

IP SLAs Proactive Threshold Monitoring

Cisco BTS Softswitch Turkish ISUP Feature Module

Cisco WAAS Mobile User Guide

Release Notes for Cisco Small Business Pro ESW 500 Series Switches

PPP/MLP MRRU Negotiation Configuration

Cisco Report Server Readme

Behavioral Change for Buffer Recarving

Maintenance Checklists for Cisco Unity VPIM Networking (with Microsoft Exchange)

Cisco Unified Web and Interaction Manager Browser Settings Guide

Configuring ISG VRF Transfer (Cisco IOS Release 12.2(28)SB)

LAN Emulation Overview

Cisco Aironet Very Short 5-GHz Omnidirectional Antenna (AIR-ANT5135SDW-R)

Wireless-G IP Phone QUICK INSTALLATION GUIDE. Package Contents

BECN and FECN Marking for Frame Relay over MPLS

MPLS VPN: VRF Selection Based on Source IP Address

Cisco Unified Web and Interaction Manager Browser Settings Guide

Cisco Unified Attendant Console Backup and Restore Guide

Release Notes for SPA942 and SPA962 IP Phones Firmware Version 6.1.3

Cisco Unified MeetingPlace for Microsoft Office Communicator

Wireless LAN Error Messages

This feature was introduced. This feature was integrated into Cisco IOS Release 12.2(27)SBA.

Configuring LDAP. Finding Feature Information. Contents

Chunk Validation During Scheduler Heapcheck

Extended NAS-Port-Type and NAS-Port Support

1 Obtaining Cisco ANA NSA 1.0 Patch 1

Release Notes for Cisco Broadband Access Center 3.5

RAID Battery Backup Unit Replacement and RAID Firmware Upgrade for Cisco Security MARS

Troubleshooting ISA with Session Monitoring and Distributed Conditional Debugging

Cisco Redundant Power System 2300 Compatibility Matrix

RADIUS Logical Line ID

Installing the RJ-45 Bracket and Cable on the Cisco ONS Rack

Configuring the Cisco IOS DHCP Relay Agent

MPLS VPN OSPF and Sham-Link Support

Transcription:

Contextual Configuration Diff Utility First Published: November 2003 Last Updated: May 2, 2008 The Contextual Configuration Diff Utility feature provides the ability to perform a line-by-line comparison of any two configuration files (accessible through the Cisco IOS Integrated File System [IFS]) and generate a list of the differences between them. The generated output includes information regarding configuration lines that have been added, modified, or deleted, and the configuration modes within which a changed configuration line exists. Finding Feature Information in This Module Your Cisco IOS software release may not support all of the features documented in this module. To reach links to specific feature documentation in this module and to see a list of the releases in which each feature is supported, use the Feature Information for Contextual Configuration Diff Utility section on page 8. Finding Support Information for Platforms and Cisco IOS Software Images Use Cisco Feature Navigator to find information about platform support and Cisco IOS and Catalyst OS software image support. To access Cisco Feature Navigator, go to http://www.cisco.com/go/cfn. An account on Cisco.com is not required. Contents Prerequisites for Contextual Configuration Diff Utility, page 2 Restrictions for Contextual Configuration Diff Utility, page 2 Information About Contextual Configuration Diff Utility, page 2 How to Use the Contextual Configuration Diff Utility, page 3 Configuration Examples for the Contextual Configuration Diff Utility, page 4 Additional References, page 7 Command Reference, page 8 Feature Information for Contextual Configuration Diff Utility, page 8 Americas Headquarters: Cisco Systems, Inc., 170 West Tasman Drive, San Jose, CA 95134-1706 USA 2003-2008 Cisco Systems, Inc. All rights reserved.

Prerequisites for Contextual Configuration Diff Utility Contextual Configuration Diff Utility Prerequisites for Contextual Configuration Diff Utility The format of the configuration files used for the Contextual Configuration Diff Utility feature must comply with standard Cisco IOS configuration file indentation rules as follows: Start all commands on a new line with no indentation, unless the command is within a configuration submode. Indent commands within a first-level configuration submode one space. Indent commands within a second-level configuration submode two spaces. Indent commands within subsequent submodes accordingly. The router must have a contiguous block of memory larger than the combined size of the two configuration files being compared. Restrictions for Contextual Configuration Diff Utility If the router does not have a contiguous block of memory larger than the combined size of the two configuration files being compared, the diff operation fails. Information About Contextual Configuration Diff Utility Before using the Contextual Configuration Diff Utility feature, you should understand the following concepts: Benefits of the Contextual Configuration Diff Utility, page 2 Contextual Configuration Diff Utility Output Format, page 2 Benefits of the Contextual Configuration Diff Utility The Contextual Configuration Diff Utility feature provides the ability to perform a line-by-line comparison of any two configuration files (accessible through the Cisco IOS File System [IFS]) and generate a list of the differences between them. The generated output includes information regarding the following items: Configuration lines that have been added, modified, or deleted. Configuration modes within which a changed configuration line exists. Location changes of configuration lines that are order-sensitive. For example, the ip access-list and community-lists commands are order-sensitive commands dependent on where they are listed within a configuration file in relation to other Cisco IOS commands of similar type. Contextual Configuration Diff Utility Output Format Diff Operation The Contextual Configuration Diff Utility feature uses the filenames of two configuration files as input. A diff operation is performed on the specified files and a list of differences between the two files is generated as output. Interpreting the output is dependent on the order in which the two files are 2

Contextual Configuration Diff Utility How to Use the Contextual Configuration Diff Utility configured (show archive config differences command). In this section, we assume that the filename of the file entered first is file1 and the filename of the file entered second is file2. Each entry in the generated output list is prefixed with a unique text symbol to indicate the type of difference found. The text symbols and their meanings are as follows: A minus symbol (-) indicates that the configuration line exists in file1 but not in file2. A plus symbol (+) indicates that the configuration line exists in file2 but not in file1. An exclamation point (!) with descriptive comments is used to identify order-sensitive configuration lines whose location is different in file1 than in file2. Incremental Diff Operation Some applications require that the generated output of a diff operation contain configuration lines that are unmodified (in other words, without the minus and plus symbols). For these applications, an incremental diff operation can be performed, which compares a specified configuration file to the running configuration file (show archive config incremental-diffs command). When an incremental diff operation is performed, a list of the configuration lines that do not appear in the running configuration file (in other words, configuration lines that only appear in the specified file that is being compared to the running configuration file) is generated as output. An exclamation point (!) with descriptive comments is used to identify order-sensitive configuration lines whose location is different in the specified configuration file than in the running configuration file. How to Use the Contextual Configuration Diff Utility This section provides the following procedure: Using the Contextual Configuration Diff Utility, page 3 (required) Using the Contextual Configuration Diff Utility SUMMARY STEPS This task describes how to use the Contextual Configuration Diff Utility feature. 1. enable 2. show archive config differences [file1 [file2]] or show archive config incremental-diffs [file] 3. exit 3

Configuration Examples for the Contextual Configuration Diff Utility Contextual Configuration Diff Utility DETAILED STEPS Step 1 Step 2 Command or Action enable Example: Router> enable show archive config differences [file1 [file2]] or show archive config incremental-diffs file Example: Router# show archive config differences running-config startup-config or Purpose Enables privileged EXEC mode. Enter your password if prompted. Performs a line-by-line comparison of any two configuration files (accessible through the IFS) and generates a list of the differences between them. or Performs a line-by-line comparison of a specified configuration file to the running configuration file and generates a list of the configuration lines that do not appear in the running configuration file. Step 3 Example: Router# show archive config incremental-diffs nvram:startup-config exit Exits to user EXEC mode. Example: Router# exit Configuration Examples for the Contextual Configuration Diff Utility This section contains the following configuration examples: Diff Operation: Example, page 4 Incremental Diff Operation: Example, page 6 Diff Operation: Example In this example, a diff operation is performed on the running and startup configuration files. Table 1 shows the configuration files used for this example. 4

Contextual Configuration Diff Utility Configuration Examples for the Contextual Configuration Diff Utility Table 1 Configuration Files Used for the Diff Operation Example Running Configuration File no ip subnet-zero ip cef ip address 10.7.7.7 255.0.0.0 no ip route-cache no ip mroute-cache duplex half no ip classless snmp-server community public RO Startup Configuration File ip subnet-zero ip cef ip name-server 10.4.4.4 voice dnis-map 1 dnis 111 no ip address no ip route-cache no ip mroute-cache shutdown duplex half ip default-gateway 10.5.5.5 ip classless access-list 110 deny ip any host 10.1.1.1 access-list 110 deny ip any host 10.1.1.2 access-list 110 deny ip any host 10.1.1.3 snmp-server community private RW The following is sample output from the show archive config differences command. This sample output displays the results of the diff operation performed on the configuration files in Table 1. Router# show archive config differences running-config startup-config +ip subnet-zero +ip name-server 10.4.4.4 +voice dnis-map 1 +dnis 111 +no ip address +shutdown +ip default-gateway 10.5.5.5 +ip classless +access-list 110 deny ip any host 10.1.1.1 +access-list 110 deny ip any host 10.1.1.2 +access-list 110 deny ip any host 10.1.1.3 +snmp-server community private RW -no ip subnet-zero -ip address 10.7.7.7 255.0.0.0 -no ip classless -snmp-server community public RO 5

Configuration Examples for the Contextual Configuration Diff Utility Contextual Configuration Diff Utility Incremental Diff Operation: Example In this example, an incremental diff operation is performed on the startup and running configuration files. Table 2 shows the configuration files used for this example. Table 2 Configuration Files Used for the Incremental Diff Operation Example Startup Configuration File ip subnet-zero ip cef ip name-server 10.4.4.4 voice dnis-map 1 dnis 111 no ip address no ip route-cache no ip mroute-cache shutdown duplex half ip default-gateway 10.5.5.5 ip classless access-list 110 deny ip any host 10.1.1.1 access-list 110 deny ip any host 10.1.1.2 access-list 110 deny ip any host 10.1.1.3 snmp-server community private RW Running Configuration File no ip subnet-zero ip cef ip address 10.7.7.7 255.0.0.0 no ip route-cache no ip mroute-cache duplex half no ip classless snmp-server community public RO The following is sample output from the show archive config incremental-diffs command. This sample output displays the results of the incremental diff operation performed on the configuration files in Table 2. Router# show archive config incremental-diffs startup-config ip subnet-zero ip name-server 10.4.4.4 voice dnis-map 1 dnis 111 no ip address shutdown ip default-gateway 10.5.5.5 ip classless access-list 110 deny ip any host 10.1.1.1 access-list 110 deny ip any host 10.1.1.2 access-list 110 deny ip any host 10.1.1.3 snmp-server community private RW 6

Contextual Configuration Diff Utility Additional References Additional References This section provides references related to the Contextual Configuration Diff Utility feature. Related Documents Related Topic Information about managing configuration files Commands for managing configuration files Document Title Managing Configuration Files The Cisco IOS Configuration Fundamentals Command Reference Standards Standards No new or modified standards are supported by this feature, and support for existing standards has not been modified by this feature. Title MIBs MIBs No new or modified MIBs are supported by this feature, and support for existing MIBs has not been modified by this feature. MIBs Link To locate and download MIBs for selected platforms, Cisco IOS releases, and feature sets, use Cisco MIB Locator found at the following URL: http://www.cisco.com/go/mibs RFCs RFCs No new or modified RFCs are supported by this feature, and support for existing RFCs has not been modified by this feature. Title 7

Command Reference Contextual Configuration Diff Utility Technical Assistance Description The Cisco Support website provides extensive online resources, including documentation and tools for troubleshooting and resolving technical issues with Cisco products and technologies. To receive security and technical information about your products, you can subscribe to various services, such as the Product Alert Tool (accessed from Field Notices), the Cisco Technical Services Newsletter, and Really Simple Syndication (RSS) Feeds. Access to most tools on the Cisco Support website requires a Cisco.com user ID and password. Link http://www.cisco.com/techsupport Command Reference The following commands are introduced or modified in the feature or features documented in this module. For information about these commands, see the Cisco IOS Configuration Fundamentals Command Reference at http://www.cisco.com/en/us/docs/ios/fundamentals/command/reference/cf_book.html. For information about all Cisco IOS commands, go to the Command Lookup Tool at http://tools.cisco.com/support/clilookup or to the Cisco IOS Master Commands List. show archive config differences show archive config incremental-diffs Feature Information for Contextual Configuration Diff Utility Table 3 lists the release history for this feature. Not all commands may be available in your Cisco IOS software release. For release information about a specific command, see the command reference documentation. Cisco IOS software images are specific to a Cisco IOS software release, a feature set, and a platform. Use Cisco Feature Navigator to find information about platform support and Cisco IOS software image support. Access Cisco Feature Navigator at http://www.cisco.com/go/cfn. An account on Cisco.com is not required. Note Table 3 lists only the Cisco IOS software release that introduced support for a given feature in a given Cisco IOS software release. Unless noted otherwise, subsequent releases of that Cisco IOS software release also support that feature. 8

Contextual Configuration Diff Utility Feature Information for Contextual Configuration Diff Utility Table 3 Feature Information for Contextual Configuration Diff Utility Feature Name Releases Feature Information Contextual Configuration Diff Utility 12.3(4)T 12.2(25)S 12.2(27)SBC 12.2(33)SRA 12.2(33)SXH 12.2(33)SB The Contextual Configuration Diff Utility feature provides the ability to perform a line-by-line comparison of any two configuration files and generate a list of the differences between them. The generated output includes information regarding configuration lines that have been added, modified, or deleted, and the configuration modes within which a changed configuration line exists. In 12.3(4)T, this feature was introduced. In 12.2(33)SB, this feature was implemented on the Cisco 10000 series. The following sections provide information about this feature: Benefits of the Contextual Configuration Diff Utility, page 2 Contextual Configuration Diff Utility Output Format, page 2 Using the Contextual Configuration Diff Utility, page 3 The following commands were modified by this feature: show archive config differences, show archive config incremental-diffs. CCDE, CCVP, Cisco Eos, Cisco StadiumVision, the Cisco logo, DCE, and Welcome to the Human Network are trademarks; Changing the Way We Work, Live, Play, and Learn is a service mark; and Access Registrar, Aironet, AsyncOS, Bringing the Meeting To You, Catalyst, CCDA, CCDP, CCIE, CCIP, CCNA, CCNP, CCSP, Cisco, the Cisco Certified Internetwork Expert logo, Cisco IOS, Cisco Press, Cisco Systems, Cisco Systems Capital, the Cisco Systems logo, Cisco Unity, Collaboration Without Limitation, Enterprise/Solver, EtherChannel, EtherFast, EtherSwitch, Event Center, Fast Step, Follow Me Browsing, FormShare, GigaDrive, HomeLink, Internet Quotient, IOS, iphone, IP/TV, iq Expertise, the iq logo, iq Net Readiness Scorecard, iquick Study, IronPort, the IronPort logo, LightStream, Linksys, MediaTone, MeetingPlace, MGX, Networkers, Networking Academy, Network Registrar, PCNow, PIX, PowerPanels, ProConnect, ScriptShare, SenderBase, SMARTnet, Spectrum Expert, StackWise, The Fastest Way to Increase Your Internet Quotient, TransPath, WebEx, and the WebEx logo are registered trademarks of Cisco Systems, Inc. and/or its affiliates in the United States and certain other countries. All other trademarks mentioned in this document or Website are the property of their respective owners. The use of the word partner does not imply a partnership relationship between Cisco and any other company. (0801R) Any Internet Protocol (IP) addresses used in this document are not intended to be actual addresses. Any examples, command display output, and figures included in the document are shown for illustrative purposes only. Any use of actual IP addresses in illustrative content is unintentional and coincidental. 2003-2008 Cisco Systems, Inc. All rights reserved. 9

Feature Information for Contextual Configuration Diff Utility Contextual Configuration Diff Utility 10