The display current-configuration command displays the currently running configuration.
This command does not display parameters that use default settings.
display current-configuration [ configuration [ configuration-type [ configuration-instance ] ] | interface [ interface-type [ interface-number ] ] ] [ feature feature-name ] [ filter filter-expression ]
display current-configuration [ all | inactive ]
display current-configuration configuration vpn-instance [ vpn-instance-name ] related
Only the S5720-EI, S5720-HI, S5720I-SI, S5720S-SI, S5720-SI, S5735-S, S5735S-S, S5735-S-I, S5730-HI, S5730S-EI, S5730-SI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6720-EI, S6720-HI, S6720S-EI, S6720S-SI, S6720-SI, S6730-H, S6730S-H, S6730-S, and S6730S-S support display current-configuration configuration vpn-instance [ vpn-instance-name ] related.
Parameter |
Description |
Value |
---|---|---|
configuration | Displays all configuration information, except for the configuration on interfaces. |
- |
configuration-type | Specifies information about the configuration that is a specified type, except for the configuration on interfaces. The configuration type depends on the existing configuration.
For example:
|
- |
configuration-instance | Specifies information about the specified configuration instance, except for the configuration on interfaces. The configuration instance depends on the existing configuration. |
The value is a string of 1 to 80 case-insensitive characters without spaces. |
interface [ interface-type [ interface-number ] ] | Specifies an interface type. The information on the interface depends on the existing configuration.
|
- |
feature feature-name | Specifies the configuration information about the specified feature. The configuration information about the feature depends on the existing configuration. |
- |
filter filter-expression | Displays the configuration information that matches a regular expression. | The value is a string of 1 to 255 case-insensitive characters, spaces not supported. The matching starts from the first character of the command. For example, if snmp-agent is specified for filter-expression, only commands beginning with snmp-agent are filtered. |
all | Displays all the configuration information. |
- |
inactive | Displays configurations about the cards that are not installed. When a card is not inserted, its configuration information is in the inactive status. The front of these configurations in the inactive state is marked with an asterisk (*). |
- |
vpn-instance [ vpn-instance-name ] | Displays configurations of a VPN instance with a specified name. | The value must be an existing VPN instance name. |
related | Displays configurations of a specified module. | - |
To check whether the configured parameters take effect, run the display current-configuration command. The parameters that do not take effect are not displayed.
The command output is relevant to user configuration.
You can use a regular expression to filter the command output. For the regular expression rules, see Filtering Output Information Based on the Regular Expression in "CLI Overview" in the S2720, S5700, and S6700 V200R019C10 Configuration Guide - Basic Configuration.
If the configuration is in the offline state, the offline configuration is marked with * in the display current-configuration all and display current-configuration inactive command output.
# Display all configurations that include vlan.
<HUAWEI> display current-configuration | include vlan
vlan batch 10 77 88 port trunk allow-pass vlan 10
# Display the FTP feature configuration.
<HUAWEI> display current-configuration feature ftp
# FTP server enable # ------------ END ------------