This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

wol with script from astaro?

hi guys!

again a strange question from me...
is it possible to launch a (e.g. perl) script via ssh on the asl, that broadcasts the magic paket over my network, so that all or certain machines will boot up?

it would be *very* helpfull for me

thanks in advance
guybrush


This thread was automatically locked due to age.
Parents
  • Does ping not do the trick?

    Easiest thing would be to get a statically compiled linux executable that sends the WOL packet, and put it on your ASL box.
    BUT I'm not sure if the packetfilter would allow the packet, as it's probably not TCP or UDP. Maybe you can create some rules to allow it.

    Barry
Reply
  • Does ping not do the trick?

    Easiest thing would be to get a statically compiled linux executable that sends the WOL packet, and put it on your ASL box.
    BUT I'm not sure if the packetfilter would allow the packet, as it's probably not TCP or UDP. Maybe you can create some rules to allow it.

    Barry
Children
  • @secapp:
    no, pxe is something different. is uses dhcp (i have static adresses), and provides the clients with a boot image or something similar.
    never needed that...

    @barrygould:

    no, ping is not enough.
    thats a special udp paket (makes adding a rule an easy task), wich contains 6 times the sequence FFh and 16 (or 14) times the NICs mac-adress (done through sending the packet to the broadcast adress or static mac-entries...)
    my internal ip is 10.100.1.1, so a rule from 10.100.1.1 to internal(network) should do the job...

    is it possible to execute your own perl script oder executeables on an astaro-box (never tried and never needed) or does the astaro prevents this?

    greetz
    Guybrush
  • Yes, you can login via SSH and run your own stuff.
    (use SCP to upload files)

    However, this will probably void your Astaro support contract.

    Astaro has Perl 5.0, however it doesn't have many of the common Perl libraries.

    You can also run linux executables. You may need statically compiled executables though.

    If you get it working, post details here as I've seen other people ask about this feature before.

    Barry
  • Rather than code up Perl, I would just use the netcat utility; that's what it's for...
  • Rather than use the netcat utility, I would just use  ether-wake ; that's what it's for :-)

    P.S.: try it and post your results here. I don't know anyone using this, so it might work or not, who knows ...
  • I was just thinking in terms of what was likely to already be on Astaro 5; but maybe netcat isn't?
  • It is; netcat and ether-wake are both shipped on the ASL V5. And although I'd prefer ether-wake for that purpose it can't hurt to know about netcat. Great all-purpose network tool, so it is a definitely a good hint, too.
  • Huh, ether-wake is in there too; somebody was thinking ahead...