Enable Debugging of the Configuration File During System Start

Enables you to debug the configuration file during loading configuration at system boot up. The default is disabled. You do not have to restart the switch after you enable debug-config, unless you want to immediately debug the configuration. After you enable debug-config and save the configuration, the debug output either displays on the console or logs to an output file the next time the switch reboots.

About this task

The options are:

  • debug-config [console]—Displays the line-by-line configuration file processing and result of the execution on the console while the device loads the configuration file.

  • debug-config [file]— Logs the line-by-line configuration file processing and result of the execution to the debug file while the device loads the configuration file. The system logs the debug config output to /intflash/debugconfig_primary.txt for the primary configuration file. The system logs the debug config output to /intflash/debugconfig_backup.txt for the backup configuration, if the backup configuration file loads.

Procedure

  1. Enter Global Configuration mode:

    enable

    configure terminal

  2. Enable debugging of the configuration file:

    boot config flags debug-config [console] | [file]

  3. Save the changed configuration.