{"id":48,"date":"2011-04-17T22:58:00","date_gmt":"2011-04-17T22:58:00","guid":{"rendered":"http:\/\/www.sapbpc.sapag.co.in\/?p=48"},"modified":"2011-04-17T22:58:00","modified_gmt":"2011-04-17T22:58:00","slug":"how-to-restart-bpc-service-automatically-using-scheduler-microsoft-platform","status":"publish","type":"post","link":"https:\/\/www.sapbpc.sapag.co.in\/?p=48","title":{"rendered":"How to restart BPC service automatically using scheduler (Microsoft platform)"},"content":{"rendered":"<p>Sometimes BPC system needs to be restarted whatever the reason is.<\/p>\n<p>Here is what we should restart. (Note: it should be done sequentially.)<\/p>\n<p>1. Stop &#8216;Send Governor&#8217; service<\/p>\n<p>2. Stop BPC component services (Please see below screen shot how to stop it manually)<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" border=\"0\" alt=\"image\" src=\"https:\/\/weblogs.sdn.sap.com\/weblogs\/images\/251844296\/ComponentService2.JPG\" width=\"681\" height=\"342\" \/><\/p>\n<p>3. Stop and Start IIS (Internet Information Services<\/p>\n<p>4. Start &#8216;Send Governor&#8217; service<\/p>\n<p>As we know step1, 3 and 4 can be done command.<\/p>\n<p>Here is command for executing above steps.<\/p>\n<p>1. net stop &quot;Outlooksoft Sendgovernor service&quot;<\/p>\n<p>3. IISRESET<\/p>\n<p>4. net start &quot;Outlooksoft Sendgovernor service&quot;<\/p>\n<p>But there is no command for stopping BPC component in the component services. <\/p>\n<p>One of BPC customer wanted to do this so I created simple script that can stop all component service&#8217;s component. (Note: it will stop all component so if customer is using other component, it needs to be modified to avoid stopping.)<\/p>\n<p>Here is source code.<\/p>\n<p>===================================================== <\/p>\n<p>Set adminCatalog = CreateObject(&quot;COMAdmin.COMAdminCatalog&quot;)<\/p>\n<p>&#8216;getting all the Applications in the server<\/p>\n<p>Set objAppCollection = adminCatalog.GetCollection(&quot;Applications&quot;)<\/p>\n<p>&#160;&#160;&#160; objAppCollection.Populate   <br \/>&#160;&#160;&#160; &#8216;loop for all application    <br \/>&#160;&#160;&#160; For i = 0 To objAppCollection.Count &#8211; 1<\/p>\n<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; Wscript.echo objAppCollection.Item(i).Name   <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#8216;Shutdown app     <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; adminCatalog.ShutDownApplication objAppCollection.Item(i).Name    <br \/>&#160;&#160;&#160; next&#160; <\/p>\n<p>set objAppcollection = Nothing   <br \/>set adminCatalog = Nothing<\/p>\n<p>=====================================================<\/p>\n<p>Let&#8217;s assume user saved above source code as &#8216;RestartCom.vbs&#8217;.<\/p>\n<p>Now we can create a batch file &#8211; let&#8217;s say it is ResetBPC.bat -&#160; that can be scheduled using windows scheduler. <\/p>\n<p>Below four lines of source code is content of ResetBPC.bat file.<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<\/p>\n<p>net stop &quot;Outlooksoft Sendgovernor service&quot;<\/p>\n<p>Cscript c:\\restartcom.vbs<\/p>\n<p>IISRESET <\/p>\n<p>net start &quot;Outlooksoft Sendgovernor service&quot;<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<\/p>\n<p>The customer who asked it to me satisfied its result using this script.<\/p>\n<p>They could restart BPC service during night time without manual procedure.<\/p>\n<p>I think it also will help other customers who have same concern and save time all SAP colleagues and partner consultants.<\/p>\n<p>If you have any questions, please leave comments.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sometimes BPC system needs to be restarted whatever the reason is. Here is what we should restart. (Note: it should be done sequentially.) 1. Stop &#8216;Send Governor&#8217; service 2. Stop BPC component services (Please see below screen shot how to &hellip; <a href=\"https:\/\/www.sapbpc.sapag.co.in\/?p=48\">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":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-48","post","type-post","status-publish","format-standard","hentry","category-sap-bpc-tutorials"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.sapbpc.sapag.co.in\/index.php?rest_route=\/wp\/v2\/posts\/48","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sapbpc.sapag.co.in\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sapbpc.sapag.co.in\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sapbpc.sapag.co.in\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sapbpc.sapag.co.in\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=48"}],"version-history":[{"count":0,"href":"https:\/\/www.sapbpc.sapag.co.in\/index.php?rest_route=\/wp\/v2\/posts\/48\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.sapbpc.sapag.co.in\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=48"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sapbpc.sapag.co.in\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=48"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sapbpc.sapag.co.in\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=48"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}