Hi Garin,
I'm trying to create this package and getting issues as well. I setup 3 tabs, one for updating the robot tags, then Windows | Linux tab.
Windows Tab > Miscellaneous Tab:
Post Install Command:
sc config "NimbusWatcherService" start=disabled & sc stop "NimbusWatcherService"
Tried deploying to a test robot box and didn't work. Controller log getting:
Nov 4 12:32:41:161 [9464] 3 Controller: inst_execute: install section Win-Remove in package __Uninstall_Robot__
Nov 4 12:32:41:161 [9464] 2 Controller: copy_file - copying robot/pkg/inst/installed.pkg to robot/pkg/inst/installed.pkg-
Nov 4 12:32:41:161 [9464] 2 Controller: MyStringExpand (sc config "NimbusWatcherService" start= disabled & sc stop "NimbusWatcherService")...
Nov 4 12:32:41:161 [9464] 2 Controller: Preparing to run post-install 'sc config "NimbusWatcherService" start= disabled & sc stop "NimbusWatcherService"'
Nov 4 12:32:41:192 [9464] 2 Controller: post-install 'sc config "NimbusWatcherService" start= disabled & sc stop "NimbusWatcherService"' started
Nov 4 12:32:41:208 [9464] 3 Controller: inst_execute: sending reply rc=0(OK)
Nov 4 12:32:41:239 [9464] 1 Controller: inst_file_start - package=__Uninstall_Robot__, file=robot.cfx, type=config
Nov 4 12:32:41:270 [9464] 1 Controller: inst_file_end - package=__Uninstall_Robot__, file=robot.cfx, bytes=111
Nov 4 12:32:41:286 [9464] 3 Controller: RREQUEST: inst_ready <-10.244.10.92/53284 h=293 d=0 fd=728
Nov 4 12:32:41:286 [9464] 2 Controller: Process 'sc config "NimbusWatcherService" start= disabled & sc stop "NimbusWatcherService"' (11444) is finished
Nov 4 12:32:41:286 [9464] 0 Controller: post-install 'sc config "NimbusWatcherService" start= disabled & sc stop "NimbusWatcherService"'
returned 1639
1639 is a permission related issue.
Since MSP's will definitely run across some permission issues when trying to run any commands what if we just switch the robot to '
passive' mode?
Can someone explain what exactly is 'passive' mode? Since the old doc site is down and the new site you cannot search I can't find anything to reference on what exactly 'passive' means?
On the test box above, i set it to passive and its now gone from IM. Where did it go? I've never dealt with robot mode passive only normal. In what situations would you use 'passive'?
------------------------------
Daniel Blanco
Enterprise Tools Architect
Alphaserve Technologies
------------------------------
Original Message:
Sent: 05-19-2018 11:16 AM
From: Garin Walsh
Subject: Re: Is it possible to stop/disable the robot watcher service from the REST Web Services API?
We addressed this by creating an archive package with nothing in it but two tabs, windows and linux filters on OS. the post install command on each is, respectively
sc config "NimbusWatcherService" start= disabled & sc stop "NimbusWatcherService"
( /opt/nimsoft/bin/niminit stop ; /opt/nimsoft/bin/inst_init.sh remove )
Then you can use REST to deploy the package to the desired robot you want to disable.
Works too well so be careful. You get that disgruntled or careless employee that drops this at the domain level in IM and you're toast - one can only hope that the system with distsrv on it gets terminated early in the process or you have a lot of work to do to clean up.
-Garin