Difference between revisions of "Compare Running Config With A Previous Config"

From Baranoski.ca
Jump to navigation Jump to search
(Created page with "To see what changes have been made to the running config on a Cisco device since the last save, you an do a compare with the startup config. <PRE> show archive config diffe...")
 
 
Line 17: Line 17:
 
</PRE>
 
</PRE>
  
 +
You can replace '''nvram:startup-config''' with any config that has been archived using the procedure in [[Automatic Config Archiving]].
 +
 +
====Example====
 +
<PRE style="color:white;background-color:black;font-weight:bold;font-size:1.2em;">
 +
ROUTER#$show archive config differences tftp://10.10.10.5/ROUTER-autoarchive-May-29-10:11:35.187-EDT-13 system:running-config
 +
Contextual Config Diffs:
 +
+interface Vlan3
 +
+ip address 2.2.2.2 255.255.255.0
 +
interface Vlan2
 +
-description WAN
 +
</PRE>
  
 
To make your router feel more like a Juniper, add this to your config:
 
To make your router feel more like a Juniper, add this to your config:

Latest revision as of 09:43, 19 March 2020

To see what changes have been made to the running config on a Cisco device since the last save, you an do a compare with the startup config.

show archive config differences nvram:startup-config system:running-config

The output shows the differences in the latter file (the running-config, in this case). Any line beginning with a + is an addition. Conversely, anything beginning with a - has been removed.

Example

ROUTER#$show archive config differences nvram:startup-config system:running-config
Contextual Config Diffs:
+interface Vlan3
 +ip address 2.2.2.2 255.255.255.0
interface Vlan2
 -description WAN

You can replace nvram:startup-config with any config that has been archived using the procedure in Automatic Config Archiving.

Example

ROUTER#$show archive config differences tftp://10.10.10.5/ROUTER-autoarchive-May-29-10:11:35.187-EDT-13 system:running-config
Contextual Config Diffs:
+interface Vlan3
 +ip address 2.2.2.2 255.255.255.0
interface Vlan2
 -description WAN

To make your router feel more like a Juniper, add this to your config:

alias exec compare show archive config differences nvram:startup-config system:running-config

Then you just need to type "compare" to see what changes have been made since you last saved your config.