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

    Inventory not exported with Hosts

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    3
    6
    1.4k
    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.
    • T
      treyw00
      last edited by

      Hi,

      I exported all my hosts to a new Fog Server (both were running 1.2.0) and the Hosts imported correctly, yet the Inventory wasn’t included for any of the machines. Is there a way to transfer the inventory information?

      Thanks

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

        Export:

         mysqldump fog inventory > inventory.sql
        

        Import:

        mysql -D fog < inventory.sql
        

        You may also use the username and password arguments if necessary.
        Reference: https://steveswanson.wordpress.com/2009/04/21/exporting-and-importing-an-individual-mysql-table/

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

          Inventory is stored 100% separate from the rest of the items.

          There are many tables stored in such manner. All the export cares about at that point is the data of the given object (hosts->hosts, not hosts->inventory,groups,snapins,etc…).

          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
            treyw00
            last edited by

            soooo good news / bad news…

            Good news is, I got the export/import of the sql data to work…bad news is, it didn’t match up to the devices correctly…

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

              @treyw00 Are you aware of the DB import/export feature in 1.2.0 ?

              FOG Configuration -> Configuration Save -> Import / Export

              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
              • T
                treyw00
                last edited by

                I was not…and that worked like a dream!

                Thank you so much!

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

                155

                Online

                12.0k

                Users

                17.3k

                Topics

                155.2k

                Posts
                Copyright © 2012-2024 FOG Project