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.
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. |
- |
Usage Scenario
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.
In different view, this command displays the configurations associated with the view.
The actual command output varies according to the device. The command output here is only an example.
<HUAWEI> system-view [~HUAWEI] display this # sysname HUAWEI # return
<HUAWEI> system-view [~HUAWEI] display this include-default # sysname HUAWEI # FTP server port 21 FTP ipv6 server port 21
<HUAWEI> system-view [~HUAWEI] interface loopback2 [~HUAWEI-LoopBack2] display this inheritance # interface LoopBack2 apply-command-group g1 ! ! inherited from group g1 clear ip df #
<HUAWEI> system-view [~HUAWEI] interface loopback2 [~HUAWEI-LoopBack2] display this inheritance no-comment # interface LoopBack2 apply-command-group g1 clear ip df #
<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
#
<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
<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$
<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$
<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
<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
<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