The display current-configuration command displays the currently running configurations on the AntiDDoS.
If some running configuration parameters are the same with the default parameters, they are not displayed.
display current-configuration [ configuration [ configuration-type [ configuration-instance ] ] | interface [ interface-type [ interface-number ] ] ] [ feature feature-name [ filter filter-expression ] | filter filter-expression ]
display current-configuration [ all | inactive ]
display current-configuration detail
display current-configuration controller [ interface-type [ interface-number ] ] [ filter filter-expression | feature feature-name [ filter filter-expression ] ]
| 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:
|
- |
| 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 80 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.
|
- |
| 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 amount
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. |
- |
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.
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.
# Display the currently running configurations.
<sysname> display current-configuration
# sysname AntiDDoS # interface GigabitEthernet1/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
# Display configurations of the VPN instance.
Item |
Description |
|---|---|
user-interface |
User interface:
|
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:
|