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

    Bulk add hosts

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    5
    6
    878
    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
      LibraryMark
      last edited by

      I am using FOG 1.5.4 and have been having various issues, some I’ve created, some that FOG created. I do not trust the database in my current production VM so I have felt the need to start from scratch.

      In order to save time, is there a way to “bulk” add hosts? It’s getting pretty tiresome to add them at each seat. IMHO, that would be a great feature to add to FOG, the ability to, say, upload a CVS and having the hosts automatically populated.

      Anyway, near as I can tell from the database, all I would have to do is populate the hosts table with hostName, hostImage, and then put the correct host id in the hmID field and MAC address in the hmMAC field and set to ‘1’ the hmPrimary field in the hostMAC table.

      Would that do it?

      1 Reply Last reply Reply Quote 0
      • Q
        Quazz Moderator
        last edited by Quazz

        You can import a csv file with a list of your hosts (left side menu under hosts -> Import Hosts)

        Export your current list so you can see the formatting needed. (or if you have the old server still around, you can export that list)

        L 1 Reply Last reply Reply Quote 0
        • L
          LibraryMark @Quazz
          last edited by LibraryMark

          @quazz
          Oh, so the feature already exists! Wonderful! Thanks!

          How do I mark this as solved?

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

            @librarymark For hosts, the CSV must contain:

            <macaddress>,<hostname>

            If you want to add multiple MAC Addresses, the format would be:
            <macaddress1|macaddress2|macaddress3>,<hostname>

            (The macs are separated by a | symbol.)

            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

            A 1 Reply Last reply Reply Quote 0
            • A
              aschaffer @Tom Elliott
              last edited by

              @tom-elliott each host still needs to be touched to initiate deployment. please tell me there’s a way.

              1 Reply Last reply Reply Quote 0
              • S
                Sebastian Roth Moderator
                last edited by Sebastian Roth

                @aschaffer What do you mean by “needs to be touched”?

                By the way, this topic is years old and you might want to create a new one and post all your specific details there like version and a detailed description…

                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

                156

                Online

                12.0k

                Users

                17.3k

                Topics

                155.2k

                Posts
                Copyright © 2012-2024 FOG Project