display diff
Use display diff to display differences between configurations.
Syntax
display diff configfile file-name-s { configfile file-name-d | current-configuration | startup-configuration }
display diff current-configuration { configfile file-name-d | startup-configuration }
display diff startup-configuration { configfile file-name-d | current-configuration }
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Parameters
configfile file-name-s: Specifies the source configuration file for comparison.
configfile file-name-d: Specifies the target configuration file for comparison.
current-configuration: Specifies the running configuration. In the display diff current-configuration command, this keyword specifies the source configuration for comparison. In the display diff configfile file-name-s and display diff startup-configuration commands, this keyword specifies the target configuration.
startup-configuration: Specifies the next-startup configuration file. In the display diff startup-configuration command, this keyword specifies the source configuration for comparison. In the display diff configfile file-name-s and display diff current-configuration commands, this keyword specifies the target configuration.
Examples
# Display the 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 differences between test.cfg and testsys.cfg on the master and subordinate devices in an HPE 7904 or HPE 7904 TAA IRF fabric.
<Sysname> display diff configfile chassis1#slot0#flash:/test.cfg configfile chassis2#slot0#flash:/testsys.cfg --- flash:/test.cfg +++ chassis2#slot0#flash:/testsys.cfg @@ -6,7 +6,7 @@ # stp global enable # - sysname TEST + sysname TEST1 # telnet server enable #
# Display the differences between the running configuration and the next-startup configuration.
<TEST> display diff current-configuration startup-configuration --- Current configuration +++ Startup configuration @@ -6,7 +6,7 @@ # stp global enable # - sysname TEST + sysname TEST1 # telnet server enable #
For information about the command output descriptions, see Table 18.
Related commands
display current-configuration
display current-configuration diff
display saved-configuration