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

    Removing a Scheduled task

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    2
    6
    2.8k
    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.
    • H
      Hanz
      last edited by

      I registered a client computer and then attempted a WOL, which never went through since it had the wrong mac address…I re-imaged that client computer and named it something else…Now I can’t remove the queued task for the old client name. Anybody know how I can remove this task ?

      FOG Log Viewer _ FOG Configuration _ FOG _ Open Source Computer Cloning Solution.pdf

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

        It doesn’t show up inside Task Management?

        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
        • H
          Hanz
          last edited by

          no, unfortunately

          1 Reply Last reply Reply Quote 0
          • H
            Hanz
            last edited by

            Would it be possible to re-image the same computer and then name it what the old name was…Would this then allow the WOL to play out, thus removing it ?

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

              @Hanz Just delete it from the table.

              If you know the computer’s old name or ID number in FOG or incorrect MAC or anything identifying at all, you can do some querries to get info and delete it.

              Where you see single quotes in the code below, those stay.

              Here’s how to search by name:

              mysql
              use fog
              select * from hosts where hosts.hostName = 'NameGoesHere';
              

              Here’s how to search by MAC:

              select * from hostMAC where hostMAC.hmMAC='00:25:11:a2:a9:5d';
              

              After you have the hostID, you can delete the host from both the hosts table and the hostMAC table.

              Something like this, using ID 165 as an example:

              delete from hostMAC where hostMAC.hmHostID = 165;
              

              You could delete by MAC or ID from either table, I believe.

              And you can simply delete every row in the tasks table and everything will be fine.

              mysql
              use fog
              delete from tasks where 1;
              

              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
              • H
                Hanz
                last edited by

                thanks for all the mysql pointers, and that last line worked like a charm.

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

                279

                Online

                12.0k

                Users

                17.3k

                Topics

                155.2k

                Posts
                Copyright © 2012-2024 FOG Project