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

    inject windows key for more than hundred machines

    Scheduled Pinned Locked Moved
    General
    3
    7
    1.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.
    • L
      lebrun78
      last edited by

      Hello,
      I have imagine contrat licence and I have a licence key for each machine.
      Could I inject via mysql the license keys list a text file.
      I have a look on the hosts tables, I didn’t see a column licence key.

      Fog Version: Fog 1.5.10
      Server OS: AlmaLinux release 8.8

      Wayne WorkmanW 1 Reply Last reply Reply Quote 0
      • Wayne WorkmanW
        Wayne Workman @lebrun78
        last edited by Wayne Workman

        @lebrun78 It’s called hostProductKey in the hosts table. Also, instead of doing this via MySQL - just export all your hosts - modify the export - and then reimport. Web Interface -> Host Management -> Export Hosts -> Export. Make a backup copy of this, modify it with the key, and then re-import.

        Tom Elliott posted recently on the arrangement of the import file… let me find that…
        https://forums.fogproject.org/topic/9790/headers-for-csv-files-for-hosts-and-images-import/2

        If you are unsure which field the product key should go into in the import, just put the product key into one host via the web interface manually, export again, find that host and see how the key is laid out.

        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
        • L
          lebrun78
          last edited by

          I’ve tried the export, but I didn’t get any field containing ProductKey

          Host ID, Host Name, Host Desc, Host MAC, Host Created, Image ID, Image Name, Image Desc ,AD Join, AD OU, AD Domain, Kernel, HD Device, OS Name

          If I Export, modify and then import, how are treated duplications ?

          Fog Version: Fog 1.5.10
          Server OS: AlmaLinux release 8.8

          Wayne WorkmanW 1 Reply Last reply Reply Quote 0
          • Wayne WorkmanW
            Wayne Workman @lebrun78
            last edited by

            @lebrun78 Well before we go that far, we should ask @Tom-Elliott why the product keys are not exported. It may be that they were simply over-looked. Tom is basically a one-man show for the fog 1.x backend.

            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/

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

              @Wayne-Workman The product key’s are exported for hosts.

              Remember, we store the product key in encrypted form. My guess is the output is in encrypted form.

              You just have to find which field/column it’s under.

              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

              Wayne WorkmanW 1 Reply Last reply Reply Quote 0
              • Wayne WorkmanW
                Wayne Workman @Tom Elliott
                last edited by Wayne Workman

                @Tom-Elliott Can the export be un-encrypted ? And can imports take an un-encrypted form and encrypt them?

                Other systems are not going to export fields in the encrypted manner that FOG uses, and other systems won’t accept the encrypted fields that fog uses.

                Also - this should be a scenario that prompts for re-auth.

                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/

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

                  @Wayne-Workman The export will not be un-encrypted, for now, but the import CAN take unencrypted form.

                  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

                  138

                  Online

                  12.1k

                  Users

                  17.3k

                  Topics

                  155.3k

                  Posts
                  Copyright © 2012-2024 FOG Project