EasyManua.ls Logo

Allied Telesis Rapier i AT-RP16Fi/SC - Using Scripts; Saving the Switchs Configuration

Allied Telesis Rapier i AT-RP16Fi/SC
123 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
52 Rapier Switch User Guide
Software Release 2.6.1
C613-02025-00 REV C
Using Scripts
When you start or restart the switch, or when it automatically restarts, it
executes the configuration commands in the boot script. A boot script is a text
file containing a sequence of standard commands that the switch executes at
startup. The default boot script is called
boot.cfg. Commands run from a boot
script are limited to 128 characters.
The commands you enter into the switch from the command line affect only
the dynamic configuration in RAM, which is not retained over a power cycle.
The switch does not automatically store these changes in FLASH memory.
When the switch is restarted, it loads the configuration defined by the boot
script, or if the switch was restarted using the RESTART command, any script
file specified in the RESTART command.
In addition to the boot configuration script that the switch 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 Rapier Series Switch Software Reference.
For information about creating triggers, see the Trigger Facility chapter in the
Rapier Series Switch Software Reference.
Saving the Switch’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 switch 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 switch 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 switch 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 61), or upload it to a PC using the
UPLOAD command (see the Operation chapter, Rapier Series Switch 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
switch restarts, enter the command:
SHOW CONFIG=filename

Table of Contents

Other manuals for Allied Telesis Rapier i AT-RP16Fi/SC

Related product manuals