KB-127121: Scripting package examples

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:

Function ScriptBeforeCompare
{
provideArchive
unzip
}

```xml

###

## ScriptAfterUpload

This script triggers an automatic warning if no differences were detected **after a comparison** takes place. In order
to take effect, the script needs to be copied into the **Server scripting directory**.

Script:

```linenums="1"

Function ScriptAfterUpload
{
Warning.IfDateEqual
}

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


Last update: September 15, 2023

Related Articles

IMPRINT | PRIVACY POLICY | COOKIE POLICY

Privacy Preference Center