How to stop active tasks via terminal
-
Since we selected ALL hosts for imaging instead of individual computers or groups, the “active tasks” page is not accessible and we cannot end the tasks. So I need to know what is the command in terminal please. thanks
killall udp-sender doesn´t work due to ongoing transmissions
-
@René_Sig Hey René,
we have solved the problem with delete the tasks on the mysql database.
mysql -u root
use fog
delete from tasks where taskState = 0; -
If you are unable to access the “active tasks” page in your imaging system and need to terminate the tasks from the terminal, you can use the following steps:
Open the terminal on your system.
First, try using the “killall” command with the “udp-sender” process again:
code
killall udp-sender
If the “killall udp-sender” command doesn’t work due to ongoing transmissions, you can use the more forceful “kill” command followed by the Process ID (PID) of the udp-sender process. To find the PID, you can use the “pgrep” command along with the process name:code
pgrep udp-sender
Once you have obtained the PID, use the “kill” command to forcefully terminate the process:bash
code
kill -9 PID
Replace “PID” with the actual Process ID you obtained from the “pgrep” command.Please note that using the “kill -9” command is a more forceful way to terminate a process and should be used with caution. It forcefully ends the process without giving it a chance to clean up or complete any ongoing tasks, which may lead to potential data loss or other issues.
Before using the “kill -9” command, ensure that terminating the udp-sender process won’t cause any adverse effects on your imaging system or ongoing tasks. If you are uncertain or facing any critical issues, it’s advisable to seek assistance from your system administrator or technical support.
-
kill: Use the kill command followed by the process ID (PID) to stop a task. First, you need to identify the PID of the task you want to stop. You can use the ps command to list the active processes, and then use kill with the appropriate signal.
To view the active processes, open a terminal and type: ps aux
Identify the PID of the process you want to stop.
To stop the process, type: kill PID (replace PID with the actual process ID) -
depending on the task if i recall correctly there is a folder in the TFTP or near by that has a file created with the MAC address as the tile name for that job.
(Just saying )
Correct me if I’m wrong please.
-
This post is deleted! -
This post is deleted!