Brocade Communications Systems ServerIron ADX 12.4.00 Service Manual Page 25

  • Download
  • Add to my manuals
  • Print
  • Page
    / 34
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 24
ServerIron ADX OpenScript Guide 15
53-1002445-01
Compiling and binding scripts
3
Syntax: rename usb0\sys\dpscript\ <initial-script-name> usb0\sys\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 dir command to display all of the scripts in the script directory as shown.
ServerIronADX# dir usb0\sys\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
ServerIronADX
Syntax: dir usb0\sys\dpscript
Compiling and binding scripts
Once a script has been copied to ServerIron ADX you must compile it before it can be run. After the
script is compiled, it is ready to run on the ServerIron ADX but it must be bound to a VIP that you it
to operate on. Unless a script is explicitly bound to a VIP it will not effect traffic on the ServerIron
ADX.
This script compile can be done by itself, within the bind operation, or within the process of
updating an existing script. The following is the recommended sequence for binding and
maintaining a script:
1. “Compiling a script and obtaining output from the performance estimator” – We recommend
that you compile a new script using the script compile command before binding it to a virtual
server port. This allows you to make sure that the script compiles successfully and gives you an
estimate of script performance using the Performance Estimator. Once the script is performing
up to your expectation, you can run bind it to the virtual server port.
2. “Binding a script to a virtual server port”The script binding operation compiles the script
unconditionally and then enables it for packet processing on a specified server port or service.
If compilation errors occur, they are printed to the console or syslog and the bind operation is
aborted.
3. “Updating an existing script”– Once a script has been running, you can make changes to it and
replace it all instances of it in a running configuration. This process compiles the script
unconditionally and if the compile is successful, unbinds the old version from previously bound
virtual server ports and then binds the new script to the same ports.
Page view 24
1 2 ... 20 21 22 23 24 25 26 27 28 29 30 ... 33 34

Comments to this Manuals

No comments