comparison. In the other two display diff commands, this keyword specifies the target configuration
file.
Usage guidelines
If you specify the startup-configuration keyword, the system searches for 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
displays a message indicating 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 IRF member 1 and IRF
member 2.
<Sysname>display diff configfile slot1#flash:/test.cfg configfile
slot2#flash:/testsys.cfg
--- flash:/test.cfg
+++ slot2#flash:/testsys.cfg
@@ -6,7 +6,7 @@
#
stp global enable
#
- sysname TEST
+ sysname TEST1
#
telnet server enable
#
# Display the configuration differences between the running configuration and the next-startup
configuration file.
<TEST> display diff current-configuration startup-configuration
--- Current configuration
+++ Startup configuration
@@ -6,7 +6,7 @@
#
stp global enable
146