Switch Memory and Configuration

Using the CLI To Implement Configuration Changes

How To Cancel Changes You Have Made to the Running-Config File.

If you use the CLI to change parameter settings in the running-config file, and then decide that you don’t want those changes to remain, you can use either of the following methods to remove them:

Manually enter the earlier values you had for the changed settings. (This is recommended if you want to restore a small number of parameter settings to their previous boot-up values.)

Update the running-config file to match the startup-config file by reboot- ing the switch. (This is recommended if you want to restore a larger number of parameter settings to their previous boot-up values.)

If you use the CLI to change a parameter setting, and then execute the boot command without first executing the write memory command to save the change, the switch prompts you to specify whether to save the changes in the current running-config file. For example:

Disables port 1 in the running configuration, which causes port 1 to block all traffic.

ProCurve(config)# interface e 1 disable ProCurve(config)# boot

Device will be rebooted, do you want to continue [y/n]? y Press [Y] to continue the rebooting process.

You will then see this prompt.

Do you want to save current configuration [y/n]?

Figure 6-2. Boot Prompt for an Unsaved Configuration

The above prompt means that one or more parameter settings in the running- config file differ from their counterparts in the startup-config file and you need to choose which config file to retain and which to discard.

If you want to update the startup-config file to match the running-config file, press [Y] for “yes”. (This means that the changes you entered in the running-config file will be saved in the startup-config file.)

If you want to discard the changes you made to the running-config file so that it will match the startup-config file, then press [N] for “no”. (This means that the switch will discard the changes you entered in the running- config file and will update the running-config file to match the startup- config file.)

6-8