No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Fat AP and Cloud AP V200R010C00 Command Reference

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
compare configuration

compare configuration

Function

The compare configuration compares whether the current configurations are identical with the next startup configuration file.

Format

compare configuration [ configuration-file [ current-line-number save-line-number ] ]

Parameters

Parameter Description Value
configuration-file Specifies the name of the configuration file to be compared with the current configurations. The value is a string of 5 to 64 case-sensitive characters without spaces.
current-line-number Specifies the line number for comparison in the current configuration. The value is an integer that ranges from 0 to 65535.
save-line-number Specifies the line number for comparison in the saved configuration. The value is an integer that ranges from 0 to 65535.

Views

User view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

If current-line-number and save-line-number are not specified, the configuration files are compared from the first lines. The two parameters can be specified to skip the differences that are found and continue the comparison.

When the difference is found using the compare configuration command, the different content in the current and saved configuration files is displayed. By default, 120 characters are displayed. If the different content from the start line to the end line contains less than 120 characters, only these characters are displayed.

Precautions

  • The configuration file name extension must be .cfg or .zip.

  • If configuration-file is not specified, the system compares whether the current configurations are identical with the next startup configuration file.

  • If configuration-file is specified, the system compares whether the current configurations are identical with the specified startup configuration file.

Example

# Compare whether the current configurations are identical with the next startup configuration file.

<Huawei> compare configuration
 The current configuration is not the same as the next startup configuration file.    
 ====== configuration line 14 ======                                    
 undo http server enable                                                        
#                                                                               
 drop illegal-mac alarm                                                         
#                                                                               
 vlan batch 10 to 11                                                            
#                                                                               
 dot1x enable                                                                   
#                                                                               
set transceiver-monitoring disable                                              
 ====== Configuration file line 14 ======                                       
 http server enable                                                             
#                                                                               
 drop illegal-mac alarm                                                         
#                                                                               
 vlan batch 10 to 11                                                            
#                                                                               
 dot1x enable                                                                   
#                                                                               
set transceiver-monitoring disable 
Related Topics
Translation
Download
Updated: 2019-11-21

Document ID: EDOC1100064352

Views: 204427

Downloads: 122

Average rating:
This Document Applies to these Products
Related Version
Related Documents
Share
Previous Next