{"id":315,"date":"2013-03-06T12:00:34","date_gmt":"2013-03-06T17:00:34","guid":{"rendered":"http:\/\/nukeitmike.com\/blog\/?p=315"},"modified":"2013-03-06T12:00:34","modified_gmt":"2013-03-06T17:00:34","slug":"using-scojobrunner","status":"publish","type":"post","link":"https:\/\/blog.nukeitmike.com\/index.php\/2013\/03\/06\/using-scojobrunner\/","title":{"rendered":"Using SCOJobRunner"},"content":{"rendered":"<p>We have started using System Center Orchestrator (2012 SP1) to do some automation.&#160; Most of what we have done so far could be done outside of Orchestrator pretty easily.&#160; Having it in Orchestrator makes it easier to keep track of all the automated tasks that we have.&#160; ( A central repository in theory.)<\/p>\n<p>I have had a few different issues so far with the way that Orchestrator works.&#160; It seems there is a common issue of Runbooks not showing up in the web console.&#160; This isn\u2019t hard to correct is seems, but it is annoying that they don\u2019t automatically show up.<\/p>\n<p>The way to get them to show up seems to be to clear the AuthorizationCache: <\/p>\n<blockquote>\n<p>Hi, by default the orchestrator console refresh every 10 minutes. You could try update your AuthorizationCache, that is done by default every 10 minutes. If you run<\/p>\n<p>TRUNCATE TABLE [Microsoft.SystemCenter.Orchestrator.Internal].AuthorizationCache in the Orchestrator database, do they show up direct then? Make sure you have a DB backup Before you do anything in the database.<\/p>\n<\/blockquote>\n<p><a title=\"http:\/\/social.technet.microsoft.com\/Forums\/sv\/scogeneral\/thread\/3a4f49f1-b282-465c-84aa-e84335c4a7f9\" href=\"http:\/\/social.technet.microsoft.com\/Forums\/sv\/scogeneral\/thread\/3a4f49f1-b282-465c-84aa-e84335c4a7f9\">http:\/\/social.technet.microsoft.com\/Forums\/sv\/scogeneral\/thread\/3a4f49f1-b282-465c-84aa-e84335c4a7f9<\/a><\/p>\n<p>Once they show up in the web console, you can use SCOJobRunner to call the Runbook.&#160; That utility can be found here: <a title=\"http:\/\/blogs.technet.com\/b\/orchestrator\/archive\/2012\/05\/15\/cool-tool-new-command-line-utility-to-start-a-runbook.aspx\" href=\"http:\/\/blogs.technet.com\/b\/orchestrator\/archive\/2012\/05\/15\/cool-tool-new-command-line-utility-to-start-a-runbook.aspx\">http:\/\/blogs.technet.com\/b\/orchestrator\/archive\/2012\/05\/15\/cool-tool-new-command-line-utility-to-start-a-runbook.aspx<\/a><\/p>\n<p>Once you have that, you can use Task Scheduler to call the Runbook with SCOJobRunner.&#160; The one thing that is kind of un-obvious is finding the ID.&#160; There are a couple of ways, but here is a simple one:<\/p>\n<blockquote>\n<p>An easy trick to getting the runbook ID is to go to the Orchestrator web console and click on the runbook itself in the left hand pane.&#160; Within the URL you will find the runbook ID.<\/p>\n<p>Example: <a href=\"http:\/\/server:82\/#\/RunbooksPage$FolderId=cdafbfdc-363f-49c4-81a0-62a18236a5ce&amp;RunbookId=e46304a1-f900-4665-b0bc-ea0ad6c9f86e&amp;RunbookInstanceId=&amp;TabId=1&amp;Filter\">http:\/\/server:82\/#\/RunbooksPage$FolderId=cdafbfdc-363f-49c4-81a0-62a18236a5ce&amp;<strong>RunbookId=e46304a1-f900-4665-b0bc-ea0ad6c9f86e<\/strong>&amp;RunbookInstanceId=&amp;TabId=1&amp;Filter<\/a><\/p>\n<p>Vaughn<\/p>\n<\/blockquote>\n<p><a title=\"http:\/\/social.technet.microsoft.com\/Forums\/ko\/scogeneral\/thread\/24c13d8c-b6d6-45c5-87c3-a68801a9005b\" href=\"http:\/\/social.technet.microsoft.com\/Forums\/ko\/scogeneral\/thread\/24c13d8c-b6d6-45c5-87c3-a68801a9005b\">http:\/\/social.technet.microsoft.com\/Forums\/ko\/scogeneral\/thread\/24c13d8c-b6d6-45c5-87c3-a68801a9005b<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>We have started using System Center Orchestrator (2012 SP1) to do some automation.&#160; Most of what we have done so far could be done outside of Orchestrator pretty easily.&#160; Having it in Orchestrator makes it easier to keep track of all the automated tasks that we have.&#160; ( A central repository in theory.) I have&hellip; <a class=\"more-link\" href=\"https:\/\/blog.nukeitmike.com\/index.php\/2013\/03\/06\/using-scojobrunner\/\">Continue reading <span class=\"screen-reader-text\">Using SCOJobRunner<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"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":""},"categories":[17,21,33],"tags":[51,120,129,176],"class_list":["post-315","post","type-post","status-publish","format-standard","hentry","category-microsoft","category-orchestrator","category-system-center","tag-automation","tag-microsoft","tag-orchestrator","tag-system-center","entry"],"jetpack_featured_media_url":"","jetpack-related-posts":[],"jetpack_likes_enabled":true,"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/pcW544-55","_links":{"self":[{"href":"https:\/\/blog.nukeitmike.com\/index.php\/wp-json\/wp\/v2\/posts\/315","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.nukeitmike.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.nukeitmike.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.nukeitmike.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.nukeitmike.com\/index.php\/wp-json\/wp\/v2\/comments?post=315"}],"version-history":[{"count":0,"href":"https:\/\/blog.nukeitmike.com\/index.php\/wp-json\/wp\/v2\/posts\/315\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.nukeitmike.com\/index.php\/wp-json\/wp\/v2\/media?parent=315"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.nukeitmike.com\/index.php\/wp-json\/wp\/v2\/categories?post=315"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.nukeitmike.com\/index.php\/wp-json\/wp\/v2\/tags?post=315"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}