DX Unified Infrastructure Management

 View Only
Expand all | Collapse all

UIM: Callbacks to put robot in maintenance?

  • 1.  UIM: Callbacks to put robot in maintenance?

    Posted Mar 27, 2017 04:05 PM

    Is there a callback(s) I can use to put a server in maintenance such that the ntservices and processes probes will not attempt to restart services/processes?  



  • 2.  Re: UIM: Callbacks to put robot in maintenance?
    Best Answer

    Broadcom Employee
    Posted Mar 28, 2017 03:11 AM

    you can try this via the command line pu.exe (found in C:\Program Files (x86)\Nimsoft\bin), using the following command:

    pu.exe -u administrator -p <password> /domain/hub/robot/controller maint_until 13225022908 "maintenance" 13225012908

    The constructor for the maint_util call in 'pu.exe' looks like this:
    maint_until (until%d,for%d,comment,from%d1)

    So, you could script pu.exe calls for the maint_until callbacks to the relevant robot using the epoch time stamp. Please be aware that this will only put this specific robot (and the probes on that robot) into maintenance. It will not affect any remote probes (such as net_connect) that have profiles running against this target, these would still send alarm / qos as normal.

    To be able to put everything targeting a specific host into maitenance, you need to either use the Rest API call backs (webservices_rest) or use the USM ad-hoc maintenance functionality (i understand the latter is not an option here).

     

    Kind regards,

    Britta Hoffner



  • 3.  Re: UIM: Callbacks to put robot in maintenance?

    Posted Mar 28, 2017 09:21 AM

    Thank you, Britta!