< Home

display current-configuration

Function

The display current-configuration command displays the currently running configurations on the FW.

If some running configuration parameters are the same as the default parameters, they are not displayed.

Format

display current-configuration [ configuration [ configuration-type [ configuration-instance ] ] | interface [ interface-type [ interface-number ] ] | vsys vsys-name ] [ feature feature-name [ filter filter-expression ] | filter filter-expression ]

display current-configuration [ vsys vsys-name ] [ all | inactive ]

display current-configuration detail

Parameters

Parameter Description Value

configuration

Displays all configuration information, except for the configuration on interfaces.

-

configuration-type

Specifies information about the configuration that is 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. For example:

<sysname> system-view
[sysname] vlan 20
[sysname-vlan20] description IPTV
[sysname-vlan20] quit
[sysname] display current-configuration configuration vlan 20
#
vlan 20
 description IPTV
#
return
NOTE:

display current-configuration configuration configuration-type configuration-instance is only provided for NMS users to check the current configuration of the configuration instance.

The value is a string of 1 to 115 characters.

controller

Displays the configuration information about a controller interface.

-

interface-type interface-number

Specifies the configuration information about the interface that is specified type and number.

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

-

vsys vsys-name

Specifies the name of virtual system.

The value is a string of 1 to 31 characters, starting with letters. The value cannot contain any space, @, * or hyphen (-) and is case sensitive.

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

Filters the configuration information.

NOTE:

If a large number of configurations are displayed, it takes a long time for the system to obtain the filtered configuration information correctly. Wait for a while.

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 configurations about all boards and cards, including the boards and cards that are not installed and not installed.

-

inactive

Displays configurations about the boards and cards that are not installed.

When a board or 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 is a string of 1 to 31 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.

related

Displays configurations of a specified module.

-

detail

Displays the detailed configurations, including the default configurations.

-

Views

All views

Default Level

3: Management level

Usage Guidelines

Usage Scenario

After a series of operations are performed, you can run the display current-configuration command to check whether the current configurations are correct or take effect. Then, you can decide whether to modify the current configurations.

Precautions

You can run this command to view all the current configurations, but the configurations may be incorrect. If check whether a specified configuration is correct, run the corresponding display command.

  • If a parameter is set to its default value, the command output does not show this parameter's configuration.
  • If a parameter has been configured but its configuration does not take effect, the command output does not show this parameter's configuration.
  • If a parameter has been configured but its value has changed, the command output shows the actual effective value.

When multiple configuration information exists, Huawei recommends you to filter the command output using regular expressions. For detailed information about regular expressions, get the product document and choose Regular Expressions.

Example

# Display the currently running configurations.

<sysname> display current-configuration
#
 sysname FW
#
interface GigabitEthernet 0/0/1
#
interface Pos2/0/0
 link-protocol ppp
#
user-interface con 0
 set authentication password cipher $1a$uKWbVT9(dS$"E9fV,x,t#iXd7RDZ2|8l_OgW;kQ$A<l8u8H-WoM$
 history-command max-size 30
user-interface vty 0 4
#
return

# Display all the configurations beginning with user.

<sysname> display current-configuration | begin user
user-interface con 0
user-interface vty 0 4
 authentication-mode aaa
 user privilege level 3
 idle-timeout 0 0
#
return

# Display all the configurations including user.

<sysname> display current-configuration | include user
user-interface con 0
user-interface vty 0 4
user privilege level 3
Table 1 Description of the display current-configuration command output

Item

Description

user-interface

User interface:
  • CON port: indicates the console port.
  • VTY: indicates the virtual type terminal.

user privilege level

User level.

By default, users on the console user interface are at level 15, but users on other user interfaces are at level 0.

User level is corresponding to command level. Command levels in ascending order are visit level, monitoring level, configuration level, and management level. The corresponding relationship between user level and command level is as follows:
  • Users at level 0-15 can run the command at level 0.
  • Users at level 1-15 can run the command at level 0 and 1.
  • Users at level 2-15 can run the command at level 0, 1, and 2.
  • Users at level 3-15 can run the command at level 0, 1, 2 and 3.
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >