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

Removing a Scheduled task

Scheduled Pinned Locked Moved Solved
FOG Problems
2
6
2.9k
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 Jul 20, 2015, 9:17 PM

    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
    • W
      Wayne Workman
      last edited by Jul 20, 2015, 9:18 PM

      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 Jul 20, 2015, 9:20 PM

        no, unfortunately

        1 Reply Last reply Reply Quote 0
        • H
          Hanz
          last edited by Jul 20, 2015, 9:22 PM

          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 ?

          W 1 Reply Last reply Jul 20, 2015, 9:31 PM Reply Quote 0
          • W
            Wayne Workman @Hanz
            last edited by Wayne Workman Jul 20, 2015, 3:32 PM Jul 20, 2015, 9:31 PM

            @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 Jul 20, 2015, 10:28 PM

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

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

              222

              Online

              12.1k

              Users

              17.3k

              Topics

              155.3k

              Posts
              Copyright © 2012-2024 FOG Project