My operating system is centos6.4 Operating system: rhel6.2x86 _ 64 download and install putty software package, I downloaded the putty-0.62-1.el6.rf.x86_64.rpm as follows: http://rpm.pbone.net/index.php31?remote ?ip=file =root@localhost=] # Vimserv
My operating system is centos6.4
Operating system: rhel 6.2 x86_64
Download and install the putty software package, I download the putty-0.62-1.el6.rf.x86_64.rpm
Http://rpm.pbone.net/index.php3:
1. remote host IP list file
[Root @ localhost ~] # Vim server_list.txt
192.168.0.13
192.168.0.12
192.168.0.11
2. files of the operations to be performed on the remote host
[Root @ localhost ~] # Vim shutdown.txt
Shutdown-h now
3. remote shutdown automation script
[Root @ localhost ~] # Vim remote_shutdown.sh
For I in 'cat server_list.txt'
Do
Plink-l root $ I-pw redhat-m/shutdown.txt <
For example:
Vim remote_shutdown.sh
Plink-l root 192.168.0.12-pw password1-m/shutdown.txt
Plink-l jane 192.168.0.35-pw password2-m/shutdown.txt
Plink-l paul 192.168.0.77-pw password3-m/shutdown.txt
Plink-l root 192.168.0.19-pw password4-m/shutdown.txt (or plink root@192.168.0.19-pw password4-m/shutdown.txt)