return
display current-configuration diff
Use display current-configuration diff to display the configuration differences between the
running configuration and the next-startup configuration file.
Syntax
display current-configuration diff
Views
Any view
Predefined user roles
network-admin
network-operator
Usage guidelines
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, for example, the file is corrupt.
If both the main and backup next-startup configuration files are unavailable, the system displays a
message indicating that the next-startup configuration file does not exist.
Examples
# Display the configuration differences between the running configuration and the next-startup
configuration file.
<Sysname> display current-configuration diff
--- Startup configuration
+++ Current configuration
@@ -17,7 +17,9 @@
#
vlan 200
#
-vlan 300
+vlan 400
+#
+vlan 500
#
interface Aux2/0/0
#
<Sysname>
The output shows that the running configuration contains VLAN 400 and VLAN 500 while the
next-startup configuration file contains VLAN 300.
Table 21 Command output
Field
- - - A
+++ B
Description
•
A displays the source configuration for comparison, which can be
Startup configuration, Current configuration, or the name of the
source configuration file with its directory information.
188