show configuration difference

show configuration difference { from-config-file {to-config-file} } {module-name} {detail} {context lines}

Description

Displays the difference between switch configurations.

Syntax Description

difference Compare one configuration file to another.
from-config-file Configuration file from which to base the difference (the booted configuration if not specified).
to-config-file Configuration file to which the base configuration is compared (the running configuration if not specified).
module-name

Configuration module name:

aaa, acl, bfd, bgp, brm, cfgmgr, cfm, devmgr, dirser, dosprotect, eaps, edp, elrp, elsm, ems, epm, erps, esrp, ethoam, etmon, exsshd, fdb, hal, hclag, idMgr, ipfix, ipSecurity, lacp, lldp, mcmgr, mrp, msdp, netlogin, nettools, nodealias, nodemgr, ntp, ospf, ospfv3, otm, pim, policy, polMgr, pwmib, rip, ripng, rtmgr, snmp, stp, techSupport, telnetd, tftpd, throw, thttpd, twamp, upm, vlan, vmt, vrrp, vsm, xmlc, xmldbe

detail Specifies showing configuration difference including default configuration choices; If not selected, default configuration information does not appear.
context Adjusts the number of context lines around the difference output. Default is three lines.
lines Specifies the number of context lines around the difference output. Default is three lines.

Default

If not specified, from-config-file is the booted configuration; if not specified, to-config-file is the running configuration.

If not specified, the default is three context lines.

Usage Guidelines

Use this command to compare the difference between two configuration files, or configuration files with the running configuration. When using the save configuration automatic {every minutes {primary | secondary | existing-config | new-config} | never} command this can be especially helpful for comparing what changed between the running (or "startup") configuration and the most recently autosaved configuration.

Example

The following example compares the factory default configuration (new switch or after unconfigure switch {all | erase [all | nvram]} using the all keyword:
# show configuration difference
--- Factory Default             Tue Feb 27 19:54:10 2018
+++ Running Configuration       Wed Feb 28 12:37:36 2018
@@ -0,0 +1,212 @@
+#
+# Module devmgr configuration.
+#
+configure snmp sysContact "support@extremenetworks.com, +1 888 257 3000"
+#
+# Module vlan configuration.
+#
+create vlan "VLAN_0008"
+configure vlan VLAN_0008 tag 8
.
.
.
+#
+# Module vsm configuration.
+#
The following example compares the primary.cfg file with the currently running configuration (default) showing default configuration information (detail option) and changing the number of context lines to six (as opposed to the default of three):
# show configuration difference primary detail context 6
--- primary.cfg                 Mon Dec  4 18:08:59 2017
+++ Running Configuration       Mon Dec  4 18:11:45 2017
@@ -608,13 +609,13 @@
disable cli scripting permanent
configure idletimeout 20
enable idletimeout
configure debug core-dumps internal-memory
disable snmp traps configuration save
disable snmp traps configuration change
-save configuration automatic every 2 primary
+save configuration automatic never
 
#
# Module dosprotect configuration.
#
disable dos-protect
configure dos-protect interval 1

History

This command was first available in ExtremeXOS 22.5.

Platform Availability

This command is available on ExtremeSwitching X435, X440-G2, X450-G2, X460-G2, X465, X590, X620, X670-G2, X690, X695, X870, 5320, 5420, and 5520 series switches.