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

WOL

Scheduled Pinned Locked Moved Unsolved
FOG Problems
5
36
15.8k
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.
  • A
    adukes40
    last edited by Oct 1, 2016, 3:31 PM

    Server
    • FOG Version: RC-11
    • OS: Unbuntu 14.04
    Client
    • Service Version: 11.5
    • OS: Win7
    Description

    WOL doesn’t seem to be working at remote sites (haven’t been able to test at master using GUI)

    I installed the wakeonlan program on the remote server, and was able to WOL by typing in the MAC address. But it would not if I set a WOL task from the GUI

    I also installed the WOL program on the master. I remoted in and shutdown a machine, then sent the WOL from the master server, and it seemed to work. However, like I said I have not been able to test sending it from the server yet. (might get to later tonight).

    So I seems like my network is passing WOL packets, and clients seem to be waking, but not from the tasks created in the GUI.

    1 Reply Last reply Reply Quote 0
    • W
      Wayne Workman
      last edited by Oct 1, 2016, 6:09 PM

      This URL is how you would test FOG’s WOL abilities directly.

      http://x.x.x.x/fog/management/index.php?sub=wakeEmUp&mac=aa:bb:cc:dd:ee:ff

      Replace the Xs with the main fog server’s IP, and replace the MAC. When you call that URL with a browser, FOG will send a WOL out from every server to the MAC you put in.

      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!
      Daily Clean Installation Results:
      https://fogtesting.fogproject.us/
      FOG Reporting:
      https://fog-external-reporting-results.fogproject.us/

      A 1 Reply Last reply Oct 1, 2016, 10:31 PM Reply Quote 0
      • A
        adukes40 @Wayne Workman
        last edited by Oct 1, 2016, 10:31 PM

        @Wayne-Workman When I type that in, nothing happens.

        http://10.103.72.49/fog/management/index.php?sub=wakeEmUp&mac=b8:ac:6f:3d:6e:a4 = nothing

        SSH into 72.49, run WOL to the remote host = nothing

        SSH into the remote node, run WOL = turns on.

        T 1 Reply Last reply Oct 2, 2016, 2:23 AM Reply Quote 0
        • T
          Tom Elliott @adukes40
          last edited by Oct 2, 2016, 2:23 AM

          @adukes40 What ports are you blocking for UDP?

          WOL is a broadcast layer item meaning it works from Layer 2. However, it’s also based on UDP and in particular FOG uses port number 9.

          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

          A 1 Reply Last reply Oct 2, 2016, 2:28 AM Reply Quote 0
          • A
            adukes40 @Tom Elliott
            last edited by Oct 2, 2016, 2:28 AM

            @Tom-Elliott far as I know, it shouldn’t be blocked. Is there a way I can tell on the Linux box?

            T 1 Reply Last reply Oct 2, 2016, 2:55 AM Reply Quote 0
            • T
              Tom Elliott @adukes40
              last edited by Oct 2, 2016, 2:55 AM

              @adukes40 does the wol request work if you replace the ip with the ip of your remote node?

              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

              A W 2 Replies Last reply Oct 2, 2016, 3:03 AM Reply Quote 1
              • A
                adukes40 @Tom Elliott
                last edited by Oct 2, 2016, 3:03 AM

                @Tom-Elliott i tried that earlier, only way it works is off run wakeonlan (mac) from the terminal

                1 Reply Last reply Reply Quote 0
                • W
                  Wayne Workman @Tom Elliott
                  last edited by Oct 2, 2016, 3:06 AM

                  @Tom-Elliott According to the MAN page for wakeonlan it uses a default UDP port of 9.
                  http://www.linuxcertif.com/man/1/wakeonlan/

                  0_1475377598319_wakeonlan.png

                  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!
                  Daily Clean Installation Results:
                  https://fogtesting.fogproject.us/
                  FOG Reporting:
                  https://fog-external-reporting-results.fogproject.us/

                  1 Reply Last reply Reply Quote 0
                  • S
                    Sebastian Roth Moderator
                    last edited by Sebastian Roth Oct 3, 2016, 11:51 AM Oct 3, 2016, 5:50 PM

                    @adukes40 I am not exactly sure if I get this right. So I hope you don’t mind if I am telling you things you already knew. As Tom already said WOL is something that only works within a subnet (broadcast domain). If you want to wake up PCs from a different subnet you need to forward the packets. The DD-WRT site describes it nicely: http://www.dd-wrt.com/wiki/index.php/WOL#Remote_Wake_On_LAN_via_Port_Forwarding

                    Writing your own firewall rules using iptables it would be something like:

                    iptables -t nat -A PREROUTING -i eth0 -p udp -d 192.168.0.1 --dport 9 -j DNAT --to 192.168.1.254:9
                    

                    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

                    W 1 Reply Last reply Oct 3, 2016, 6:09 PM Reply Quote 0
                    • W
                      Wayne Workman @Sebastian Roth
                      last edited by Wayne Workman Oct 3, 2016, 12:12 PM Oct 3, 2016, 6:09 PM

                      @Sebastian-Roth Tom says that when a host is WOL’d, every storage node under the command of the main fog server is told to WOL that host’s MAC address all at once. And the OP has nodes at every site connected to his main fog server.

                      In summary - the Linux utility wakeonlan does wake up hosts. This utility uses UDP port 9 just as FOG does.

                      Fog’s WOL isn’t working for him, even after trying manual calls from the main and to remote nodes where the hosts are.

                      @adukes40 can you confirm those things?

                      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!
                      Daily Clean Installation Results:
                      https://fogtesting.fogproject.us/
                      FOG Reporting:
                      https://fog-external-reporting-results.fogproject.us/

                      A 1 Reply Last reply Oct 3, 2016, 6:15 PM Reply Quote 0
                      • S
                        Sebastian Roth Moderator
                        last edited by Oct 3, 2016, 6:12 PM

                        @Wayne-Workman Ok, then totally screw what I said!!! I didn’t know that FOG is that intelligent as I haven’t used it in big environments yet. My fault!

                        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
                        • A
                          adukes40 @Wayne Workman
                          last edited by Oct 3, 2016, 6:15 PM

                          @Wayne-Workman Correct, I am using location plugin, 1 master, 6 nodes. WOL only works if I use the wakeonlan utility. Running WOL, or deploying a task, does not WOL even at the master site. Also will not wake up when doing http://10.103.72.49/fog/management/index.php?sub=wakeEmUp&mac=b8:ac:6f:3d:6e:a4 but using the utility, typing wakeonlan b8:ac:6f:3d:6e:a4, turns on instantly

                          1 Reply Last reply Reply Quote 0
                          • S
                            Sebastian Roth Moderator
                            last edited by Oct 3, 2016, 6:17 PM

                            @adukes40 Do you see any messages in the apache error log when accessing the mentioned URL to wake up clients?? See my signature on where to find the log.

                            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

                            M 1 Reply Last reply Oct 4, 2016, 8:12 AM Reply Quote 1
                            • T
                              Tom Elliott
                              last edited by Oct 3, 2016, 6:39 PM

                              I’m trying to understand how the magic packets are setup. See things seem to work fine, then I’m told they don’t and it varies from person to person, network to network, system to system.

                              I’ve even seen people say it works from this one system, but not that one system. (From or To can be used interchangeably here please).

                              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 0
                              • M
                                mp12 @Sebastian Roth
                                last edited by Oct 4, 2016, 8:12 AM

                                @Sebastian-Roth

                                Server

                                • FOG Version: RC-12 (42)
                                • OS: Ubuntu 14.04

                                Client

                                • Service Version: 0.11.5
                                • OS: Win 7

                                I am having the same problem. Can wake-up the clients in the console using wakeonlan *MAC*. When trying to wake-up a client or group in FOG GUI it creates the following error in the apache error.log

                                [Tue Oct 04 10:08:18.989990 2016] [:error] [pid 9838] [client x.x.x.x:35286] PHP Fatal error:  Uncaught Error: Access to undeclared static property: WakeOnLan::$_port in /var/www/fog/lib/fog/wakeonlan.class.php:70\nStack trace:\n#0 /var/www/fog/lib/fog/fogpage.class.php(1316): WakeOnLan->send()\n#1 /var/www/fog/lib/fog/fogpagemanager.class.php(230): FOGPage->wakeEmUp()\n#2 /var/www/fog/management/index.php(25): FOGPageManager->render()\n#3 {main}\n  thrown in /var/www/fog/lib/fog/wakeonlan.class.php on line 70
                                
                                
                                T 2 Replies Last reply Oct 4, 2016, 10:49 AM Reply Quote 1
                                • T
                                  Tom Elliott @mp12
                                  last edited by Oct 4, 2016, 10:49 AM

                                  @mp12 You’re running on working-RC-12 right now. While that issue shouldn’t be present, it isn’t the same as what @adukes40 is seeing either. I can fix the static property issue relatively easily.

                                  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 0
                                  • T
                                    Tom Elliott @mp12
                                    last edited by Oct 4, 2016, 10:53 AM

                                    @mp12 https://github.com/FOGProject/fogproject/commit/6f90796d3c13c5db23390b47884e0660a04393b9

                                    That should fix the static variable issue for you too if you want to update again.

                                    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

                                    M 1 Reply Last reply Oct 4, 2016, 11:44 AM Reply Quote 0
                                    • M
                                      mp12 @Tom Elliott
                                      last edited by Oct 4, 2016, 11:44 AM

                                      @Tom-Elliott

                                      • A single host wake-up in FOG GUI works fine.

                                      • WOL via URL http://x.x.x.x/fog/management/index.php?sub=wakeEmUp&mac=aa:bb:cc:dd:ee:ff works.

                                      • A Group wake-up via FOG GUI won’t work. I don’t get any error in the /var/log/apache/error.log.

                                      T 1 Reply Last reply Oct 7, 2016, 10:25 AM Reply Quote 0
                                      • M
                                        mp12
                                        last edited by Oct 6, 2016, 12:03 PM

                                        bump.

                                        Still having the problem when trying to wake-up a group of clients. They won’t wake up.
                                        Wake-up of a single client works.

                                        W 1 Reply Last reply Oct 6, 2016, 6:34 PM Reply Quote 0
                                        • W
                                          Wayne Workman @mp12
                                          last edited by Oct 6, 2016, 6:34 PM

                                          @mp12 how many are in the group? Please try a group of two. If either of them wake up, let us know and we will have more tests for you.

                                          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!
                                          Daily Clean Installation Results:
                                          https://fogtesting.fogproject.us/
                                          FOG Reporting:
                                          https://fog-external-reporting-results.fogproject.us/

                                          1 Reply Last reply Reply Quote 0
                                          • 1
                                          • 2
                                          • 1 / 2
                                          1 / 2
                                          • First post
                                            15/36
                                            Last post

                                          224

                                          Online

                                          12.0k

                                          Users

                                          17.3k

                                          Topics

                                          155.2k

                                          Posts
                                          Copyright © 2012-2024 FOG Project