CX320 Switch Module V100R001 Command Reference 14
display current-configuration
Function
The display current-configuration command displays the currently running configuration.
This command does not display parameters that use default settings.
Format
display current-configuration [ configuration [ configuration-type [ configuration-instance ] ] | interface [ interface-type [ interface-number ] ] | all | inactive ] [ include-default ]
Parameters
Parameter | Description | Value |
---|---|---|
configuration configuration-type |
Specifies the configuration type. |
The value is determined by the current system configurations. |
configuration-instance |
Specifies a configuration instance. |
The value is a string of 1 to 80 case-insensitive characters without spaces. |
interface [ interface-type [ interface-number ] ] |
Specifies an interface type. |
- |
all |
Displays all the configuration information. |
- |
inactive |
Displays the offline configuration information. |
- |
include-default |
Displays the default configuration. |
- |
Usage Guidelines
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. If the include-default parameter is specified, the command output includes the default system configuration starting with a tilde (~).
You can use a regular expression to filter the command output. For the regular expression rules, see "Filtering Command Outputs" in the CX320 Switch Module V100R001 Configuration Guide.
After you run the display current-configuration all or display current-configuration inactive command, * in the command output indicates offline configuration.
- When * is displayed in an interactive operation, it indicates the configurations that have not been submitted.
- When * is displayed in configuration information, it indicates the offline configurations.
Example
# 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 configuration.
<HUAWEI> display current-configuration configuration ftp
# FTP server enable # return
# Display the configuration that includes the default configuration.
<HUAWEI> display current-configuration include-default !Software Version V100R005C60 !Last configuration was updated at 2015-09-14 02:34:08+00:00 !Last configuration was saved at 2015-09-08 06:58:17+00:00 # ~language character-set ISO8859-1 # sysname HUAWEI # ~undo command-privilege level rearrange # return