Managing scripts, Deleting a script, Renaming a script – Brocade Virtual ADX OpenScript Programmer’s Guide (Supporting ADX v03.1.00) User Manual
Page 22: Display script in the script directory

14
Brocade Virtual ADX OpenScript Programmer’s Guide
53-1003244-01
Managing scripts
3
Managing scripts
In addition, the you can manage scripts on the Brocade Virtual ADX as described in the following.
•
•
•
“Display script in the script directory”
Deleting a script
You can use the del command to delete a script from a Brocade Virtual ADX as shown.
VirtualADX# del openscripts/dpscript/sample.pl
Syntax: del openscripts/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 Brocade Virtual ADX as shown.
VirtualADX# rename openscripts/dpscript/sample.pl openscripts/dpscript/sample1.pl
Syntax: rename openscripts/dpscript/initial-script-name openscripts/dpscript/ new-script-name
The initial-script-name variable is the name of the script file that you want to rename.
The new-script-name variable is the new name that you want to create for the script file.
NOTE
A script that is currently bound to a VIP port cannot be renamed.
Display script in the script directory
You can use the ls command to display all of the scripts in the script directory as shown.
Syntax: ls openscripts/dpscript/
VirtualADX# ls openscripts/dpscript/
Name Size Type Date
. 0 [Di] 10/06/2011 01:30:02
.. 0 [Di] 10/06/2011 01:30:02
READ_IP.PL 2113 [A ] 10/29/2011 01:22:02
HTTP_1.PL 4412 [A ] 10/29/2011 01:32:00
Size : 4102352896 bytes
Bytes Used : 249810944 bytes
Bytes Free : 3852541952 bytes