In a previous blog post, I discussed how much I liked the scheduled cloning operations introduced in NetWorker 7.6 SP1. Since then, I’ve had several people comment on it saying that while they’re able to manually start scheduled cloning operations, they’re not able to stop scheduled cloning operations in NMC – regardless of whether they were manually or automatically started.
Now I thought I’d been able to manually stop a scheduled cloning operation via NMC during beta testing, but I may have confused myself with something else, and when I noticed the same issue, it led me to think – can I stop this some other way, maybe from the command line? (For what it’s worth, the inability to stop a scheduled clone from NMC is a known issue, and there’s an EMC request running for it.)
It turns out without NMC, the command line is how you stop a scheduled cloning operation. It actually turned out to be fairly simple in the end. To do so, you use jobquery and jobkill.
First, use jobquery to identify the scheduled clone job you want:
# jobquery jobquery> show name:; job id:; job state: jobquery> print type: clone job; job state: SESSION ACTIVE: job id: 64002; job state: SESSION ACTIVE; name: clone.linux clones;
Once you’ve got that job ID, all you have to do is quit jobquery, and run:
# jobkill -j jobID
In this case – it would be:
# jobkill -j 64002 Terminating job 64002
That’s it – that’s how you stop a scheduled clone job.