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

Bulk add hosts

Scheduled Pinned Locked Moved Solved
FOG Problems
5
6
884
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 Jun 8, 2018, 1:55 PM

    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 Jun 8, 2018, 8:00 AM Jun 8, 2018, 1:59 PM

      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 Jun 8, 2018, 2:02 PM Reply Quote 0
      • L
        LibraryMark @Quazz
        last edited by LibraryMark Jun 8, 2018, 8:02 AM Jun 8, 2018, 2:02 PM

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

        How do I mark this as solved?

        T 1 Reply Last reply Jun 8, 2018, 3:48 PM Reply Quote 0
        • T
          Tom Elliott @LibraryMark
          last edited by Jun 8, 2018, 3:48 PM

          @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 Jan 21, 2021, 3:20 PM Reply Quote 0
          • A
            aschaffer @Tom Elliott
            last edited by Jan 21, 2021, 3:20 PM

            @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 Jan 21, 2021, 10:45 AM Jan 21, 2021, 4:44 PM

              @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

              243

              Online

              12.0k

              Users

              17.3k

              Topics

              155.2k

              Posts
              Copyright © 2012-2024 FOG Project