Script to Reboot a linux box from a windows box

HI All,

I need a script to reboot a linux box from a windows box.
The script needs to run automatically whenever a sitescope alerts with an error message.
Have searched for this in the forums, but could not get something relative.

Pls. let me know the various alternatives we have to do this.

Wud appreciate an early response.... :slight_smile:

Can you set up Sitescope to automatically run a script whenever an error event occurs?

If so, you can use cygwin - set up ssh keys, then have a script that calls shutdown -r now via ssh. Instead of setting up ssh keys for "root", implement sudo on your target Linux box, and have the ssh command call "sudo shutdown -r now" as a "regular" user.

Cheers
ZB

Thanks for the info. kevin.

Have not had a chance to work on CYGwin, but have spent sometime to find out the feasabilty.

Also, the job is done through the script alert option available in Sitescope, through which we can reboot [or run any intended script ]on remote linux, machine being monitored by sitescope.

The Script Alert is used to initiate the execution of a script or other program.
Script Alerts provide you with the capability to run automated recovery actions
based on particular monitoring results. This might include automatically rebooting a service or moving files.

Regular visit to this site is a great learning.

Thank you... :slight_smile: