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

    Clear Primary User and Other Tag Fields

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    2
    3
    413
    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.
    • Scott BS
      Scott B
      last edited by

      What would be the easiest way to blank out the fields for Primary User, Other Tag #1, and Other Tag #2 under the inventory tab for every host in FOG?

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

        @Scott-B Probably best if you know your way around the mysql command line:

        shell> mysql -u root -p
        Password:
        ...
        mysql> use fog;
        ...
        mysql> UPDATE inventory SET iPrimaryUser='';
        ...
        mysql> UPDATE inventory SET iOtherTag='';
        ...
        mysql> UPDATE inventory SET iOtherTag1='';
        ...
        mysql> quit
        

        Notice: Be aware that those commands actually clear those fields for ALL your hosts! If you don’t have a backup, there is no way back after running those.

        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
        • Scott BS
          Scott B
          last edited by

          @Sebastian-Roth said in Clear Primary User and Other Tag Fields:

          actually clear those fields for ALL your hosts! If you don’t have a backup, there is no way back after running tho

          Perfect, exactly what I needed. Thank you!

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post

          162

          Online

          12.0k

          Users

          17.3k

          Topics

          155.2k

          Posts
          Copyright © 2012-2024 FOG Project