DX Unified Infrastructure Management

 View Only
  • 1.  NAS script for Windows service start as an Auto Operator

    Posted Sep 29, 2017 02:51 PM

    Does anyone have a basic Windows Service start script for NAS that I can call as an auto operator?



  • 2.  Re: NAS script for Windows service start as an Auto Operator
    Best Answer

    Broadcom Employee
    Posted Oct 02, 2017 10:54 AM

    you could do something like

    <nas_cmd_test>
    active = yes
    action = command C:\Program Files (x86)\Another Space\nas.cmd
    overdue = on_arrival
    level = clear,information,warning,minor,major,critical
    visible = 0
    order = 5
    break = no
    </nas_cmd_test>

     

    nas.cmd:
    net start <ServiceName>



  • 3.  Re: NAS script for Windows service start as an Auto Operator

    Posted Oct 04, 2017 08:12 PM

    Works great for local, but not remote.



  • 4.  Re: NAS script for Windows service start as an Auto Operator

    Posted Oct 04, 2017 08:47 PM

    I would use a batch or VB script on the remote system via an nexec profile and then use LUA to execute the nexec profile through a callback. Or if the ntservices probe is deployed, use its callbacks to restart the service.