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

    Exporting Host Info to CSV

    Scheduled Pinned Locked Moved
    General
    3
    6
    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.
    • G
      GTF
      last edited by

      I’ve built a new 1.0.1 server (ubuntu 12.04 LTS) and am migrating our images and hosts over from our .32 server. Using the info here [url]http://www.fogproject.org/wiki/index.php/Manual_Migration_Upgrade_from_0.32_to1.0[/url] I was able to move the images, but can’t figure out how to get the host list into a CSV.

      I’ve tried [FONT=Consolas]#mysqldump -u root -p[password] fog hosts > hosts.sql (on .32) and [/FONT][FONT=Consolas]#mysql -u root -p[password] fog < hosts.sql (on 1.0.1) but I get and “ERROR 1064: You have an error in your SQL syntax…” when trying to import.[/FONT]

      [FONT=Consolas]So, is there way to get the data into a CSV to import through the new GUI, or can anyone point me in the right direction regarding the syntax error?[/FONT]

      [FONT=Consolas]Thank you.[/FONT]

      1 Reply Last reply Reply Quote 0
      • JunkhackerJ
        Junkhacker Developer
        last edited by

        on the hosts page “export hosts”

        signature:
        Junkhacker
        We are here to help you. If you are unresponsive to our questions, don't expect us to be responsive to yours.

        1 Reply Last reply Reply Quote 0
        • G
          GTF
          last edited by

          Sorry, I’m not seeing it…

          [ATTACH=full]885[/ATTACH]

          [url=“/_imported_xf_attachments/0/885_fog_hosts.JPG?:”]fog_hosts.JPG[/url]

          1 Reply Last reply Reply Quote 0
          • JunkhackerJ
            Junkhacker Developer
            last edited by

            oh, sorry, i didn’t realize that was a new feature
            there still should be a way to export the host list from the Reports page
            an example file of how the CSV file should be formatted can be downloaded from the 1.0+ Hosts->Import Hosts page

            signature:
            Junkhacker
            We are here to help you. If you are unresponsive to our questions, don't expect us to be responsive to yours.

            1 Reply Last reply Reply Quote 0
            • G
              GTF
              last edited by

              Brilliant! That’s the stuff.

              Thanks for your help.

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

                For future readers: https://wiki.fogproject.org/wiki/index.php?title=Migrate_FOG

                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

                161

                Online

                12.0k

                Users

                17.3k

                Topics

                155.2k

                Posts
                Copyright © 2012-2024 FOG Project