reload
Use this command to shut down the device and perform a cold restart. You call this command when:
• You detect a configuration issue such as show running-config displaying a configuration but when you try to remove that configuration, you get a message that it is not configured.
• You have replaced the start-up configuration file (in this case you specify the flush-db parameter).
Command Syntax
reload (flush-db|)
Parameters
flush-db
Delete the database file and recreate it from the start-up configuration file.
Default
No default value is specified
Command Mode
Privileged Exec mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
This example shows replacing a start-up configuration file and then synchronizing it to the configuration database:
#copy file /home/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?
You should 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: 10/19/2023