{"id":2956,"date":"2011-03-17T06:25:59","date_gmt":"2011-03-16T20:25:59","guid":{"rendered":"http:\/\/nsrd.info\/blog\/?p=2956"},"modified":"2018-12-11T18:16:39","modified_gmt":"2018-12-11T08:16:39","slug":"killing-scheduled-cloning-operations","status":"publish","type":"post","link":"https:\/\/nsrd.info\/blog\/2011\/03\/17\/killing-scheduled-cloning-operations\/","title":{"rendered":"Killing scheduled cloning operations"},"content":{"rendered":"<p>In a previous blog post, I discussed how much I liked the scheduled cloning operations introduced in NetWorker 7.6 SP1. Since then, I&#8217;ve had several people comment on it saying that while they&#8217;re able to manually start scheduled cloning operations, they&#8217;re not able to <em>stop<\/em> scheduled cloning operations in NMC \u2013 regardless of whether they were manually or automatically started.<\/p>\n<p>Now I thought I&#8217;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 \u2013 can I stop this some other way, maybe from the command line? (For what it&#8217;s worth, the inability to stop a scheduled clone from NMC is a known issue, and there&#8217;s an EMC request running for it.)<\/p>\n<p>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 <em>jobquery<\/em> and <em>jobkill<\/em>.<\/p>\n<p>First, use jobquery to identify the scheduled clone job you want:<\/p>\n<pre># <strong>jobquery<\/strong>\njobquery&gt; <strong>show name:; job id:; job state:\n<\/strong>jobquery&gt; <strong>print type: clone job; job state: SESSION ACTIVE:\n<\/strong>                      job id: 64002;\n                   job state: SESSION ACTIVE;\n                        name: clone.linux clones;<\/pre>\n<p>Once you&#8217;ve got that job ID, all you have to do is quit jobquery, and run:<\/p>\n<pre># <strong>jobkill -j <em>jobID<\/em><\/strong><\/pre>\n<p>In this case &#8211; it would be:<\/p>\n<pre># <strong>jobkill -j&nbsp;64002\n<\/strong>Terminating job 64002<\/pre>\n<p>That&#8217;s it \u2013 that&#8217;s how you stop a scheduled clone job.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In a previous blog post, I discussed how much I liked the scheduled cloning operations introduced in NetWorker 7.6 SP1.&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[6,16],"tags":[226,510,511,865,866],"class_list":["post-2956","post","type-post","status-publish","format-standard","hentry","category-basics","category-networker","tag-clone","tag-jobkill","tag-jobquery","tag-scheduled-clone","tag-scheduled-cloning"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pKpIN-LG","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/posts\/2956","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/comments?post=2956"}],"version-history":[{"count":1,"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/posts\/2956\/revisions"}],"predecessor-version":[{"id":7521,"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/posts\/2956\/revisions\/7521"}],"wp:attachment":[{"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/media?parent=2956"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/categories?post=2956"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/tags?post=2956"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}