<?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: Stop caching with python in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/stop-caching-with-python/m-p/40764#M1475</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i think i found a solution.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Create and start&amp;nbsp;a caching job:&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;C:\Python27\ArcGIS10.5&amp;gt;python.exe C:\Program&amp;nbsp;Files\ArcGIS\Server\tools\admin\manageCacheTiles.py -u *******&amp;nbsp;-p ******&amp;nbsp;-s &lt;A href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Flocalhost%3A6080" rel="nofollow" target="_blank"&gt;http://localhost:6080&lt;/A&gt; -n orthophotos/Bildflug_OBK:MapServer -scales "300" -mode RECREATE&lt;/P&gt;&lt;P&gt;_EMPTY_TILES -i 3 -extent 789189.9305308337;6580020.060890722;867403.7797850806;6641345.461643132 -wait DO_NOT_WAIT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Stop the caching Job:&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;C:\Python27\ArcGIS10.5&amp;gt;python.exe C:\Program&amp;nbsp;Files\ArcGIS\Server\tools\admin\manageservice.py -u ******&amp;nbsp;-p ******&amp;nbsp;-s &lt;A href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Flocalhost%3A6080" rel="nofollow" target="_blank"&gt;http://localhost:6080&lt;/A&gt; -n System/CachingTools.GPServer -o stop&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Create a Windows Schedule Task to start the CachingTool again to cache overnight with this trigger parameter:&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;C:\Program Files\ArcGIS\Server\tools\admin\manageservice.py -u ******&amp;nbsp;-p ******&amp;nbsp;-s &lt;A href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Flocalhost%3A6080" rel="nofollow" target="_blank"&gt;http://localhost:6080&lt;/A&gt; -n System/CachingTools.GPServer -o start&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Create another Schedule Task to stop the CachingTool in the morning (....hingTools.GPServer -o stop...)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thats it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Jul 2017 14:47:12 GMT</pubDate>
    <dc:creator>TorstenSchramm</dc:creator>
    <dc:date>2017-07-06T14:47:12Z</dc:date>
    <item>
      <title>Stop caching with python</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/stop-caching-with-python/m-p/40763#M1474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i use a python script to cache a AGS Service time scheduled over night. But i can't find a way to stop the caching Service. I want to Stop the caching in the business time, an start it again in the night (&lt;SPAN&gt;RECREATE_EMPTY_TILES)&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 11pt;"&gt;Please help me out.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 11pt;"&gt;Thank you i advance.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# Import arcpy module&lt;BR /&gt;import arcpy&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;# Local variables:&lt;BR /&gt;Bildflug_OBK_MapServer = "GIS Servers\\arcgis on localhost_6080 (Admin)\\orthophotos\\Bildflug_OBK.MapServer"&lt;BR /&gt;vektor_daten_DBO_Verbandsgrenze_AV_UTM32__3_ = "E:\\Geodaten\\gp_bildflug\\vektor_daten.sde\\vektor_daten.DBO.Verwaltungsgrenzen_NRW_UTM32\\vektor_daten.DBO.Verbandsgrenze_AV_UTM32"&lt;BR /&gt;Output_Map_Service_URL = ""&lt;/P&gt;&lt;P&gt;# Process: Manage Map Server Cache Tiles&lt;BR /&gt;arcpy.ManageMapServerCacheTiles_server(Bildflug_OBK_MapServer, "300", "RECREATE_EMPTY_TILES", "3", vektor_daten_DBO_Verbandsgrenze_AV_UTM32__3_, "E:\\Geodaten\\gp_bildflug\\vektor_daten.sde\\vektor_daten.DBO.Verwaltungsgrenzen_NRW_UTM32\\vektor_daten.DBO.Verbandsgrenze_AV_UTM32", "WAIT")&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2017 08:03:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/stop-caching-with-python/m-p/40763#M1474</guid>
      <dc:creator>TorstenSchramm</dc:creator>
      <dc:date>2017-07-06T08:03:39Z</dc:date>
    </item>
    <item>
      <title>Re: Stop caching with python</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/stop-caching-with-python/m-p/40764#M1475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i think i found a solution.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Create and start&amp;nbsp;a caching job:&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;C:\Python27\ArcGIS10.5&amp;gt;python.exe C:\Program&amp;nbsp;Files\ArcGIS\Server\tools\admin\manageCacheTiles.py -u *******&amp;nbsp;-p ******&amp;nbsp;-s &lt;A href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Flocalhost%3A6080" rel="nofollow" target="_blank"&gt;http://localhost:6080&lt;/A&gt; -n orthophotos/Bildflug_OBK:MapServer -scales "300" -mode RECREATE&lt;/P&gt;&lt;P&gt;_EMPTY_TILES -i 3 -extent 789189.9305308337;6580020.060890722;867403.7797850806;6641345.461643132 -wait DO_NOT_WAIT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Stop the caching Job:&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;C:\Python27\ArcGIS10.5&amp;gt;python.exe C:\Program&amp;nbsp;Files\ArcGIS\Server\tools\admin\manageservice.py -u ******&amp;nbsp;-p ******&amp;nbsp;-s &lt;A href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Flocalhost%3A6080" rel="nofollow" target="_blank"&gt;http://localhost:6080&lt;/A&gt; -n System/CachingTools.GPServer -o stop&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Create a Windows Schedule Task to start the CachingTool again to cache overnight with this trigger parameter:&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;C:\Program Files\ArcGIS\Server\tools\admin\manageservice.py -u ******&amp;nbsp;-p ******&amp;nbsp;-s &lt;A href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Flocalhost%3A6080" rel="nofollow" target="_blank"&gt;http://localhost:6080&lt;/A&gt; -n System/CachingTools.GPServer -o start&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Create another Schedule Task to stop the CachingTool in the morning (....hingTools.GPServer -o stop...)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thats it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2017 14:47:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/stop-caching-with-python/m-p/40764#M1475</guid>
      <dc:creator>TorstenSchramm</dc:creator>
      <dc:date>2017-07-06T14:47:12Z</dc:date>
    </item>
  </channel>
</rss>

