Tech Tip : A script example to automate disable / enable specific Auto Operator

Document created by Yu_Ishitani Employee on Sep 21, 2018Last modified by Yu_Ishitani Employee on Sep 27, 2018
Version 3Show Document
  • View in full screen mode

A windows batch script example using probe_config_set callback to automate disable / enable specific Auto Operator.

In this example, Auto Operator "Test01" is disabled.



pu may simply crash if the latest pu package is not deployed. pu package is downloadable in the nimsoft archive.


REM --- NOTE ---
REM Please apply the latest pu package before running this script.
REM Without the latest pu package, pu will cause Application Error.


set UIMBIN="C:\Program Files (x86)\Nimsoft\bin"
set UIMUSER=administrator
set UIMPASS=xyz
set ROBOT=/LAB01/Primary_HUB/Primary_HUB_Robot/controller


%UIMBIN%\pu.exe -u %UIMUSER% -p %UIMPASS% %ROBOT% probe_deactivate nas
timeout /T 10
%UIMBIN%\pu.exe -u %UIMUSER% -p %UIMPASS% %ROBOT% probe_config_set nas "/auto_operator/definitions/Test01" active no "" ""
timeout /T 10
%UIMBIN%\pu.exe -u %UIMUSER% -p %UIMPASS% %ROBOT% probe_activate nas



If you want to activate the profile again, specify "Yes" in 4th argument (for probe_config_set) and run.