<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Start/Stop all SAS Services using batch file (Windows) in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/Start-Stop-all-SAS-Services-using-batch-file-Windows/m-p/317909#M6756</link>
    <description>&lt;P&gt;Welcome&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10078"&gt;@JacobSimonsen&lt;/a&gt;&amp;nbsp; &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt; !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 09 Dec 2016 14:57:09 GMT</pubDate>
    <dc:creator>Kalind_Patel</dc:creator>
    <dc:date>2016-12-09T14:57:09Z</dc:date>
    <item>
      <title>Start/Stop all SAS Services using batch file (Windows)</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Start-Stop-all-SAS-Services-using-batch-file-Windows/m-p/314277#M6637</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to share a new idea to manage all&amp;nbsp;sas&amp;nbsp;services in windows using batch,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Linux or Z/OS we can use sas.servers script to operate all SAS Servers from just one command (./sas.servers start/stop),&lt;BR /&gt;But for windows, we don’t have any script like that,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I have created two batch files to start and stop all SAS Services with other SAS services dependencies ,&lt;/P&gt;&lt;P&gt;And in my testing environment, it is working fine,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have attached that two scripts in attachment , &lt;U&gt;any feedback, suggestions and questions on this topic would be really appreciated.&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please find below GIF to see how these scripts work.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Start SAS services script :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/6014i4081853B02C292D0/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="Start_Services.gif" title="Start_Services.gif" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Stop SAS services script :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/6015i4AF54BF9F68F99A0/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="Stop_Services.gif" title="Stop_Services.gif" /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2016 11:37:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Start-Stop-all-SAS-Services-using-batch-file-Windows/m-p/314277#M6637</guid>
      <dc:creator>Kalind_Patel</dc:creator>
      <dc:date>2016-11-25T11:37:06Z</dc:date>
    </item>
    <item>
      <title>Re: Start/Stop all SAS Services using batch file (Windows)</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Start-Stop-all-SAS-Services-using-batch-file-Windows/m-p/314369#M6644</link>
      <description>&lt;P&gt;Thanks for the post. We have a very similar scripted process for our Windows SAS servers. It is frustrating that SAS does not provide this, nor is it very well documented what you need to do. We built our version through trial and error and help from our SAS installer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BTW SAS recommend you start and stop Environment Manager agent using the hq-agent.bat file and not by starting the service directly- is this what you do? &amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2016 21:12:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Start-Stop-all-SAS-Services-using-batch-file-Windows/m-p/314369#M6644</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2016-11-25T21:12:05Z</dc:date>
    </item>
    <item>
      <title>Re: Start/Stop all SAS Services using batch file (Windows)</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Start-Stop-all-SAS-Services-using-batch-file-Windows/m-p/314458#M6645</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13976"&gt;@SASKiwi﻿&lt;/a&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your valuable feedback&amp;nbsp;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt; !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently, in this script,&amp;nbsp;I am using sc start/stop [Service_Name] command to operate the services,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But yes, we can also operate the SAS Environment Manager Agent using hq-agent.bat file,&lt;/P&gt;&lt;P&gt;We have to change this line from .bat file :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-SPOILER&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;sc start/stop "SAS [%variable%-Lev1] SAS Environment Manager Agent" &amp;gt;nul&amp;nbsp;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/LI-SPOILER&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;to this lines:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-SPOILER&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;FONT face="courier new,courier"&gt;pushd "D:\SAS\SASConfig\Lev1\Web\SASEnvironmentManager\agent-5.8.0-EE\bin" &amp;gt;nul&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;call hq-agent.bat start/stop &amp;gt;nul&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;popd &amp;gt;nul&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/LI-SPOILER&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After that, it will operate&amp;nbsp;SAS Environment Manager&amp;nbsp;Agent service&amp;nbsp;using the hq-agent.bat file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kalind&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 26 Nov 2016 12:43:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Start-Stop-all-SAS-Services-using-batch-file-Windows/m-p/314458#M6645</guid>
      <dc:creator>Kalind_Patel</dc:creator>
      <dc:date>2016-11-26T12:43:40Z</dc:date>
    </item>
    <item>
      <title>Re: Start/Stop all SAS Services using batch file (Windows)</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Start-Stop-all-SAS-Services-using-batch-file-Windows/m-p/317908#M6755</link>
      <description>Thank you, it was something like that I needed when I updated to SAS 9.4M4 a few days ago.</description>
      <pubDate>Fri, 09 Dec 2016 14:38:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Start-Stop-all-SAS-Services-using-batch-file-Windows/m-p/317908#M6755</guid>
      <dc:creator>JacobSimonsen</dc:creator>
      <dc:date>2016-12-09T14:38:23Z</dc:date>
    </item>
    <item>
      <title>Re: Start/Stop all SAS Services using batch file (Windows)</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Start-Stop-all-SAS-Services-using-batch-file-Windows/m-p/317909#M6756</link>
      <description>&lt;P&gt;Welcome&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10078"&gt;@JacobSimonsen&lt;/a&gt;&amp;nbsp; &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt; !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2016 14:57:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Start-Stop-all-SAS-Services-using-batch-file-Windows/m-p/317909#M6756</guid>
      <dc:creator>Kalind_Patel</dc:creator>
      <dc:date>2016-12-09T14:57:09Z</dc:date>
    </item>
  </channel>
</rss>

