<?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: Stopping and Starting ArcGIS Server with a Batch File in ArcGIS Enterprise Portal Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/stopping-and-starting-arcgis-server-with-a-batch/m-p/411903#M5707</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I like &lt;A href="https://community.esri.com/migrated-users/8066"&gt;Michael Volz&lt;/A&gt;‌'s suggestion of truncating and appending, but another approach is to stop the individual service or services instead of the whole ArcGIS Server service. You can take pieces out of the "stop or start all services in a folder" script to stop specific services, or create your own script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://enterprise.arcgis.com/en/server/latest/administer/windows/example-stop-or-start-all-services-in-a-folder.htm"&gt;http://enterprise.arcgis.com/en/server/latest/administer/windows/example-stop-or-start-all-services-in-a-folder.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/rest/enterprise-administration/server/stopservice.htm"&gt;https://developers.arcgis.com/rest/enterprise-administration/server/stopservice.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/rest/enterprise-administration/server/startservice.htm"&gt;https://developers.arcgis.com/rest/enterprise-administration/server/startservice.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Apr 2019 17:37:53 GMT</pubDate>
    <dc:creator>JonathanQuinn</dc:creator>
    <dc:date>2019-04-08T17:37:53Z</dc:date>
    <item>
      <title>Stopping and Starting ArcGIS Server with a Batch File</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/stopping-and-starting-arcgis-server-with-a-batch/m-p/411899#M5703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;Looking for a way to programmaticly stop/stop the AcrGIS server Service with a batch file.&amp;nbsp; Basically, we edit into a FGD, then would like to copy that FGD to another location on the network.&amp;nbsp; This new location would be what is served out via Server/Portal.&amp;nbsp; we have found that the FGD coping process cannot happen unless the ArcGIS services are stopped briefly.&amp;nbsp; We tried using the AGSSOM.exe utility, but it is not clear that this .exe can be used in version 10.6.1.&amp;nbsp; We have also tried using NET STOP and SC commands, but it is not practical as these seem to need to "run as administrator" .&amp;nbsp; Might there be any suggestions?&amp;nbsp; thanks, James&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Apr 2019 15:44:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/stopping-and-starting-arcgis-server-with-a-batch/m-p/411899#M5703</guid>
      <dc:creator>James_Armstrong</dc:creator>
      <dc:date>2019-04-08T15:44:24Z</dc:date>
    </item>
    <item>
      <title>Re: Stopping and Starting ArcGIS Server with a Batch File</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/stopping-and-starting-arcgis-server-with-a-batch/m-p/411900#M5704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is editing using a versioned geodatabase an option for you?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Apr 2019 15:52:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/stopping-and-starting-arcgis-server-with-a-batch/m-p/411900#M5704</guid>
      <dc:creator>BillFox</dc:creator>
      <dc:date>2019-04-08T15:52:31Z</dc:date>
    </item>
    <item>
      <title>Re: Stopping and Starting ArcGIS Server with a Batch File</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/stopping-and-starting-arcgis-server-with-a-batch/m-p/411901#M5705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about a truncate and append process so services would not need to be stopped?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Apr 2019 16:10:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/stopping-and-starting-arcgis-server-with-a-batch/m-p/411901#M5705</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2019-04-08T16:10:38Z</dc:date>
    </item>
    <item>
      <title>Re: Stopping and Starting ArcGIS Server with a Batch File</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/stopping-and-starting-arcgis-server-with-a-batch/m-p/411902#M5706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to have a version of database option. But for this project  it is not an option&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Get Outlook for Android&amp;lt;https://aka.ms/ghei36&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Apr 2019 17:00:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/stopping-and-starting-arcgis-server-with-a-batch/m-p/411902#M5706</guid>
      <dc:creator>James_Armstrong</dc:creator>
      <dc:date>2019-04-08T17:00:44Z</dc:date>
    </item>
    <item>
      <title>Re: Stopping and Starting ArcGIS Server with a Batch File</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/stopping-and-starting-arcgis-server-with-a-batch/m-p/411903#M5707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I like &lt;A href="https://community.esri.com/migrated-users/8066"&gt;Michael Volz&lt;/A&gt;‌'s suggestion of truncating and appending, but another approach is to stop the individual service or services instead of the whole ArcGIS Server service. You can take pieces out of the "stop or start all services in a folder" script to stop specific services, or create your own script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://enterprise.arcgis.com/en/server/latest/administer/windows/example-stop-or-start-all-services-in-a-folder.htm"&gt;http://enterprise.arcgis.com/en/server/latest/administer/windows/example-stop-or-start-all-services-in-a-folder.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/rest/enterprise-administration/server/stopservice.htm"&gt;https://developers.arcgis.com/rest/enterprise-administration/server/stopservice.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/rest/enterprise-administration/server/startservice.htm"&gt;https://developers.arcgis.com/rest/enterprise-administration/server/startservice.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Apr 2019 17:37:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/stopping-and-starting-arcgis-server-with-a-batch/m-p/411903#M5707</guid>
      <dc:creator>JonathanQuinn</dc:creator>
      <dc:date>2019-04-08T17:37:53Z</dc:date>
    </item>
    <item>
      <title>Re: Stopping and Starting ArcGIS Server with a Batch File</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/stopping-and-starting-arcgis-server-with-a-batch/m-p/411904#M5708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jonathan:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can the code in&amp;nbsp;your first link be modified to use port 6443?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Can the code in&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;your first link be modified to use no port if the AGS services are be routed through a load-balancer that has a certificate associated with it?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Apr 2019 19:07:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/stopping-and-starting-arcgis-server-with-a-batch/m-p/411904#M5708</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2019-04-08T19:07:32Z</dc:date>
    </item>
    <item>
      <title>Re: Stopping and Starting ArcGIS Server with a Batch File</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/stopping-and-starting-arcgis-server-with-a-batch/m-p/411905#M5709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Overall, I find this approach to be problematic because while the truncate and append are happening, results returned from the service are not accurate.&amp;nbsp; It is better to have a window of time where the service is unavailable than have a window of time where the results from the service are not accurate.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Apr 2019 19:17:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/stopping-and-starting-arcgis-server-with-a-batch/m-p/411905#M5709</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2019-04-08T19:17:37Z</dc:date>
    </item>
    <item>
      <title>Re: Stopping and Starting ArcGIS Server with a Batch File</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/stopping-and-starting-arcgis-server-with-a-batch/m-p/411906#M5710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree with others, you should try stopping the individual, impacted services first before resorting to restarting the entire GIS Server.&amp;nbsp; If you do end up needing to start the GIS server, i.e., the Windows service running GIS server, any Windows admin worth their pay can configure an individual service to be stopped and started by a non-admin user.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Apr 2019 19:21:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/stopping-and-starting-arcgis-server-with-a-batch/m-p/411906#M5710</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2019-04-08T19:21:02Z</dc:date>
    </item>
    <item>
      <title>Re: Stopping and Starting ArcGIS Server with a Batch File</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/stopping-and-starting-arcgis-server-with-a-batch/m-p/411907#M5711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah, that's possible just takes some refactoring. It looks like the &lt;STRONG&gt;httplib.HTTPSConnection&lt;/STRONG&gt; would be used instead of &lt;STRONG&gt;httplib.HTTPConnection&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.python.org/2/library/httplib.html#httplib.HTTPSConnection"&gt;https://docs.python.org/2/library/httplib.html#httplib.HTTPSConnection&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then make sure you update &lt;STRONG&gt;serverPort = 6080&lt;/STRONG&gt; to be &lt;STRONG&gt;6443&lt;/STRONG&gt; or &lt;STRONG&gt;443&lt;/STRONG&gt;, depending on what port your load balancer is listening on. The folderURL and stopOrStartURL variables, (and any others, really) would need to be corrected for the context too depending on the load balancer URL. They're using "arcgis"&amp;nbsp;but you could change that if need be.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had re-written that script within a different thread if you want to take a look for some ideas:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="link-titled" href="https://community.esri.com/message/842376-re-startstop-secure-services-in-1061?commentID=842376&amp;amp;et=watches.email.thread#comment-840765" title="https://community.esri.com/message/842376-re-startstop-secure-services-in-1061?commentID=842376&amp;amp;et=watches.email.thread#comment-840765"&gt;https://community.esri.com/message/842376-re-startstop-secure-services-in-1061?commentID=842376&amp;amp;et=watches.email.thread#…&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Apr 2019 22:22:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/stopping-and-starting-arcgis-server-with-a-batch/m-p/411907#M5711</guid>
      <dc:creator>JonathanQuinn</dc:creator>
      <dc:date>2019-04-08T22:22:44Z</dc:date>
    </item>
  </channel>
</rss>

