OcNOS SP : Troubleshooting Guide : Configuration Management
Configuration Management
This chapter contains steps to resolve device configuration and management issues.
 
Symptom/Cause
Solution
CLI running configuration output does not match the output of NetConf ‘get-config’ output, and this conflict is leading to an inability to alter device configuration. This situation can arise when the device running-config or start-up configuration is not synced with the device configuration store.
You can use this command to recover the device from this state:
reload flush-db: This command removes the current start-up database. The board reboots after you give this command.
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.