Replacing the Start-up Configuration File
To replace a start-up configuration file, you must update the configuration database as well. To do this, follow these steps:
1. Copy the configuration file to the startup configuration (copy file command)
2. Reboot and apply the configuration to the device and the configuration database (reload flush-db command)
If the start-up configuration file and the configuration database are not synchronized, then the system does not allow configurations to be done and will result in an unstable state. Therefore, you must keep the configuration file and the configuration database synchronized.
This example shows replacing a start-up configuration file and then synchronizing it to the configuration database:
#copy file /home/ZebOS-TEST.conf startup-config
Copy Success
#
#reload flush-db
The system has unsaved changes.
Would you like to save them now? (y/n): n
Configuration Not Saved!
Are you sure you would like to reset the system? (y/n): y
For both of these prompts, you must specify whether to save or discard the changes. Abnormal termination of the session without these inputs can impact the system behavior.
For the unsaved changes prompt:
Would you like to save them now?
Always say “no” to this prompt because otherwise the command takes the current running configuration and applies it to the current start-up configuration.
Last modified date: 06/08/2023