Results 1 to 8 of 8

Thread: Send WOL requests?

  1. #1

    Default Send WOL requests?

    I'm new to girder and I'm wondering if there's a way I can send a wake on lan request to turn on a remote computer within the network? Also is it possible to send a sleep/turn off command to it?

  2. #2
    Join Date
    May 2004
    Location
    Cardigan, UK
    Posts
    9,278

    Default

    Yes, you can do this - you'll need to create a scripting action and use the win.WakeOverLan() function to send the WOL request. See the help under Lua Library Reference|win Library|Network Functions.

    The easiest way to send another PC to sleep is to have that PC running Girder too and sending it an event using the Girder to Girder|Remote Event action.

    Other than that you may be able to do it using WMI, but that's getting quite advanced, and I for one find WMI a bit of a pain to get working properly.
    --Rob

  3. #3
    Join Date
    Mar 2008
    Location
    Nottingham, England
    Posts
    406

    Default

    Hi Rob,

    can you explain that in my terms please... (step by step)


    cheers

    Mark
    some people learn by writing, some by reading, some by listening and some by doing?...me I'm not learning at all

  4. #4
    Join Date
    May 2004
    Location
    Cardigan, UK
    Posts
    9,278

    Default

    Which bit do you want explaining? I'll assume the WOL one for now.

    First thing is to add a scripting action to your GML (you'll need to be in Expert mode for this).

    Type something like this:

    Code:
    win.WakeOverLan('192.168.0.255', "00:19:DB:29:9E:AA")
    The first parameter is the broadcast address for your network and depends on how your network is set up. The 255 there is the broadcast part.

    The second parameter is the MAC address of the network card that has WOL set to wake the PC with a magic packet.
    --Rob

  5. #5

    Default

    I setup the WOL but can't seem to figure out the girder to girder setup.

    If I want it to shutdown what do I write in the Remote event?
    Do I put it in the event string or one of the payloads?

    Thanks

  6. #6
    Join Date
    May 2004
    Location
    Cardigan, UK
    Posts
    9,278

    Default

    I would just send an event like 'SHUTDOWN' then have Girder on the other PC respond to that event with a shutdown action.
    --Rob

  7. #7

    Default

    So in the event string write 'SHUTDOWN' then it will create an even on the other girder?

    I tried a bunch of stuff but couldn't geto one to talk to the other.

  8. #8
    Join Date
    May 2004
    Location
    Cardigan, UK
    Posts
    9,278

    Default

    Make sure you have the Girder2Girder plugin enabled on both computers. Component Manager|Communications|Girder to Girder - ensure that all 3 checkboxes are checked, refresh the client list to make sure you have a connection. You may also want to try pre-registering the connection to the client computer
    --Rob

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •