UIM 20.3 How to restart all robots under a hub.

book

Article ID: 205936

calendar_today

Updated On:

Products

CA Unified Infrastructure Management On-Premise (Nimsoft / UIM) NIMSOFT PROBES DX Infrastructure Management

Issue/Introduction

The hub is not showing the robots correctly and need to rebuild the hub's robot.sds. 

How can all the robots be restarted quickly so they register back to the hub. 

Environment

Release : 20.3

Component : UIM - ROBOT

Resolution

Get the full list of all the robots you need to restart in the /domain/hub/robot list format. 
You can do this from within IM, Tools > Find all robots. 
Export to excel.
Then remove all columns except the robot address one. 
Add the following in the column before the robot address column: 
"pu -u administrator -p password "  
Next column is the robot address: 
/domain/hub/robot1
Then in the column after the robot address put: 
" _restart"
Take note of the spaces.
Then copy this all out to say notepadd++, get rid of the tabs (Ctrl+H). 
Then run from the hub's \Nimsoft\bin directory via administrative cmd line.
Test with the command:
pu -u administrator -p password /domain/hub/robot01 _restart

Once verified it works copy/paste the rest of them into the command line and be done with it.