Dear all ,
I have a script. this script called get.sh and can get some solaris infomation and save the result as result.tar.gz.
the problem is : we have 12 servers. every time. I need to login 12 server and do the same job 12 times.
master server
|
- - - - - - - - - - - - - - - - -
| | | |
slave1 slave2 slave3 slave n
my idea:
1. choose one server as master server, I just need to upload the get.sh to this server.
2. define slave server's ip, account in master server ,and save these infomation as account.cfg
3. master server can copy the get.sh to slave server
4.master server run the script in slave server.
5. master server get all infomation result.tar.gz and ftp to master server.
My question is about step 4.
How can I write a script to execute get.sh on slave server.
master ------------------------------->>> slave
another server needed? get.sh