On Sun, 2003-08-24 at 10:43, Kanaga sabai wrote: > Hai > > we have five linux 7.3 machines. > > Our problem is when the power is down , we logon to > each system by rsh, and shut down the system using the > shutdown command as root. > > if anyone knows or having scripts to shutdown the > system from the remote machine > > or suggest how to shutdown all the systems from the > one machine without logon to other systems. > > thanks in advance
Setup ssh keys with null passphrases on your "master" machine. Concatenate the public key into the servers' /root/.ssh/authorized_keys files. From the master machine, you can now run the following command (via cron, command line, or shell script) to shutdown the remote systems non-interactively: ssh root@<server> 'shutdown -h now' If you're not familiar with setting up ssh keys, let me know. -- Jason Dixon, RHCE DixonGroup Consulting http://www.dixongroup.net -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list