Using Configuration Scripts
This section contains:
•
Creating a Configuration Script on page 60
•
Viewing a Configuration Script File on page 60
•
Uploading a Configuration Script to a TFTP Server on page 61
•
Deleting a Script on page 61
•
Downloading a Configuration Script from a TFTP Server on page 62
•
Applying a Configuration Script on page 63
•
Listing Configuration Scripts on page 64
Configuration scripts are 'flat' configuration files stored in the NVRAM. Their file names are appended
with the ".scr" extension.
The configuration scripts are editable text files that can be uploaded and downloaded to and from the
switch and a TFTP server.
See the Configuration Scripting section in the System Configuration chapter of the SFTOS Command
Reference for details on all scripting commands.
Creating a Configuration Script
One way to create a "config script" is to use a variation of the
Command Syntax
show running-config
Force10 #show running-config test.scr
Config script created successfully.
Note: Starting with Release 2.3, you can use show running-config startup-config to achieve the
same effect as you can with show running-config
a text file that you can save to a server and download to any switch.
Viewing a Configuration Script File
To view the config script, use the
60
|
Getting Started
Command Mode
<
>
Privileged Exec
scriptname
.scr
script show
show running-config
Purpose
Create a configuration script by specific name.
<
>
scriptname
.scr
command.
scriptname
command:
.scr. The resulting startup-config is