UnitStateMonitor.vbs
UnitStateMonitor.vbs
Section titled “UnitStateMonitor.vbs”Description
Section titled “Description”The primary function of this script is to monitor the Unit state set by OSDgui.exe, and update this through the CiPrestage webservice. This is necessary since it is not possible to use a mapped drive to the management point.
The script requires that both CapaLib.cin and OsdLib.cin is initialized.
Script syntax and parameters
Section titled “Script syntax and parameters”The script is executed by the OSDPreGuiScript, and there are no parameters
Logfile
Section titled “Logfile”The script writes to the following logfile: X:\program Files\CapaInstaller\Client\logs\UnitStateMonitor.log
Source Code
Section titled “Source Code”Source code is available in TFS
Script outline
Section titled “Script outline”- Load the following scripting libraries
- Customlib.cis
- CapaLib.cin
- OsdLib.cin
- Initialize libraries
- Call Job_start()
- Call OSD_initialize()
- Start the monitoring process
- Call Internal_UnitStateMonitor()
- Close script
- Call Job_End()