Remote sleep and reboot

Feb 1, 2008 at 1:37pm

Remote sleep and reboot

Hi everyone!

I’m running 10 MacMinis in an exhibition.
For more control I want a central computer, running a MAX patch. It should be able to remotely restart them and put them to sleep, individually. Can MAX do such a thing?

greets
Woody

#35616
Feb 1, 2008 at 2:24pm

#121553
Feb 1, 2008 at 2:24pm

max can send shell commands via the shell object.

http://www.cycling74.com/twiki/bin/view/Share/JeremyBernstein

On Feb 1, 2008, at 8:37 AM, Wouter Verbiest wrote:

>
> Hi everyone!
>
> I’m running 10 MacMinis in an exhibition.
> For more control I want to build a central computer, running a MAX
> patch. It should be able to remotely restart them and put them to
> sleep, individually. Can MAX do such a thing?
>
> greets
> Woody

#121554
Feb 1, 2008 at 2:53pm

#121555
Feb 1, 2008 at 3:53pm

Interesting.
I just hooked my Macbook to my PC using a basic switch.
Then I installed the aka.power external (http://www.iamas.ac.jp/~aka/max/#aka_power) on my MacBook.

Via udpsend and udpreceive I sent the Macbook a “sleep” message on its correct host and port, which got routed to the aka.power object. And so it went to sleep…
Very nice, and very simple. But now, how do I wake it up using MAX?

I am not a big programmer, so, any simple suggestions?

#121556
Feb 1, 2008 at 4:34pm

#121557
Feb 2, 2008 at 10:57am

On 1-feb-2008, at 16:53, Wouter Verbiest wrote:

>
> Interesting.
> I just hooked my Macbook to my PC using a basic switch.
> Then I installed the aka.power external (http://www.iamas.ac.jp/
> ~aka/max/#aka_power) on my MacBook.
>
> Via udpsend and udpreceive I sent the Macbook a “sleep” message on
> its correct host and port, which got routed to the aka.power
> object. And so it went to sleep…
> Very nice, and very simple. But now, how do I wake it up using MAX?

you might try to wake the mac using “wake on LAN”

http://en.wikipedia.org/wiki/Wake-on-LAN

also be sure to check your system preferences > energy saver >
options > wake options
and check “wake for ethernet network administrator access” on the mac
minis you want to wake up

HtH
-jennek

#121558
Feb 2, 2008 at 12:56pm

Does anyone know how to send a Wake-on-lan message/package using MAX?

#121559
Feb 3, 2008 at 4:30am

Hi,

On 2008/02/02, at 19:57, jennek geels wrote:

> you might try to wake the mac using “wake on LAN”
> http://en.wikipedia.org/wiki/Wake-on-LAN

It’s useful information.

I success it with aka.datagram & udpsend.
Check the attached patch.

Of course, you have to change ‘MAC address’ and ‘Broadcast address’ as
your network environment.

Thanks,
Masayuki

#121560
Feb 3, 2008 at 7:54pm

Thanks Masayuki!

But..what attached patch do you mean…?

#121561
Feb 4, 2008 at 12:23am

On 2008/02/04, at 4:54, Wouter Verbiest wrote:

> But..what attached patch do you mean…?

You can wake another sleeping Mac (maybe PC too) up with that patch.
(I made spelling mistakes. sorry)

Connect two computers to LAN ( with Ehternet cables ).
Change the message to a sleeping computer’s MAC address ( of Ethernet
chip ).
MAC address is normally expressed in a hexadecimal with colon ( ex.
00:0a:95:c4:a9:56 ) but you have to express it in a decimal and comma
( ex. 0, 10, 149, 196, 169, 86 ) in this patch.
And click the button.

The broadcast address 255.255.255.255 will work but it’s better to
change it according to your subnet address. Don’t change the port
number 6.

Cheers,
Masayuki

#121562
Feb 4, 2008 at 12:32pm

On 3-feb-2008, at 20:54, Wouter Verbiest wrote:
> Thanks Masayuki!
> But..what attached patch do you mean…?

Patches attached to the mailing list do not make it to the forum,
if I remember correctly.

here is the text version of the patch that Masayuki posted.

to quickly input the mac address in hexadecimal, use numbox with its
display style set to hex.

-jennek

max v2;
#N vpatcher 20 74 394 378;
#P window setfont “Sans Serif” 9.;
#P window linecount 2;
#P comment 185 210 113 196617 < - Broadcast address and por 6;
#P window linecount 1;
#P newex 47 210 138 196617 udpsend 255.255.255.255 6;
#P message 96 142 133 196617 0 , 10 , 149 , 196 , 169 , 86;
#P newex 96 94 40 196617 uzi 16;
#P newex 145 94 40 196617 uzi 6;
#P message 194 94 33 196617 clear;
#P button 47 40 15 0;
#P newex 47 68 159 196617 b 4;
#P message 145 119 26 196617 255;
#P newex 47 183 69 196617 aka.datagram;
#P comment 62 41 100 196617 Wave up !;
#P window linecount 2;
#P comment 229 142 100 196617 < - MAC address of the target computer;
#P connect 5 0 4 0;
#P fasten 6 0 2 0 199 172 52 172;
#P fasten 3 0 2 0 150 172 52 172;
#P fasten 9 0 2 0 101 172 52 172;
#P fasten 4 0 2 0 52 124 52 124;
#P connect 2 0 10 0;
#P connect 4 1 8 0;
#P connect 8 0 9 0;
#P connect 4 2 7 0;
#P connect 7 0 3 0;
#P connect 4 3 6 0;
#P pop;

#121563

You must be logged in to reply to this topic.