beautypg.com

The configuration file fallback order – Allied Telesis AlliedWare Plus Operating System Version 5.4.4C (x310-26FT,x310-26FP,x310-50FT,x310-50FP) User Manual

Page 134

background image

Creating and Managing Files

Software Reference for x310 Series Switches

6.10

AlliedWare Plus

TM

Operating System - Version 5.4.4C

C613-50046-01 REV A

You may have many configuration files. Storing them on a device allows you to keep a
backup device with configuration scripts for every device in the network to speed up
network recovery time. Multiple scripts also let you test new configuration scripts before
setting them as the startup-config. For example, to test a new script named test.cfg, enter
the command:

This allows you to run a configuration file any time without restarting the device, by
replacing the system’s current dynamic configuration with the script in the configuration
file. However, note that some commands require you to restart the device before they can
take effect, such as the platform commands.

You can also set a trigger to automatically execute a configuration script when a
predetermined event occurs. For information about creating triggers, see

Chapter 75,

Triggers Introduction

.

The configuration file fallback order

The configuration fallback order is: configuration file, backup configuration file, default
configuration file and then the factory default configuration. It is important to note the
there is a distinction in system behavior between when writing to the startup-config file
and when the system boots up.

When you copy a configuration script from a source file into the startup-config file the
system will write to the first file that is configured. Potentially, this means that if a
configuration file and a backup configuration file are not set you will write to the
default.cfg.

At system startup the device goes through the fallback sequence until it finds a file that
exists. For example, if the configuration file is not found then the backup configuration file
becomes the current boot configuration, or startup-config, and so on. In the output
displayed by the show boot command, the Current boot config parameter shows the
startup-config file that the switch will load during the next boot cycle. The fallback
sequence when configuration files are deleted is shown below in output from the show
boot
command.

In the example output below, the current boot configuration file, my.cfg, is set on the USB
storage device. This is the startup-config file that the device loads at the next boot cycle.

awplus#

copy flash:/test.cfg running-config

awplus#show boot
Boot configuration
----------------------------------------------------------------
Current software : x310-5.4.4C.rel
Current boot image : usb:/x310-5.4.4C.rel
Backup boot image : flash:/x310-5.4.4C.rel
Default boot config: flash:/default.cfg
Current boot config: usb:/my.cfg (file exists)
Backup boot config: flash:/backup.cfg (file exists)