Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    Saving the Current System Configuration

    You can save the current configuration of the system to a system configuration (*.cnf) file or the NVS using different commands:

    • Save the current configuration to a system configuration (*.cnf) file. You can use the include-text-config keyword to add the text configuration to the system configuration file in compressed format.

      If you want to restore a previously saved configuration, use the boot config cnfFileName command.

      Note:

      • Although the copy running-configuration command is available in either Automatic Commit mode or Manual Commit mode, use this command only in Manual Commit mode. Issuing this command in Automatic Commit mode has no effect.
      • The destination filename must have a .cnf extension. The destination file can be either a local or a network file.
      • To save the current configuration without the text configuration:
        host1#copy running-configuration system2.cnf
      • To save the current configuration and add the text configuration to the file in compressed format:
        host1#copy running-configuration system2.cnf include-text-config
    • Save all outstanding (unsaved) configuration changes to NVS.
      host1#copy running-configuration startup-configuration

      Note:

      • The copy running-configuration startup-configuration command is available if the system is in either Automatic Commit mode or Manual Commit mode. If issued while in Automatic Commit mode, the CLI notifies you that the command is not necessary, but allows you to proceed.
      • If automatic synchronization between the primary and standby SRP modules is enabled (the default system behavior) and the system is in Manual Commit mode (the nondefault system behavior), issuing the copy running-configuration startup-configuration command triggers file system synchronization immediately after the system writes, or commits, all outstanding configuration changes to NVS.
      • The copy running-configuration startup-configuration command is prevented during the high availability initialization state. If issued during this state, the CLI notifies you of the state and requests that you try again later.
      • The copy running-configuration startup-configuration command is an exact alias of the write memory command.
    • Copy the previously saved startup configuration to a system configuration (*.cnf) file. If you have made but not saved any configuration changes, those changes are not in the startup configuration.
      host1#copy startup-configuration system1.cnf

      Note: The copy startup-configuration command is available only if the system is in Manual Commit mode.

    • Stop the system from automatically saving configuration changes to NVS.
      host1(config)#service manual-commit

      Note:

      • The service manual-commit command places the system into Manual Commit mode. This mode has no effect on the CLI prompt.
      • The service manual-commit command causes an immediate save of configuration data not yet committed to NVS.
      • If the service manual-commit command is issued when high availability is initializing, the CLI notifies you of the state and requests that you try again later.

      Use the no version to return the system to Automatic Commit mode; the no version has no effect if the system is already in Automatic Commit mode.

    • Save all outstanding (unsaved) configuration changes to NVS.
      host1#write memory

      Note:

      • The write memory command is an exact alias of the copy running-configuration startup-configuration command.
      • The write memory command is available if the router is in either Automatic Commit mode or Manual Commit mode. If issued while in Automatic Commit mode, the CLI notifies you that the command is not necessary, but allows you to proceed.
      • If automatic synchronization between the primary and standby SRP modules is enabled (the default system behavior) and the system is in Manual Commit mode (the nondefault system behavior), issuing this command triggers file system synchronization immediately after the system writes, or commits, all outstanding configuration changes to NVS.

    Published: 2014-08-12