Configuration Scripting 45

Configuration Scripting

This section describes the Configuration Scripting feature.

Overview

Configuration Scripting:

zAllows you to generate text-formatted files

zProvides scripts that can be uploaded and downloaded to the system

zProvides flexibility to create command configuration scripts

zMay be applied to several switches

zCan save up to ten scripts or 500K of memory

zProvides List, Delete, Apply, Upload, Download

zProvides script format of one CLI command per line

Considerations

zTotal number of scripts stored on box limited by NVRAM/FLASH size.

zApplication of scripts is partial if script fails. For example, if the script executes five of ten commands and the script fails, the script stops at five.

zScripts cannot be modified or deleted while being applied.

zValidation of scripts checks for syntax errors only. It does not validate that the script will run.

CLI Examples

The following are examples of the commands used for the Configuration Scripting feature.

Example #1: script

(Console)

#script ?

apply

Applies configuration

script to the switch.

delete

Deletes a configuration script file from the switch.

list

Lists all configuration script files present on the

show

switch.

of configuration script.

Displays the contents

validate

Validate the commands

of configuration script.

Page 45
Image 45
D-Link d-link manual Configuration Scripting, Considerations, Example #1 script