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

    FOG 2.0 request - Selective inventory hardware export

    Scheduled Pinned Locked Moved
    Feature Request
    3
    7
    2.5k
    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.
    • J
      jmeyer
      last edited by

      Hello,

      could it be possible to export partial inventory of the hardware such as only :

      Name, OS, System Manufacturer , System Product, System Version, System Serial Number, System Type, BIOS Date, Location.

      We use Spiceworks for this but detection is random on some computers.
      As we use FOG on nearly all the computers, it would avoid getting twice the hardware.

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

        This is probably the nastiest SQL command I’ve ever wrote but it works…

        mysql -D fog -e"select hosts.hostName, images.imageName,os.osName,inventory.iSysproduct,inventory.iMbproductname,inventory.iMbserial,inventory.iSystype,inventory.iBiosdate,location.lName FROM hosts INNER JOIN images ON hosts.hostImage = images.imageID INNER JOIN os ON images.imageOSID = os.osID INNER JOIN inventory ON hosts.hostID = inventory.iHostID INNER JOIN locationAssoc ON locationAssoc.laHostID = hosts.hostID INNER JOIN location ON location.lID = locationAssoc.laLocationID;" > /var/www/html/custom.txt

        Look at your output by going to x.x.x.x\custom.txt with a web browser.
        This is what I get (because I wiped my DB recently, have only imaged 2 computers)

        0_1449673094575_upload-35abf567-826f-4bf7-b557-cb4dd7580967

        This command will only provide output where there is info for every field you’ve requested.

        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
        • Wayne WorkmanW
          Wayne Workman
          last edited by

          I just realized this was a feature request… 😕

          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/

          J 1 Reply Last reply Reply Quote 0
          • J
            jmeyer @Wayne Workman
            last edited by jmeyer

            @Wayne-Workman Make it in reports with column choice will be the next step ! lol
            Result looks already great and nearly enough for my needs ! 😉

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

              @jmeyer I’m not a PHP person… That’s up to probably @Tom-Elliott to add this sort of report.

              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

                PHP is not what FOG 2.0 is. This is a FOG 2.0 Feature request.

                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

                  @Tom-Elliott I was referring to adding it now - if it was easy. I know 2.0 doesn’t use 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!
                  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 / 1
                  • First post
                    Last post

                  180

                  Online

                  12.0k

                  Users

                  17.3k

                  Topics

                  155.2k

                  Posts
                  Copyright © 2012-2024 FOG Project