Forum Discussion

gusf_139367's avatar
gusf_139367
Icon for Nimbostratus rankNimbostratus
Dec 07, 2013

Reboot a windows node from LTM

Guys, I would like to be able to reboot my nodes (win 2008) using any type of monitor or irule. This will occur as soon as the node has been marked as down by another already in place monitor.

 

Any ideas will be really appreciated.

 

Thanks...

 

3 Replies

  • You'll need a listening on the Windows hosts that speaks a protocol you can originate from LTM - REST or telnet most likely. You may want to look up iCall before doing this in a monitor too. From a monitor or iCall script it should be straightforward enough to use Curl or telnet (or SSH if there's a windows SSH daemon you can install) to issue a shutdown -r or equivalent.

     

  • Thanks Simon, I am new to this do you have a piece of code that could do that?

     

  • Gusf,

     

    I assume you want to do this to restart a service or clear out the memory on the windows host? The problem is depending on what the failure is the LTM might not have access to the windows box.

     

    I would have some sort of script (probably powershell) on the windows host that monitors the status of a service/memory/etc... and when that passes a certain threshold then you can reboot the box or have it issue a command to restart the service. This would also down the node in the LTM if you have proper monitors in place.

     

    Hope this information helps and if not please let us know and give us a few more details on what you are wanting to reboot the device for so we will know what is potentially available on the device to use.

     

    Regards,

     

    Seth