140
the
display diff configfile
file-name-s
and
display diff current-configuration
commands, this keyword
specifies the target configuration file.
Usage guidelines
If you specify the
startup-configuration
keyword, the system searches the next-startup configuration file
for comparison in the following order:
1.
The main next-startup configuration file.
2.
The backup next-startup configuration file if the main next-startup configuration file is unavailable
or corrupt.
If both the main and backup next-startup configuration files are unavailable or corrupt, the system
prompts that the next-startup configuration file does not exist.
Examples
# Display the configuration differences between
test.cfg
and
testsys.cfg
.
<Sysname> display diff configfile test.cfg configfile testsys.cfg
--- flash:/test.cfg
+++ flash:/testsys.cfg
@@ -6,7 +6,7 @@
#
stp global enable
#
- sysname test
+ sysname test1
#
telnet server enable
#
# Display the configuration differences between
test.cfg
and
testsys.cfg
on the master and subordinate
devices in an IRF fabric.
<Sysname>display diff configfile chassis1#slot17#flash:/test.cfg configfile
chassis2#slot17#flash:/testsys.cfg
--- flash:/test.cfg
+++ chassis2#slot17#flash:/testsys.cfg
@@ -6,7 +6,7 @@
#
stp global enable
#
- sysname TEST
+ sysname TEST1
#
telnet server enable
#
# Display the configuration differences between the current startup configuration file and the next-startup
configuration file.
<TEST> display diff current-configuration startup-configuration
--- Current configuration
+++ Startup configuration
@@ -6,7 +6,7 @@