I need a Script to rsh multiple hp boxes and shutdown


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting I need a Script to rsh multiple hp boxes and shutdown
# 1  
Old 05-06-2006
I need a Script to rsh multiple hp boxes and shutdown

Hello I'm serving on a ship that has frequent power issues. Currently if we loose power we need to rush around to multiple UNIX machines and login to Sysadmin and power down each machine before we loose our ups. If sysadmin is asleep or not in the space we have some real problems. I would like to see script that remotes logs into each machine issuing the shutdown command. This way i could log into only one sysadmin on a machine and then automatically shutdown the rest. Any help will be appreciated.
# 2  
Old 05-08-2006
Here is a script that logs into different boxes to change the password:
changepass automate password changes on multiple systems

Most UPS systems have a monitor port which can be read with a serial connection. The system can monitor this and shut itself down when there is a power problem. Do you have any indicator which you can monitor? That might be a better approach.
# 3  
Old 05-09-2006
Because you specificly mention HP boxes, you may have another solution. HP has a package called Service Control Manager. It comes with HP-UX 11i. I understand that clients are available for 11.0 and 10.20 as well. I think it can do what you want; however, I have never used it.

Servicecontrol Manager User's Guide
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Need a script to scp a file to multiple boxes

Hello All, I am new to scripting and I am trying to write a script which can scp a file from one box to multiple boxes. I am thinking to do like this. 1) create a file with list of all server names 2)write a script which will pick up each server line by line from server list and copy it to... (1 Reply)
Discussion started by: sintilash
1 Replies

2. Shell Programming and Scripting

Shell script to login into multiple linux boxes

I have requirement to login into a multiple linux boxes by running the shell script in a single linux box and to find the count of files in a specific folder in each box and log them in a log file in the box where i m runnning the script. Box names will be stored in a text file host.txt. Please... (2 Replies)
Discussion started by: Mani2512
2 Replies

3. UNIX for Dummies Questions & Answers

Script to force Oracle database shutdown when shutdown immediate does not work

I have Oracle 9i R2 on AIX 5.2. My Database is running in shared server mode (MTS). Sometimes when I shutdown the database it shutsdown cleanly in 4-5 mints and sometimes it takes good 15-20 minutes and then I get some ora-600 errors and only way to shutdown is by opening another session and... (7 Replies)
Discussion started by: aixhp
7 Replies

4. Red Hat

rsh denied on some boxes but not others

Hi. As root, I'm running rsh as root from a Solaris 9 machine to some RHEL 4 servers (supposedly all configured identically) but two of about 10 respond with permission denied. There is no firewall device between the Solaris 9 client and the RHEL servers. I'm doing something like this from the... (4 Replies)
Discussion started by: th1amigo
4 Replies

5. UNIX for Advanced & Expert Users

Multiple ssh, shutdown and exit script

PROBLEM: I need to ssh into multiple remote machines, send a shutdown command and exit. The remote servers will then run their own scripts to gracefully shutdown their applications before shutting down. ONE: This is to be achieved without using public key authentication; this is being avoided... (2 Replies)
Discussion started by: ulemsee
2 Replies

6. Linux

how to install rsh in linux boxes

Hi All, Please help me how to install and configure rsh in Linux boxes and let me know where i get this software. Thanks in advance... Regards, Sridhar. (3 Replies)
Discussion started by: sridhusha
3 Replies

7. Shell Programming and Scripting

running multiple rsh command in a script

hi scripting experts, juz wondering if it's possible to have multiple rsh command in a single script? :confused: ie: rsh -l <username> "<command>" rsh -l <username> "<command>" thanks. regards, wee :) (0 Replies)
Discussion started by: lweegp
0 Replies

8. UNIX for Dummies Questions & Answers

Getting one script to run on multiple boxes

I have a script that generates an output file after pulling data from a local DB on one of my boxes. There are other nearly-identical boxes on the network, each with their own local DB, and I'd like to run the script there too. Copying the script to each box and then running them individually... (11 Replies)
Discussion started by: bschnair
11 Replies

9. Shell Programming and Scripting

Multiple rsh in a script not working

Hi, From one of the unix servers i want execute an rsh command to 5 different servers. i want to go to these servers execute a command and come back. i have a main program which calls a function, where in i use the rsh command. The server name is passed as a parameter to teh function. it is... (3 Replies)
Discussion started by: praphul
3 Replies
Login or Register to Ask a Question