UnitStateMonitor.vbs
UnitStateMonitor.vbs
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
The script is executed by the OSDPreGuiScript, and there are no parameters
Logfile
The script writes to the following logfile: X:\program Files\CapaInstaller\Client\logs\UnitStateMonitor.log
Source Code
Source code is available in TFS
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()