cancel
Showing results for 
Search instead for 
Did you mean: 

How to clear the unsaved command

How to clear the unsaved command

kwchiang
New Contributor

Hi ,

I accidentally paste a few line of command in my exos switches, but I haven't save the configuration.

How to I clear the unsaved command/ cache (the prompt display  with *) ? 

 

Thank you

 

2 ACCEPTED SOLUTIONS

zeny79john
New Contributor

The simplest and most effective way to clear any unsaved configuration changes is to reboot the switch. Since the commands are only in the running configuration (RAM) and haven't been written to the persistent boot.cfg file, a reboot will restore the switch to its last saved configuration.

View solution in original post

Jose_Luis
New Contributor II

Hi,

If the switch is production-critical and cannot be rebooted, there is no command to simply clear the * prompt indicator.

The * means the running configuration has been modified and no longer matches the saved boot.cfg.

In that situation you have three options:

  1. Identify the accidentally pasted commands and manually remove them using the corresponding delete, disable, or unconfigure commands.
  2. Compare the current running configuration with the last saved configuration to determine what has changed.
  3. Schedule a maintenance window and reboot the switch, which will reload the last saved configuration and discard all unsaved changes.

Before taking any action, I would check:

show configuration

and verify exactly which changes were introduced.

Unfortunately, EXOS does not provide a "discard candidate configuration" feature like some other network operating systems.

Regards

View solution in original post

3 REPLIES 3

Jose_Luis
New Contributor II

Hi,

If the switch is production-critical and cannot be rebooted, there is no command to simply clear the * prompt indicator.

The * means the running configuration has been modified and no longer matches the saved boot.cfg.

In that situation you have three options:

  1. Identify the accidentally pasted commands and manually remove them using the corresponding delete, disable, or unconfigure commands.
  2. Compare the current running configuration with the last saved configuration to determine what has changed.
  3. Schedule a maintenance window and reboot the switch, which will reload the last saved configuration and discard all unsaved changes.

Before taking any action, I would check:

show configuration

and verify exactly which changes were introduced.

Unfortunately, EXOS does not provide a "discard candidate configuration" feature like some other network operating systems.

Regards

zeny79john
New Contributor

The simplest and most effective way to clear any unsaved configuration changes is to reboot the switch. Since the commands are only in the running configuration (RAM) and haven't been written to the persistent boot.cfg file, a reboot will restore the switch to its last saved configuration.

Thank you. it works

GTM-P2G8KFN