How can I restart a probe On Interval or a Schedule?
search cancel

How can I restart a probe On Interval or a Schedule?


Article ID: 34349


Updated On:


DX Unified Infrastructure Management (Nimsoft / UIM)


How can I restart a probe on an interval?


Any NAS version


One method of restarting a probe on an interval involves the use of the nas probe with a script that is run on a scheduled interval.  The following steps outline how to perform this action using the nas.

Creating the script

  1. Open the nas GUI
  2. Click the Auto-Operator tab
  3. Click the Scripts sub-tab
  4. Right click in the file list window and and choose New -> Script
  5. Use the following code template, replacing "addr" and "probe" with actual values from your environment and save it.
addr = "/domain/hub/robot/controller"-- Build Nimsoft address for robot whose probe needs to be restarted
probe = "<probe_name>"-- specify the probe to be restarted
local args = pds.create()-- create data structure to pass arguments to probe callbacks
sleep(40000)-- 40 seconds delay between deactivating and activating the probe

Creating the schedule

  1. Click the Scheduler sub-tab
  2. Right click in the schedule list window and choose New
  3. Set Mode to "By Recurring Event"
  4. Set Operation to "Execute Script"
  5. Set the Start at date to a date in the past
  6. Set the time section to a starting time that is applicable to your needs
  7. Set Pattern to an interval period that is applicable to your needs
  8. Choose your script from the Script dropdown
  9. Click OK
  10. Enter a name for the schedule
  11. Right click on the schedule and click Activate
  12. Click Apply and Yes to restart the nas probe