<?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: How to programmatically restart Map service?? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-programmatically-restart-map-service/m-p/463483#M42826</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the class link to start/stop arcgis server services through arcobject . It may be helpful for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://resources.arcgis.com/en/help/arcobjects-net/componenthelp/index.html#//0048000000sv000000" title="http://resources.arcgis.com/en/help/arcobjects-net/componenthelp/index.html#//0048000000sv000000"&gt;ArcObjects Help for .NET developers&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Mudit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Apr 2015 16:58:00 GMT</pubDate>
    <dc:creator>MuditAgarwal</dc:creator>
    <dc:date>2015-04-07T16:58:00Z</dc:date>
    <item>
      <title>How to programmatically restart Map service??</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-programmatically-restart-map-service/m-p/463481#M42824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a need to programmatically restart a map service.&amp;nbsp; I have found Javascript code to successfully clear the services cache (half of the task) but I can't find code that will allow me to restart a map service.&amp;nbsp; We are using ArcGIS 10.0.&amp;nbsp; Does anyone have any thoughts, whether it be a way to do this via Javascript or an ArcGIS command-line tool, or ???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks - Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2015 12:50:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-programmatically-restart-map-service/m-p/463481#M42824</guid>
      <dc:creator>PeterLen</dc:creator>
      <dc:date>2015-04-07T12:50:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to programmatically restart Map service??</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-programmatically-restart-map-service/m-p/463482#M42825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure if this would work against 10.0, but you could try using python to script against the server admin api. I've pasted a link to one of the samples below. Shouldn't take long to try it and see what happens.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/Example_Stop_or_start_all_services_in_a_folder/0154000005qv000000/"&gt;Example: Stop or start all services in a folder&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/Example_Stop_or_start_all_services_in_a_folder/0154000005qv000000/" title="http://resources.arcgis.com/en/help/main/10.1/index.html#/Example_Stop_or_start_all_services_in_a_folder/0154000005qv000000/"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#/Example_Stop_or_start_all_services_in_a_folder/0154000005qv000000/&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2015 15:08:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-programmatically-restart-map-service/m-p/463482#M42825</guid>
      <dc:creator>FreddieGibson</dc:creator>
      <dc:date>2015-04-07T15:08:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to programmatically restart Map service??</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-programmatically-restart-map-service/m-p/463483#M42826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the class link to start/stop arcgis server services through arcobject . It may be helpful for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://resources.arcgis.com/en/help/arcobjects-net/componenthelp/index.html#//0048000000sv000000" title="http://resources.arcgis.com/en/help/arcobjects-net/componenthelp/index.html#//0048000000sv000000"&gt;ArcObjects Help for .NET developers&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Mudit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2015 16:58:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-programmatically-restart-map-service/m-p/463483#M42826</guid>
      <dc:creator>MuditAgarwal</dc:creator>
      <dc:date>2015-04-07T16:58:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to programmatically restart Map service??</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-programmatically-restart-map-service/m-p/463484#M42827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Peter:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How long will you still be at version 10?&amp;nbsp; I ask because the ability to start a mapservice programmatically is much easier at v10.1 and forward using python based AGS admin tools.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2015 17:08:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-programmatically-restart-map-service/m-p/463484#M42827</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2015-04-07T17:08:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to programmatically restart Map service??</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-programmatically-restart-map-service/m-p/463485#M42828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Freddie - Thanks for the reply.&amp;nbsp; Yes, I had run across that help document and tried it but for whatever reason, there is no URL that will utilize a START / STOP call.&amp;nbsp; Maybe it is something new in 10.1 or maybe we are missing some configuration in our 10.0, but that solution won't help right now.&amp;nbsp; Thanks - Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2015 22:06:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-programmatically-restart-map-service/m-p/463485#M42828</guid>
      <dc:creator>PeterLen</dc:creator>
      <dc:date>2015-04-07T22:06:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to programmatically restart Map service??</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-programmatically-restart-map-service/m-p/463486#M42829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Michael - Thanks for the reply.&amp;nbsp; While there has been talk of moving to 10.2, it will be a glacial process so unfortunately, I must try to find a 10.0 solution.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2015 23:14:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-programmatically-restart-map-service/m-p/463486#M42829</guid>
      <dc:creator>PeterLen</dc:creator>
      <dc:date>2015-04-07T23:14:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to programmatically restart Map service??</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-programmatically-restart-map-service/m-p/463487#M42830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mudit - Thanks for the response.&amp;nbsp; After looking at the .Net code from the link, it looks to be very similar to the reference that Freddie gave, except it used .Net.&amp;nbsp; The URL to call, I believe, is basically the same thing though.&amp;nbsp; I tried calling URLs using the /stop and /start, but there just isn't a 10.0 services URL that recognize it so I am not sure if it is only a 10.1+ thing (there is a 10.1 reference in a comment within the .Net code).&amp;nbsp; I will look at&amp;nbsp; it a bit more though.&amp;nbsp; Thanks - Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2015 23:27:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-programmatically-restart-map-service/m-p/463487#M42830</guid>
      <dc:creator>PeterLen</dc:creator>
      <dc:date>2015-04-07T23:27:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to programmatically restart Map service??</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-programmatically-restart-map-service/m-p/463488#M42831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have to stay at v10.0 then you can use AGSSOM.exe that should be located at either (This assumes you are running the bat file on the same machine where AGS is installed:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;c:\Program Files (x86)\AGSSOM\ (I believe it would most likely be here since AGS v10.0 was 32 bit I believe), if it is run from a Windows Server machine (I am using Windows Server 2008 R2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;c:\Program Files\AGSSOM\.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I run at bat file through a Windows Scheduled Task and the bat file is quite simple:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;echo %time% &amp;gt; Start_AGS_Services.txt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"c:\Program Files (x86)\AGSSOM\AGSSOM.exe" -s "AGS Virtual Directory"/"Mapservice name" &amp;gt;&amp;gt; Start_AGS_Services.txt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a txt file in the same directory as where the bat file is located so I get some limited logging for this simple process.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2015 13:18:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-programmatically-restart-map-service/m-p/463488#M42831</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2015-04-08T13:18:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to programmatically restart Map service??</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-programmatically-restart-map-service/m-p/463489#M42832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Michael - It looks like that AGSSOM.exe is not installed by arcGIS by default. I have no such file on the OS where the ArcGIS Server was installed.&amp;nbsp; I did find the page &lt;A href="http://www.arcgis.com/home/item.html?id=b06bf5c446af401e9203f89993318040" title="http://www.arcgis.com/home/item.html?id=b06bf5c446af401e9203f89993318040"&gt;http://www.arcgis.com/home/item.html?id=b06bf5c446af401e9203f89993318040&lt;/A&gt;&amp;nbsp; which indicated that it is a downloadable utility.&amp;nbsp; so it looks like it probably would help us if I could download it and add it to the designated server.&amp;nbsp; That may be a problem for us but I will see.&amp;nbsp; Thanks for the heads up on it - Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2015 14:33:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-programmatically-restart-map-service/m-p/463489#M42832</guid>
      <dc:creator>PeterLen</dc:creator>
      <dc:date>2015-04-08T14:33:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to programmatically restart Map service??</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-programmatically-restart-map-service/m-p/463490#M42833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did not realize that I had to download that utility as I had done that 3 or 4 years ago.&amp;nbsp; The newer python AGS admin utility scripts have made this utility obsolete in the AGS v10.1 and newer versions so I don't use AGSSOM.exe anymore.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2015 14:43:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-programmatically-restart-map-service/m-p/463490#M42833</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2015-04-08T14:43:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to programmatically restart Map service??</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-programmatically-restart-map-service/m-p/463491#M42834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Michael - Good news.&amp;nbsp; The AGSSOM downloaded as a ZIP file.&amp;nbsp; Within the ZIP file were versions for 9.3.1, 10.0, and 10.1.&amp;nbsp; Each version contained the source code (a single C# source code file).&amp;nbsp; I was then able to write my own Java ArcObjects version for the part I was interested in and all seems to run fine.&amp;nbsp; Thanks - Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2015 17:39:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-programmatically-restart-map-service/m-p/463491#M42834</guid>
      <dc:creator>PeterLen</dc:creator>
      <dc:date>2015-04-08T17:39:01Z</dc:date>
    </item>
  </channel>
</rss>

