show running-config

Syntax

show running-config [] [all] [vsx-peer]

描述

显示当前默认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 theshow running-configcommand, followed by a space, followed by a question mark (?). When thejsonparameter is used, thevsx-peerparameter is not applicable.

all

Shows all default values for the current running configuration.

[vsx-peer]

Shows the output from the VSX peer switch. If the switches do not have the VSX configuration or the ISL is down, the output from the VSX peer switch is not displayed. This parameter is available on switches that support VSX.

Authority

Administrators or local user group members with execution rights for this command.

Examples

Showing the current running configuration:

switch>show running-configCurrent configuration: ! !Version ArubaOS-CX 10.0X.XXXX ! lldp enable linecard-module LC1 part-number JL363A vrf green ! ! ! ! ! ! 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.4 vlan 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 shutdown interface 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

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 Current configuration: ! !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)#

Show the current running configuration with default values:

switch(config)# snmp-server vrf mgmt switch(config)# show running-config Current configuration: ! !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)#