Displaying the configuration files

To display configuration files:
  • Use the show config files command to display the existing configuration files. This command also indicates whether a custom default configuration file exists.

  • Use either the command show default config or the command show running-config to display the custom default configuration.

If a custom default configuration file exists and you erase the current active config file (using the erase startup-config command), use the show running-configcommand to display the custom default configuration, which is loaded upon bootup.

NOTE: When the show default config command is executed in enhanced secure mode the following prompt displays:

Do you want to show sensitive information (y/n)?

If "Y/y" is entered, the normal command output is displayed on the console. If "N/n" is entered, all the sensitive information is hidden and will be displayed as asterisks ("*****"). The default option is "N/n" when interactive mode is disabled. For more information, see the "Secure Mode" in the Access Security Guide for your switch.

Output displaying three configuration files

switch(config)# show config files

Configuration files:

id | act pri sec | name
---+-------------+--------------------------
 1    *   *      | config
 2               | secondaryconfig
 3            *  | Kconfig
==================
A Custom default configuration file exists.

Output for custom default configuration file

switch(config)# show default-config

Custom default configuration:

; J8693A Configuration Editor; Created on release #K.15.14.0001

; Ver #02:0b:ef:e6
hostname "switch"
module 1 type J93x7
module 2 type J93x7
vlan 1
  name "DEFAULT-VLAN"
  untagged 1-24
  ip address dhcp-bootp
  exit
interface 4
  flow-control
  exit snmp-server community "public" unrestricted
spanning-tree

Output of custom default config file when current active config file erased

switch(config)# show running-config

Custom default configuration:

; J8693A Configuration Editor; Created on release #K.15.12.0001
; Ver #02:0b:ef:e6
hostname "switch"
module 1 type J93x7
module 2 type J93x7
vlan 1
  name "DEFAULT-VLAN"
  untagged 1-24
  ip address dhcp-bootp
  exit
interface 4
  flow-control
  exit
snmp-server community "public" unrestricted
spanning-tree