DX Infrastructure Management

BAT - niscache cleanup & robot ID reset 

Feb 24, 2017 01:26 AM

Here is a sample BAT which does 3 things for all standalone UIM Robot devices in your environment. 


- Rebuild of niscache.

- Rebuild of Robot Device ID. 

- Device Removal from USM.


REM =================================================================================
REM ===== Update "PU" (path to pu.exe) to fit your environment. =====================
REM ===== Update "UIMPASS" (password) to fit your envirnment. =======================
REM =================================================================================

ROBOT_LIST=robot_list.txt
ROBOT_CSKEY_LIST=robot_cskey_list.txt
set PU="C:\Program Files (x86)\Nimsoft\bin\pu.exe"
set UIMUSER=administrator
set UIMPASS=password

for /f %%a in (%ROBOT_LIST%) do (
%PU% -u %UIMUSER% -p %UIMPASS% %%a/controller _nis_cache_clean NULL NULL
%PU% -u %UIMUSER% -p %UIMPASS% %%a/controller _reset_device_id_and_restart NULL
)

for /f %%b in (%ROBOT_CSKEY_LIST%) do (
%PU% -u %UIMUSER% -p %UIMPASS% discovery_server remove_master_devices_by_cskeys %%b
)

REM =================================================================================



Pre-Requiste

1. Create list of UIM Address for all standalone UIM Robot Devices, save it into file, name the file "robot_list.txt"
For example, the following SQL will create the list.

select address from CM_NIMBUS_ROBOT where is_hub = 0

2. Create list of UIM Internal Device Key for all standalone UIM Robot devices, save it into file, name the file "robot_cskey_list.txt"
For example, the following SQL will create the list.

select cs_key from CM_COMPUTER_SYSTEM where nimbus_type = 1


SCRIPT NOTES

Update the script with actual pu.exe path to fit your environment.
Update the script with actual UIM user password to fit your environment.

UIM hub device is excluded intentionally.

Statistics
0 Favorited
38 Views
1 Files
0 Shares
14 Downloads
Attachment(s)
txt file
niscache_clear_v5.txt   930 B   1 version
Uploaded - Jun 10, 2019

Related Entries and Links

No Related Resource entered.