< Home

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 ] ] ] [ 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.

Parameters

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:
  • system: system configuration
  • user-interface: user interface configuration
  • aaa: AAA configuration
-
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.
  • interface-type: specifies the type of an interface
  • interface-number: specifies the number of an interface
-
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. -

Views

All views

Default Level

3: Management level

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.

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.

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 feature configuration.

<HUAWEI> display current-configuration feature ftp 
#
FTP server enable
#
------------ END ------------ 
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >