show running-config
Syntax
show running-config [ ] [all]
描述
显示当前默认configuration running on the switch. No user information is displayed.
Command context
Manager (#
)
Parameters
-
-
Specifies the name of a feature. For a list of feature names, enter the
show running-config
command, followed by a space, followed by a question mark (?). -
all
-
Shows all default values for the current running configuration.
Authority
Administrators or local user group members with execution rights for this command.
Examples
Showing the current running configuration:
switch>show running-config当前配置:!!Version ArubaOS-CX 10.0X.XXXX ! lldp enable linecard-module LC1 part-number JL363Avrf default! ! ! ! ! ! aaa authentication login default local aaa authorization commands default none ! ! ! !router ospf 1 vrf green area 0.0.0.0 router pim vrf green enable rp-address 30.0.0.4vlan 1 no shutdown vlan 20 no shutdown vlan 30 no shutdown interface 1/1/1 no shutdown no routing vlan access 30 interface 1/1/32 no shutdown no routing vlan access 20 interface bridge_normal-1 no shutdown interface bridge_normal-2 no shutdowninterface vlan20 no shutdown vrf attach green ip address 20.0.0.44/24 ip ospf 1 area 0.0.0.0 ip pim-sparse enable interface vlan30 no shutdown vrf attach green ip address 30.0.0.44/24 ip ospf 1 area 0.0.0.0 ip pim-sparse enable ip pim-sparse hello-interval 100
switch>show running-config当前配置:!!版本ArubaOS-CX PL.10.06.0001-346-g56a12a8f4cf15 !export-password: default ntp enable ! ! ! ! ssh server vrf default vlan 1 spanning-tree spanning-tree instance 1 vlan 1,2,4-10 interface 1/1/1 no shutdown vlan access 1 portfilter 1/1/2-1/1/3 interface 1/1/2 no shutdown vlan access 1 interface 1/1/3 no shutdown vlan access 1 interface 1/1/4 no shutdown vlan access 1 interface 1/1/5 no shutdown vlan access 1 interface 1/1/6 no shutdown vlan access 1 interface 1/1/7 no shutdown vlan access 1 interface 1/1/8 no shutdown vlan access 1 interface 1/1/9 no shutdown vlan access 1 interface 1/1/10 no shutdown vlan access 1 interface 1/1/11 no shutdown vlan access 1 interface 1/1/12 no shutdown vlan access 1 interface 1/1/13 no shutdown vlan access 1 interface 1/1/14 no shutdown vlan access 1 interface 1/1/15 no shutdown vlan access 1 interface 1/1/16 no shutdown vlan access 1 interface vlan 1 ip dhcp snmp-server vrf default snmp-server community public snmp-server host 1.1.1.1 inform version v2c snmp-server host 1.1.1.1 trap version v2c snmpv3 context A vrf default ! ! ! ! ! https-server vrf default
Showing the current running configuration in json format:
switch>show running-config jsonRunning-configuration in JSON: { "Monitoring_Policy_Script": { "system_resource_monitor_mm1.1.0": { "Monitoring_Policy_Instance": { "system_resource_monitor_mm1.1.0/system_resource_monitor_mm1.1.0.default": { "name": "system_resource_monitor_mm1.1.0.default", "origin": "system", "parameters_values": { "long_term_high_threshold": "70", "long_term_normal_threshold": "60", "long_term_time_period": "480", "medium_term_high_threshold": "80", "medium_term_normal_threshold": "60", "medium_term_time_period": "120", "short_term_high_threshold": "90", "short_term_normal_threshold": "80", "short_term_time_period": "5" } } }, ... ... ... ...
Show the current running configuration without default values:
switch(config)#show running-config当前配置:!!Version ArubaOS-CX Virtual.10.04.0000-6523-gbb15c03~dirty led locator on ! ! ! ! ! ! ! ! ! vlan 1 switch(config)# show running-config all Current configuration: ! !Version ArubaOS-CX Virtual.10.04.0000-6523-gbb15c03~dirty led locator on ! ! ! ! ! ! ! ! ! vlan 1 switch(config)#
switch(config)#show running-config当前配置:!!版本ArubaOS-CX PL.10.06.0001-346-g56a12a8f4cf15 !export-password: default ! ! ! ! ssh server vrf default vlan 1 spanning-tree interface 1/1/1 no shutdown vlan access 1 interface 1/1/2 no shutdown vlan access 1 interface 1/1/3 no shutdown vlan access 1 interface 1/1/4 no shutdown vlan access 1 interface 1/1/5 no shutdown vlan access 1 interface 1/1/6 no shutdown vlan access 1 interface 1/1/7 no shutdown vlan access 1 interface 1/1/8 no shutdown vlan access 1 interface 1/1/9 no shutdown vlan access 1 interface 1/1/10 no shutdown vlan access 1 interface 1/1/11 no shutdown vlan access 1 interface 1/1/12 no shutdown vlan access 1 interface 1/1/13 no shutdown vlan access 1 interface 1/1/14 no shutdown vlan access 1 interface 1/1/15 no shutdown vlan access 1 interface 1/1/16 no shutdown vlan access 1 interface vlan 1 ip dhcp ! ! ! ! ! https-server vrf default switch# switch#
Show the current running configuration with default values:
switch(config)#snmp-server vrf mgmtswitch(config)#show running-config当前配置:!!Version ArubaOS-CX Virtual.10.04.0000-6523-gbb15c03~dirty led locator on ! ! ! ! snmp-server vrf mgmt ! ! ! ! ! vlan 1 switch(config)# switch(config)# switch(config)# show running-config all Current configuration: ! !Version ArubaOS-CX Virtual.10.04.0000-6523-gbb15c03~dirty led locator on ! ! ! ! snmp-server vrf mgmt snmp-server agent-port 161 snmp-server community public ! ! ! ! ! vlan 1 switch(config)#