Scripting package examples
General examples
ScriptBeforeCompare
This script automatically unzips ZIP files before the comparison, so that they can be compared. The script needs to be copied into the Server scripting directory for automatic update of client in order for it to take effect.
Script:
ScriptBeforeUpload
This script triggers a ping command before an upload job to the IP address of a controller, in order to determine whether the controller can be reached. In order to take effect, the script needs to be copied into the Server scripting directory.
Script:
“`linenums=”1″
Function ScriptBeforeUpload { ///////////////////////////////////////////////// //ping has three parameters: //Ip :<IP>
requirement // Loop :<Number of repeats optional, Default = 1 //Sleep:<Milliseconds, waiting time after a ping>
optional, Default = 0;
ping Ip:$vdog::uploadjob->5002 loop:3 sleep:3000
///////////////////////////////////////////////// }
“`xml