Skip to main content
replaced http://apple.stackexchange.com/ with https://apple.stackexchange.com/
Source Link

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.

The answer to an earlier question, Access 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.

The answer to an earlier question, Access 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.

deleted 36 characters in body; edited title
Source Link
Cajunluke
  • 17.7k
  • 7
  • 56
  • 73

How do I run an OS X command script on remote XServesXserves from a desktop OS X script?

The answer to an earlier question,

   Access and control home office network, iMacs, and XServesXserves

 , 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 and

    27" iMac with dual cores running Mac OS X 10.6.8
  • 2 XServes each with 2 quad cores running Max OS X Server 10.6.8

    2 Xserves each with 2 quad cores running Mac OS X Server 10.6.8
  • All networking by ethernet to a Time capsule.

    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...

    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

    Launch a script on the Xserves that will in turn launch Wolfram Lightweight Grid Manager

Note: I have this script. ItIt currently runs from LaunchDlaunchd when I turn on the XServesXserves. II just need to control its running and ensure it is not running more frequently than needed so the XServesXserves can sleep (the grid manager appears to keep the XServesXserves from sleeping).

At some later point, I'll then do a bunch of other stuff...

Then I 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? ;(

  • 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 log onlogon 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.

How do I run an OS X command script on remote XServes from a desktop OS X script?

The answer to an earlier question,

 Access 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 and

  • 2 XServes each with 2 quad cores running Max OS X Server 10.6.8

  • All networking by 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 not running more frequently so the XServes can sleep (the grid manager appears to keep the XServes from sleeping).

I'll then do a bunch of other stuff...

Then I 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 log on 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.

How do I run an OS X command script on remote Xserves from a desktop OS X script?

The answer to an earlier question,  Access 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.

Source Link
Jagra
  • 1.1k
  • 5
  • 19
  • 32

How do I run an OS X command script on remote XServes from a desktop OS X script?

The answer to an earlier question,

Access 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 and

  • 2 XServes each with 2 quad cores running Max OS X Server 10.6.8

  • All networking by 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 not running more frequently so the XServes can sleep (the grid manager appears to keep the XServes from sleeping).

I'll then do a bunch of other stuff...

Then I 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 log on 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.