Technical data

Table Of Contents
14 ServerIron ADX OpenScript Guide
53-1002445-01
Managing scripts
3
Importing and exporting scripts through TFTP
You can use the copy tftp command to upload a script to a ServerIron ADX from a TFTP server as
shown.
ServerIronADX# copy tftp usb0 1.1.1.1 sample.pl sys\dpscript\sample.pl
Syntax: copy tftp usb0 <IP_address> <script_filename_on_tftp-server> sys\dpscript\
<filename_on_usb0>
The <IP_address> variable is the address of the TFTP server where the script resides.
The <script_filename_on_tftp-server> variable is the filename of the script file.
The <filename_on_usb0> variable is the script name to be created on the ServerIron ADX.
Scripts can also be exported from a ServerIron ADX to a TFTP server using the copy usb0 tftp
command as shown in the following.
ServerIronADX# copy usb0 tftp 1.1.1.1 sys\dpscript\sample.pl sample.pl
Syntax: copy usb0 tftp <IP_address> sys\dpscript\<filename_on_usb0>
<script_filename_on_tftp-server>
The <IP_address> variable is the address of the TFTP server that you want to copy the script to.
The <filename_on_usb0> variable is the script name on the ServerIron ADX that you want to copy
to the TFTP server.
The <script_filename_on_tftp-server> variable is the script name to be created on the TFTP server.
Managing scripts
In addition, the you can manage scripts on the ServerIron ADX as described in the following.
“Deleting a script”
“Renaming a script”
“Display script in the script directory”
Deleting a script
You can use the delete command to delete a script from a ServerIron ADX as shown.
ServerIronADX# delete usb0\sys\dpscript\sample.pl
Syntax: delete usb0\sys\dpscript\ <script-name>
The <script_name> variable is the name of the script file that you want to delete.
NOTE
You cannot delete a script if it is bound to a VIP.
Renaming a script
You can use the rename command to rename a script on a ServerIron ADX as shown.
ServerIronADX# rename usb0\sys\dpscript\sample.pl usb0\sys\dpscript\sample1.pl