|
|
To execute something on all of the srsh-registered machines:
- log into "bounce.acs" under the "srsh" account. You'll need to walk down to the machine room to do so, even tho it runs unix.
- examine the files example and run - especially example, which does a uname -a on the first 10 registered hosts. The (seeming) lack of a space inside example is not a typo.
- Create a file in the lib directory, that contains the bourne shell commands you wish to execute on remote hosts. There are example scripts there. For the sake of this discussion, call it warble.
- Look at your script again. Be careful. You lose many points if your script goes wild. Assume as little as possible. Don't assume the initial CWD will always be /. Your commands will be taken from a socket (which will look like almost any other stdin) and ferried into a copy of /bin/sh; Don't bother trying to run interactive programs.
- rm output/generic/*. This is the directory where your output will end up. You may assume any information left around in there can be trashed; if you need to keep something, copy it elsewhere. There is a facility for specifying another output directory, exemplified in run.
- ./srsh -l | ./run warble. This tells srsh to list all the hosts it knows about, and hence tells run to execute warble on each of them.
- Wait. You should see a list of hosts going by. These are the machines on which your job is being executed.
- Examine the content of output/generic/*. There should be one file for each host contacted. classify is sometimes very helpful for categorizing the output.
http://www.nacs.uci.edu/support/dcs/automation/using-srsh.html
|