How to kill jobs from the command line

Article:TECH10541  |  Created: 2001-01-08  |  Updated: 2013-10-23  |  Article URL http://www.symantec.com/docs/TECH10541
Article Type
Technical Solution


Environment

Issue



How to kill jobs from the command line

Solution




1.  Get the job numbers by running /usr/openv/netbackup/bin/admincmd/bpdbjobs -report, or if a GUI interface is available, through the job monitor.

2.  Run /usr/openv/netbackup/bin/admincmd/bpdbjobs -delete <job number [job number,job number,...]>.

EXAMPLE: /usr/openv/netbackup/bin/admincmd/bpdbjobs -delete 20133
                /usr/openv/netbackup/bin/admincmd/bpdbjobs -delete 20133,20134,20135

There is also an  -M option which applies to an environment where VERITAS Global Data Manager is installed (multiple master servers are maintained from a Master Of Masters). The  -M option allows you to delete  jobids for a specific master.

If the bpdbjobs command does not delete jobs, then use the following procedure:

1. "CD" to the usr/openv/netbackup/db/jobs directory which contains a listing of the current jobs.

2.  Find the job number files in question.
3 possible job files may exist for each job:

"job_num".   <--- use this file for process id info
"job_num".f
"job_num".numbers-p

3.  Within the file for the job number there will be 3 process IDs (PID).

            1- The main-PID 2-  Active PID 3- Requesting PID.

4.  Use 'ps' to check for the active process, if it exists, kill the job with a 'kill -15' on the 'Active PID'.

5. If the given active process doesn't exist, delete the job files relating to this job ID.  Wait a minute and then refresh the GUI job monitor to reflect the changes. The problem job should be gone.


Legacy ID



235765


Article URL http://www.symantec.com/docs/TECH10541


Terms of use for this information are found in Legal Notices