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

    Remove "Uploaded by batch import on" Message?

    Scheduled Pinned Locked Moved Unsolved
    FOG Problems
    3
    5
    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.
    • ?
      A Former User
      last edited by

      I was wondering if there was any way to remove the text that is added to the description for each host that gets via CSV file? Seems like it should be a simple configuration but I can’t find where.

      Wayne WorkmanW 1 Reply Last reply Reply Quote 0
      • Wayne WorkmanW
        Wayne Workman @A Former User
        last edited by Wayne Workman

        @isaiah658 said:

        I was wondering if there was any way to remove the text that is added to the description for each host that gets via CSV file? Seems like it should be a simple configuration but I can’t find where.

        This deletes the contents in the description field and is non-reversible unless you have a DB backup. This is done via CLI on the fog server. I am fairly sure it will work on 1.2.0 but I’m not positive. I wrote this command for FOG Trunk. Even if it didn’t work, with a little looking around it can be modified with the correct field names.

        mysql
        use fog
        UPDATE hosts SET hostDesc = NULL WHERE hostDesc IS NOT NULL;
        

        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
        • ?
          A Former User
          last edited by

          If this is just deleting the descriptions, I don’t think I can use this then as I actually do have stuff in each of the descriptions that I want to keep. That’s the main reason I want to get rid of the message in the first place. I inconveniently adds it to the end of each of the descriptions. If that’s not what your script does then please correct me.

          Wayne WorkmanW 1 Reply Last reply Reply Quote 0
          • Wayne WorkmanW
            Wayne Workman @A Former User
            last edited by Wayne Workman

            @isaiah658
            The @Developers might have reasons for marking a host as imported by batch. But perhaps they can make the message that gets added an option in the settings instead of making it mandatory.

            I’m not sure if it’s possible to remove just that line from the descriptions other than doing it manually, Especially if the import is already completed. Someone else might have an idea, but I’m out of ideas.

            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

              Maybe the syntax:

              UPDATE hosts SET hostDesc=REPLACE(hostDesc,'Uploaded by batch import on %','');

              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 1
              • 1 / 1
              • First post
                Last post

              135

              Online

              12.1k

              Users

              17.3k

              Topics

              155.4k

              Posts
              Copyright © 2012-2024 FOG Project