comparing configurations

From: Swan, Jay (jswan@sugf.com)
Date: Thu Jun 21 2007 - 19:50:16 ART


There have been several threads recently related to comparing
configurations. I thought I'd show this fun trick, which I don't recall
being discussed. You can compare configurations between any supported
filesystems. For example:

(in the first example I configured the router at 1.1.1.1 as a TFTP
server)

Test#sh archive config diff tftp://1.1.1.1/startup-config
system:running-config

Loading startup-config from 1.1.1.1 (via FastEthernet0/1): !

[OK - 753 bytes]

Contextual Config Diffs:

+hostname Test

+warm-reboot

interface FastEthernet0/0

 +ip address dhcp

interface FastEthernet0/1

 +ip address 1.1.1.2 255.255.255.0

interface Serial0/1/0

 +clock rate 2000000

+ip route 0.0.0.0 0.0.0.0 192.168.1.1

+access-list 90 permit any

-hostname foo

-resource policy

interface FastEthernet0/0

 -no ip address

 -shutdown

interface FastEthernet0/1

 -ip address 1.1.1.1 255.255.255.0

-tftp-server nvram:startup-config

line con 0

 -exec prompt timestamp

Test#sh archive config diff nvram:startup-config system:running-config

Contextual Config Diffs:

+hostname Test

interface FastEthernet0/1

 +ip address 1.1.1.2 255.255.255.0

-hostname Router

interface FastEthernet0/1

 -ip address dhcp

Jay

#17783 (R&S)



This archive was generated by hypermail 2.1.4 : Sun Jul 01 2007 - 17:24:50 ART