H3C S5830V2 Command Reference Manual page 156

Switch series fundamentals
Hide thumbs Also See for S5830V2:
Table of Contents

Advertisement

Usage guidelines
This command compares the running configuration with the next-startup configuration file in the
following steps:
1.
Compares the running configuration with the main next-startup configuration file.
2.
If the main next-startup configuration file is unavailable or corrupt, this command compares the
running configuration with the backup next-startup configuration file.
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 the running configuration and the next-startup
configuration file.
<TEST1> display current-configuration diff
--- Startup configuration
+++ Current configuration
@@ -6,7 +6,7 @@
#
stp global enable
#
- sysname TEST
+ sysname TEST1
#
telnet server enable
#
Table 19 Command output
Field
- - - A
+++ B
@@ -linenumber1,number1
+linenumber2,number2 @@
cmd1
- cmd2
+ cmd3
cmd4
Related commands
display current-configuration
display diff
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.
B displays the target configuration for comparison, which can
be Current configuration, Startup configuration, or the
name of the target configuration file with its directory
information.
Location summary for a command line difference:
-linenumber1,number1—A total number of number1 lines are
excerpted from line number linenumber1 in A. These lines
contain a command line difference.
+linenumber2,number2—A total number of number2 lines
are excerpted from line number linenumber2 in B. These
lines contain a command line difference.
Command line difference:
cmd1 and cmd4 provide a context for locating the different
command lines.
- cmd2 indicates that A contains cmd2 but B not.
+ cmd3 indicates that B contains cmd3 but A not.
144

Advertisement

Table of Contents
loading

This manual is also suitable for:

S5820v2

Table of Contents