display current-configuration (All views)

Function

The display current-configuration command displays the set parameters that take effect on the device.

The display this command displays the configurations of the system in the current view that inherit the configuration template.

Format

display current-configuration [ configuration [ configuration-type [ configuration-instance ] | config-type-no-inst ] | all | inactive ] [ include-default ]

display current-configuration inheritance [ no-comment ]

display this inheritance [ no-comment ]

Parameters

Parameter Description Value
configuration-type

Specifies the configuration type.

According to the actual situation of the equipment.

configuration-instance

Specifies the configuration instance.

The instance is a string of 1 to 200 characters.

config-type-no-inst

Specifies the configuration module.

According to the actual situation of the equipment.

all

Specifies all the configuration information.

-

inactive

Specifies all configurations of the board in the offline state.

-

include-default

Displays both the configurations that users have performed and default configurations.

-

inheritance

Displays configurations that inherit the configuration template.

-

no-comment

Displays configurations that do not contain comments of commands in the configuration template.

-

Views

All views

Default Level

3: Management level

Task Name and Operations

Task Name Operations
config read

Usage Guidelines

Usage Scenario

  • After a set of configurations are complete, you can run the display current-configuration command to check the parameters that take effects. The parameters that do not take effect are not displayed. If some running configuration parameters are the same as the default parameters, they are not displayed.
  • When the display current-configuration command is configured:
    • If include-default is not specified, the display current-configuration command displays only configurations that users have performed.
    • If include-default is specified, the display current-configuration command displays both default configurations and configurations that users have performed.
  • The display current-configuration inheritance [ no-comment ] command displays configurations that are performed by users and contained in the configuration template.
  • If include-default is specified, the command displays both user-configured information and default configuration information.
  • To view user configuration template information in the existing view, run the display this inheritance command.

Configuration Impact

You can filter the output using regular expressions in the case of a large amount of configuration information. For usage of regular expressions, see "CLI Overview" in CLI Configuration Guide > Basic Configurations.

Precautions

The following configurations are not displayed in the command output.

  • Configurations that are the same as default ones
  • Configurations that have not been committed
  • Configurations on a VS that is managed separately

In different view, this command displays the configurations associated with the view.

Example

The actual command output varies according to the device. The command output here is only an example.

# Display the effective parameters in the current view on the device.
<HUAWEI> system-view
[~HUAWEI] display this
#
sysname HUAWEI
#
return
# Display the configurations that take effect in the current view on the device and default configurations. (The command output is not all listed.)
<HUAWEI> system-view
[~HUAWEI] display this include-default
#
sysname HUAWEI
#
FTP server port 21
FTP ipv6 server port 21
# Display user configuration template information in the existing view.
<HUAWEI> system-view
[~HUAWEI] interface loopback2
[~HUAWEI-LoopBack2] display this inheritance
#
interface LoopBack2
 apply-command-group g1
 !
 ! inherited from group g1
 clear ip df
#
# Display user configuration template information in the existing view, without comments.
<HUAWEI> system-view
[~HUAWEI] interface loopback2
[~HUAWEI-LoopBack2] display this inheritance no-comment
#
interface LoopBack2
 apply-command-group g1
 clear ip df
#
# Display the set parameters that take effect on the device.
<HUAWEI> display current-configuration
#
sysname HUAWEI
#
info-center source default channel 4 log level debugging
#
service-template template-default0
#
service-template template-default1
#
service-template template-default2
#
service-template template-default3
#
service-template template-default4
#
snmp-agent trap type entity-trap
#
# Display all the configurations that begin with user.
<HUAWEI> display current-configuration | begin user
user-interface con 0
 set authentication password cipher $1c$k4:o79a_DJ$dkxW!,\@7Cjr*k+Q}gb'{g{x)#wS1GjQST'EZ]/F$
 history-command max-size 30
#
return
# Display all the configurations that include user.
<HUAWEI> display current-configuration | include user
undo user-security-policy enable 
 local-user aaa password irreversible-cipher $1c$]f(3Q<j7uS$!0!)8@e`\+lj]vQx\2l
&y-$M(|\n_ERFU_BF$!6X$
# Display both the configurations that include user and default configurations. (The command output is not all listed.)
<HUAWEI> display current-configuration include-default | include user
undo user-security-policy enable         
 user-password min-len 6   
 undo user-password complexity-check  
 user-password expire 0 prompt 0  
 undo user-password change   
 user-block failed-times 5 period 5
 user-block reactive 5
 local-user aaa password irreversible-cipher $1c$]f(3Q<j7uS$!0!)8@e`\+lj]vQx\2l
&y-$M(|\n_ERFU_BF$!6X$
# Display instance help information that an AAA level-2 feature supports.
<HUAWEI> display current-configuration configuration aaa
#
aaa
 #
 authentication-scheme default0
 #
 authentication-scheme default1
 #
 authentication-scheme default
  authentication-mode local radius
 #
 authorization-scheme default
 #
 accounting-scheme default0
 #
 accounting-scheme default1
 #
 domain default0
 #
 domain default1
 #
 domain default_admin
#
return
# Display configurations that inherit the configuration template.
<HUAWEI> display current-configuration inheritance
!Software Version V800R021C00SPC100
!Last configuration was updated at 2018-02-24 09:19:01+00:00
#
command group g1
 interface Loopback1
  clear ip df
end-group
#
interface LoopBack1
 apply-command-group g1
 !
 ! inherited from group g1
 clear ip df
#
return
# Display configurations that do not contain comments of command in the configuration template.
<HUAWEI> display current-configuration inheritance no-comment
!Software Version V800R021C00SPC100
!Last configuration was updated at 2018-02-24 09:19:01+00:00
#
command group g1
 interface Loopback1
  clear ip df
end-group
#
interface LoopBack1
 apply-command-group g1
return
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >