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

    Shutdown after Quick Registration?

    Scheduled Pinned Locked Moved
    General
    4
    18
    5.9k
    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.
    • Jaymes DriverJ
      Jaymes Driver Developer
      last edited by

      [quote=“Dragnous, post: 31268, member: 24480”]Is it possible to have the machines in question shutdown Automatically after quick registration?[/quote]

      This sounds horrible. If we add this feature can we have the option to turn it off?

      WARNING TO USERS: My comments are written completely devoid of emotion, do not mistake my concise to the point manner as a personal insult or attack.

      1 Reply Last reply Reply Quote 0
      • DragnousD
        Dragnous
        last edited by

        The thing is, doing 20+ for my school systems and I was thinking it would be easier to have them just shutdown after quick registration that way when i schedule the multicast i just have to turn them on.

        1 Reply Last reply Reply Quote 0
        • D
          dislikeusernames
          last edited by

          I second this idea. I would find it very helpful in deploying a large number of new PC’s. Plug them all in, send a wake on LAN command and have them all check in and shut down. Then you don’t have to manually reboot them all when deploying, you can just send another WoL packet.

          1 Reply Last reply Reply Quote 0
          • Tom ElliottT
            Tom Elliott
            last edited by

            [quote=“Dragnous, post: 31321, member: 24480”]The thing is, doing 20+ for my school systems and I was thinking it would be easier to have them just shutdown after quick registration that way when i schedule the multicast i just have to turn them on.[/quote]

            For this, you’d have to edit the <FOGWEBDIR>/lib/fog/BootMenu.class.php.

            Look for the line:
            [php]print “$this->kernel loglevel=4 $type\n”;[/php]

            Edit it so it looks like:
            [php]print ($option == ‘fog.reg’ ? “$this->kernel loglevel=4 $type shutdown=1\n” : “$this->kernel loglevel=4 $type\n”);[/php]

            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
            • DragnousD
              Dragnous
              last edited by

              I have tried this modification and the results end up saying “could not boot: input/output eror ([url]http://ipxe.org/1d0c6139[/url])”

              I have attached my BootMenu.class.php file

              [url=“/_imported_xf_attachments/1/1081_BootMenu.class.php?:”]BootMenu.class.php[/url]

              1 Reply Last reply Reply Quote 0
              • Tom ElliottT
                Tom Elliott
                last edited by

                Can you show me the specific line in BootMenu.class.php

                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
                • DragnousD
                  Dragnous
                  last edited by

                  Sorry, check my above post ^

                  1 Reply Last reply Reply Quote 0
                  • Tom ElliottT
                    Tom Elliott
                    last edited by

                    Okay here’s what I am seeing:
                    [code]/* print ($option == 'fog.reg’ ? "$this->kernel loglevel=4 $type shutdown=1\n" : “$this->kernel loglevel=4 $type\n”);*/[/code]

                    You may have to physically type out, and remove the weird a characters from the line. Guessing you edited the file in windows?

                    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
                    • Tom ElliottT
                      Tom Elliott
                      last edited by

                      Try this file:

                      [url=“/_imported_xf_attachments/1/1082_BootMenu.class.php?:”]BootMenu.class.php[/url]

                      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
                      • DragnousD
                        Dragnous
                        last edited by

                        No, edited directly on my ubuntu machine. Copied file over to thumb drive to get back on network with my windows machine to post here 😛

                        1 Reply Last reply Reply Quote 0
                        • DragnousD
                          Dragnous
                          last edited by

                          OK, i tired your edit… matches exactly what i had on the ubuntu machine and still doesnt work

                          [code]
                          {
                          print “:$option\n”;
                          print ($option == ‘fog.reg’ ? “$this->kernel loglevel=4 $type shutdown=1\n” : “$this->kernel loglevel=4 $type\n”);
                          // print “$this->kernel loglevel=4 $type\n”;
                          print “$this->initrd”;
                          print “boot || goto MENU\n”;
                          }
                          [/code]

                          1 Reply Last reply Reply Quote 0
                          • Tom ElliottT
                            Tom Elliott
                            last edited by

                            What’s the output from the browser if you go to:
                            [url]https://FOGIPADDRESS/fog/service/ipxe/boot.php[/url]

                            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
                            • DragnousD
                              Dragnous
                              last edited by

                              Blank white page

                              1 Reply Last reply Reply Quote 0
                              • Tom ElliottT
                                Tom Elliott
                                last edited by

                                What’s the error logs?

                                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
                                • Tom ElliottT
                                  Tom Elliott
                                  last edited by

                                  Try this command (change fogwebdir to your proper fog web directory)
                                  [code]wget -O fogwebdir/lib/fog/BootMenu.class.php http://mastacontrola.com/BootMenu.class.txt[/code]

                                  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
                                  • DragnousD
                                    Dragnous
                                    last edited by

                                    [FONT=Consolas]wget -O 192.168.1.200/fog/lib/fog/BootMenu.class.php [url]http://mastacontrola.com/BootMenu.class.txt[/url][/FONT]
                                    [FONT=Consolas]No Such file or Directory[/FONT]
                                    [FONT=Consolas] [/FONT]

                                    1 Reply Last reply Reply Quote 0
                                    • Tom ElliottT
                                      Tom Elliott
                                      last edited by

                                      Sorry about the delay.

                                      The command you’ve got is wrong.

                                      It should be:
                                      [code]wget -O /var/www/fog/lib/fog/BootMenu.class.php http://mastacontrola.com/BootMenu.class.txt[/code]

                                      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
                                      • 1 / 1
                                      • First post
                                        Last post

                                      183

                                      Online

                                      12.1k

                                      Users

                                      17.3k

                                      Topics

                                      155.4k

                                      Posts
                                      Copyright © 2012-2024 FOG Project