The answer to an earlier question, Access and control home office network, iMacs, and XservesAccess and control home office network, iMacs, and Xserves, left me with a new problem. To review, I have a computing environment comprised of:
- 27" iMac with dual cores running Mac OS X 10.6.8
- 2 Xserves each with 2 quad cores running Mac OS X Server 10.6.8
- All networked over Ethernet to a Time Capsule.
As this question has more general application than the earlier one, I thought it merited its own post.
I need to launch and shut down a service (in my case Wolfram Lightweight Grid Manager but this really applies to any service, program, or application) which needs to run on a server (or more generally, any other machine) attached to my network (or again more generally, any network to which one has authorized access).
I need to have that script:
- Access and log on to 2 Xserves on my local network and there
- Launch a script on the Xserves that will in turn launch Wolfram Lightweight Grid Manager
Note: I have this script. It currently runs from launchd when I turn on the Xserves. I just need to control its running and ensure it is not running more frequently than needed so the Xserves can sleep (the grid manager appears to keep the Xserves from sleeping).
At some later point, I'll need to do the same thing as above, but turn off the service on the remote servers.
Q U E S T I O N S:
- How do I go about this?
- How do I get to a remote machine, especially as it does not likely have a fixed IP address?
I do have machine names and logon credentials.
I've very rarely done this sort of thing.
References or examples welcome.
My OS X server scripting never amounted to much, so any guidance welcome.