Saving the router’s configuration, Storing multiple scripts – Allied Telesis AR700 SERIES Software Release 2.7.1 User Manual
Page 50

50
AR700 Series Router User Guide
Software Release 2.7.1
C613-02047-00 REV A
the router was restarted using the RESTART command, any script file specified
in the RESTART command.
In addition to the boot configuration script that the router automatically runs
when it restarts, you can run a configuration script manually at any time, by
entering the command:
activate script=filename
You can also set a trigger to automatically execute a configuration script when
a specified event occurs.
For more information about how to create and run scripts, see the Scripting
chapter in the Software Reference.
For information about creating triggers, see the Trigger Facility chapter in the
Software Reference.
Saving the Router’s Configuration
To view the router’s current dynamic configuration, enter the command:
show configuration dynamic
To save any changes made to the dynamic configuration after the router last
restarted (booted) across a restart or power cycle, and save the modified
configuration as a script file, enter the command:
create config=filename.scp
To set the router to execute this script file when it restarts, enter the command:
set config=filename.scp
The configuration file created by CREATE CONFIG command records
passwords in encrypted form, not in cleartext.
You can create a script file from any of the router software commands. These
are the same commands that are used to change the router’s configuration
dynamically. Manually edit a configuration file using the router’s built in
editor (see
“Using the Built-in Editor” on page 59
), or upload it to a PC using
the UPLOAD command (see the Operation chapter in the Software Reference),
edit it using any text editor, and download it again. Give configuration script
files an extension of
.scp
or
.cfg
.
To display the name of the configuration file that is set to execute when the
router restarts, enter the command:
show config=filename
Storing Multiple Scripts
You can store multiple configuration scripts on the router. This allows you to
test new configuration scripts once, before setting them as the default
configuration. For example, to test the new configuration script
test.cfg
,
enter the command:
restart switch config=test.cfg
Storing multiple scripts also allows you to keep a backup router with
configuration scripts stored on it for every router in the network to speed up
network recovery time.