{"id":2587,"date":"2011-09-09T14:15:08","date_gmt":"2011-09-09T12:15:08","guid":{"rendered":"http:\/\/contoso.se\/blog\/?p=2587"},"modified":"2011-10-02T21:34:23","modified_gmt":"2011-10-02T19:34:23","slug":"validate-your-runbook-design-%e2%80%93-part-iv","status":"publish","type":"post","link":"http:\/\/contoso.se\/blog\/?p=2587","title":{"rendered":"Validate your runbook design \u00e2\u20ac\u201c part IV"},"content":{"rendered":"<p>Using the Run Program activity can sometimes be a bit tricky. This activity will report success if the command execute ok, even if the command execute with a bad result. For example, if I use it to copy a file, but the target folder does not exist, it will still report success, as the command, COPY, worked fine. As you can see in the image below, the activity report back success, but if we look at the program output we see that the copy job did not work.<\/p>\n<p><a href=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2011\/09\/20110908-RunProgram.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-2588\" title=\"20110908-RunProgram\" src=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2011\/09\/20110908-RunProgram-300x91.jpg\" alt=\"\" width=\"300\" height=\"91\" srcset=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2011\/09\/20110908-RunProgram-300x91.jpg 300w, http:\/\/contoso.se\/blog\/wp-content\/uploads\/2011\/09\/20110908-RunProgram-1024x312.jpg 1024w, http:\/\/contoso.se\/blog\/wp-content\/uploads\/2011\/09\/20110908-RunProgram.jpg 1100w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>A way to handle this is to add validation as the next step in the runbook. For example in this scenario verify that the target file exists<\/p>\n<p><a href=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2011\/09\/20110908-RunProgram02.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2589\" title=\"20110908-RunProgram02\" src=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2011\/09\/20110908-RunProgram02.jpg\" alt=\"\" width=\"269\" height=\"106\" \/><\/a><\/p>\n<p>I have added a check to the SCO Validation Runbook, that checks if you are using any run program activities, just as a reminder to verify that you check the result of the command. You can download the new version of the runbook <a href=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2011\/09\/20110909_scoCheck_WOLF.zip\">20110909_scoCheck_WOLF<\/a>. Please note that this is provided \u00e2\u20ac\u0153as is\u00e2\u20ac\u009d with no warranties at all. If you have any ideas what I should add, please post them as comment to this post or send me an e-mail. Also please note this is all based on my ideas and is not a \u00e2\u20ac\u0153Health check\u00e2\u20ac\u009d or Microsoft official guidelines.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Using the Run Program activity can sometimes be a bit tricky. This activity will report success if the command execute ok, even if the command execute with a bad result. For example, if I use it to copy a file, but the target folder does not exist, it will still report success, as the command, &hellip; <a href=\"http:\/\/contoso.se\/blog\/?p=2587\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[60],"tags":[],"class_list":["post-2587","post","type-post","status-publish","format-standard","hentry","category-orchestrator"],"_links":{"self":[{"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2587","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2587"}],"version-history":[{"count":4,"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2587\/revisions"}],"predecessor-version":[{"id":2649,"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2587\/revisions\/2649"}],"wp:attachment":[{"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2587"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2587"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2587"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}