Script to Reboot a linux box from a windows box

Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Script to Reboot a linux box from a windows box
# 1  
Old 07-16-2006
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.... Smilie
# 2  
Old 07-16-2006
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.

# 3  
Old 07-17-2006

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... Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. How to Post in the The UNIX and Linux Forums

Copying , renaming the file from windox box and ftp to Linux box

Hello my dear friends, Two file are auto generated from mon - fri at different directories on same windows box.Every day i have to copy the file, rename it (specific name)and ftp it to linux box specified directory. is it possible to automate this process,If yes this has to be done from windows... (1 Reply)
Discussion started by: umesh yadav
1 Replies

2. Shell Programming and Scripting

Notify when the script run(hourly)on my jump-box only when there is a failure on my remote-box

Team, Presently I have a script, which i have set up cron on one of my Jump-boxes,and gives me the output on every hourly basis,fetching the data from the remote machine.Basically it gives me the list of all active users logged and its count once we execute the script.Here the count is... (6 Replies)
Discussion started by: whizkidash
6 Replies

3. Red Hat

How to access redhat Linux box graphically from windows box?

Hi I have a linux box and need to access from windows graphically # uname -a Linux pc-l416116 2.6.18-155.el5 #1 SMP Fri Jun 19 17:06:47 EDT 2009 i686 i686 i386 GNU/Linux What components do I need to install on Linux and windows to do that? TIA (6 Replies)
Discussion started by: magnus29
6 Replies

4. Windows & DOS: Issues & Discussions

psftp from linux box to windows

Hi all pro I had a script from windows to put diff file from the linux box but i had stuck on it ,how to play around with the %1 @echo off "C:\putty\psftp" linux@ -pw password -bc -b getfile.scr --getfile.scr lcd "C:\DATA" cd logs/ mget %1 Thanks jiajin (0 Replies)
Discussion started by: lijiajin
0 Replies

5. Shell Programming and Scripting

ftp file starting with particular name on Windows box to Unix box using shell script

Hello all ! I'm trying to write a shell script (bash) to ftp a file starting with particular name like "Latest_" that is present on a Windows box to UNIX server. Basically I want to set this script in the cron so that daily the new build that is posted on the Windows box can be downloaded to the... (2 Replies)
Discussion started by: vijayb4u83
2 Replies

6. UNIX for Dummies Questions & Answers

I need an scp command from a unix box to a windows box.

scp file="myfile.txt" todir="user@somehost:(M:drive:/somepath/)"/ Not sure I need it to go to a specific drive on the windows box (1 Reply)
Discussion started by: xgringo
1 Replies

7. Shell Programming and Scripting

Moving files from Unix box to a windows box

Hi All, I need a little help .I want to transfer a file from unix box to a windows box,but the problem i'm facing is that in windows box FTP is not enabled and currently it is nearly impssible to change setting on windows box,i can not use the ftp method ,in my shell script to transfer the file.... (2 Replies)
Discussion started by: Preet
2 Replies

8. UNIX for Dummies Questions & Answers

Running UNIX commands remotely in Windows box from Unix box avoid entering password

I am able to run the UNIX commands in a Windows box from a UNIX box through "SSH" functionality. But whenever the SSH connection is established between UNIX and Windows, password for windows box is being asked. Is there a way to avoid asking password whenever the SSH connection is made? Can I... (1 Reply)
Discussion started by: D.kalpana
1 Replies

9. Shell Programming and Scripting

FTPing from unix box to windows box.

Hi All, I need to know if it is possible ftping files from unix box to windows box . if yes , how ?. Is there any pre-requisits. Please tell me the steps, this is very urgent. Thnx Aru (8 Replies)
Discussion started by: aarora_98
8 Replies

10. UNIX for Advanced & Expert Users

VPN client (windows Box),and Server (Unix Box)

If I want to access unix box via VPN tunnel,from windows box. What sould I configure on the windows client PC, and what should I enable on the Unix Server box ? I am using Solaris V10 intel platform, and I am using windows XP, and 2003 for client (0 Replies)
Discussion started by: zillah
0 Replies
Login or Register to Ask a Question

Featured Tech Videos