DX Infrastructure Management

 View Only

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

Sep 21, 2018 09:02 AM

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.

 

NOTE

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.

Statistics
0 Favorited
1 Views
1 Files
0 Shares
0 Downloads
Attachment(s)
zip file
PU_TEST.BAT.txt.zip   473 B   1 version
Uploaded - May 29, 2019

Related Entries and Links

No Related Resource entered.