D-Link d-link Network Router User Manual


 
Configuration Scripting 45
Configuration Scripting
This section describes the Configuration Scripting feature.
Overview
Configuration Scripting:
z Allows you to generate text-formatted files
z Provides scripts that can be uploaded and downloaded to the system
z Provides flexibility to create command configuration scripts
z May be applied to several switches
z Can save up to ten scripts or 500K of memory
z Provides List, Delete, Apply, Upload, Download
z Provides script format of one CLI command per line
Considerations
z Total number of scripts stored on box limited by NVRAM/FLASH size.
z Application 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.
z Scripts cannot be modified or deleted while being applied.
z Validation 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
switch.
show Displays the contents of configuration script.
validate Validate the commands of configuration script.