How to Clear a Hung or Pending Job from the CLI

How to Clear a Hung or Pending Job from the CLI

209865
Created On 09/25/18 19:54 PM - Last Modified 10/21/21 20:30 PM


Symptom


If there are any jobs that appear to be hung or stuck in a PEND (Pending) status, and need to be cleared or aborted, you can use the following CLI command to find the Job ID of the stuck job:

> show jobs all

In the example below, Job ID 4 is a stuck software download:

pending.jpg

 



Environment


  • Palo Alto Firewall.
  • PAN-OS 8.1 and above.


Resolution


To clear the hung job, use the following command:

> clear job id <job_id>
 

clear2.jpg



Additional Information


In the event that any of the jobs do not "clear up" after clearing the job, one may o restart the management server process with the following command:

> debug software restart process management-server

Note: Since this command restarts that management server process, it will kill WebGUI and CLI users. If this is not intended, the command can be run during maintenance window.

Please see this article for complete details: How to Restart the Management server "mgmtsrvr" Process - WebGUI

If additional help is needed, contact Support.


Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA10g000000ClhFCAS&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail

Choose Language