• Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  • Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

Wake On Lan With FOG on Debian

Scheduled Pinned Locked Moved
FOG Problems
wol fog wakeonlan debian 8
3
3
2.2k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F
    fdrouard
    last edited by May 26, 2016, 11:13 AM

    Hello,

    We have a VM that run Debian 8.4 with FOG installed on it and another on Ubuntu.

    We have problems with the Wake On Lan on the Debian FOG but this is fonctionnaly on the Ubuntu FOG. We use it with a php script that permit to send broadcast on other vlans like below :
    <?php
    // Require FOG Base
    require(‘…/commons/base.inc.php’);
    try
    {
    $MACAddress = new MACAddress($_REQUEST[‘wakeonlan’]);
    if ($MACAddress->isValid())
    {
    $wol = new WakeOnLan($MACAddress->getMACWithColon());
    $wol->send();
    exec ( “/usr/bin/wakeonlan -i 172.18.19.255” . " " . $MACAddress ); #broadcast vers vlan eleves
    exec ( “/usr/bin/wakeonlan -i 172.18.25.255” . " " . $MACAddress ); #broadcast vers vlan profs
    exec ( “/usr/bin/wakeonlan -i 172.18.21.255” . " " . $MACAddress ); #broadcast vers vlan tertiaire
    }
    else
    throw new Exception($foglang[‘InvalidMAC’]);
    } catch (
    Exception $
    e){print $
    e->getMessage();}

    When I run wake on lan with ip adress broadcast parameter and mac adress, the magic packet wake the machine but when we run : http://10.149.11.67/fog/wol/wol.php?wakeonlan=F8:CA:B8:56:B7:8C, nothing is happening. The url send us a Not Found on this server.

    Can you have some ideas at this subject and can you help me ?

    Well cordially,
    DROUARD Florian

    T 1 Reply Last reply May 26, 2016, 5:37 PM Reply Quote 0
    • S
      Sebastian Roth Moderator
      last edited by May 26, 2016, 5:22 PM

      @fdrouard said:

      The url send us a Not Found on this server.

      Can you please take a picture of the error and post it here? Just guessing but maybe it means the wakeonlan binary is not found?! What do you get for ls -al /usr/bin/wakeonlan? Is the package wakeonlan installed on your debian system?

      Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

      Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

      1 Reply Last reply Reply Quote 0
      • T
        Tom Elliott @fdrouard
        last edited by May 26, 2016, 5:37 PM

        @fdrouard wol/wol.php path no longer exists.

        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

        Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

        Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

        1 Reply Last reply Reply Quote 1
        • 1 / 1
        1 / 1
        • First post
          3/3
          Last post

        150

        Online

        12.0k

        Users

        17.3k

        Topics

        155.2k

        Posts
        Copyright © 2012-2024 FOG Project