<?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 Services - Server Admin Toolbox in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/start-stop-services-server-admin-toolbox/m-p/714284#M55420</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Travis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looks like you are missing a quote at the end of your 'Service_List' variable.&amp;nbsp; Try the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14121723084548646" jivemacro_uid="_14121723084548646" modifiedtitle="true"&gt;
&lt;P&gt;import arcpy&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;arcpy.ImportToolbox("//KERMIT/GIS_StaffOnly/Toolboxes/ServerAdminToolkit/Server Admin Toolkit.tbx")&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Service_List = "SampleWorldCities.MapServer;Codes//BuildingFootprintsByCodesIPad.MapServer;Codes//BuildingsWithAttachments.MapServer;Codes//CodesEnforcement.MapServer;Codes//CodesInspectionByType.MapServer;Codes//CodesInspectionOver6MonthsAgo.MapServer"&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Server_Name = "idrisi"&lt;/P&gt;
&lt;P&gt;Port = "6080"&lt;/P&gt;
&lt;P&gt;Admin_User = "*****"&lt;/P&gt;
&lt;P&gt;Admin_Password = "******"&lt;/P&gt;

&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Oct 2014 14:05:17 GMT</pubDate>
    <dc:creator>JakeSkinner</dc:creator>
    <dc:date>2014-10-01T14:05:17Z</dc:date>
    <item>
      <title>Start Stop Services - Server Admin Toolbox</title>
      <link>https://community.esri.com/t5/python-questions/start-stop-services-server-admin-toolbox/m-p/714283#M55419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am having the hardest time keeping these simple scripts up and running. It will stop them but then it will not restart them, and all I am doing is changing STOP to START in the script. it keeps telling me invalid parameters error code 000800.&amp;nbsp; Seems like which ever one I run first works, then the second one always give the "Invalid Parameters" error 000800 services is not a member invalid parameter&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the code I am using, any help would be greatly appreciated! This is driving me nuts and causing a lot of work after hours.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# -*- coding: utf-8 -*-&lt;/P&gt;&lt;P&gt;# ---------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;# StartServicesIdrisi.py&lt;/P&gt;&lt;P&gt;# Created on: 2014-09-30 15:01:42.00000&lt;/P&gt;&lt;P&gt;#&amp;nbsp;&amp;nbsp; (generated by ArcGIS/ModelBuilder)&lt;/P&gt;&lt;P&gt;# Usage: StartServicesIdrisi &amp;lt;Service_List&amp;gt;&lt;/P&gt;&lt;P&gt;# Description:&lt;/P&gt;&lt;P&gt;# ---------------------------------------------------------------------------&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# Import arcpy module&lt;/P&gt;&lt;P&gt;import arcpy&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# Load required toolboxes&lt;/P&gt;&lt;P&gt;arcpy.ImportToolbox("//KERMIT/GIS_StaffOnly/Toolboxes/ServerAdminToolkit/Server Admin Toolkit.tbx")&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# Script arguments&lt;/P&gt;&lt;P&gt;Service_List = arcpy.GetParameterAsText(0)&lt;/P&gt;&lt;P&gt;if Service_List == '#' or not Service_List:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Service_List = "SampleWorldCities.MapServer;Codes//BuildingFootprintsByCodesIPad.MapServer;Codes//BuildingsWithAttachments.MapServer;Codes//CodesEnforcement.MapServer;Codes//CodesInspectionByType.MapServer;Codes//CodesInspectionOver6MonthsAgo.MapServer"&lt;/P&gt;&lt;P&gt;# Local variables:&lt;/P&gt;&lt;P&gt;Server_Name = "idrisi"&lt;/P&gt;&lt;P&gt;Port = "6080"&lt;/P&gt;&lt;P&gt;Admin_User = "*****"&lt;/P&gt;&lt;P&gt;Admin_Password = "******"&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# Process: Stop, Start, Delete Services&lt;/P&gt;&lt;P&gt;arcpy.StopStartService_ESRIServerAdminToolkit(Server_Name, Port, Admin_User, Admin_Password, "Start", Service_List)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2014 13:49:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/start-stop-services-server-admin-toolbox/m-p/714283#M55419</guid>
      <dc:creator>BenDrury</dc:creator>
      <dc:date>2014-10-01T13:49:30Z</dc:date>
    </item>
    <item>
      <title>Re: Start Stop Services - Server Admin Toolbox</title>
      <link>https://community.esri.com/t5/python-questions/start-stop-services-server-admin-toolbox/m-p/714284#M55420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Travis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looks like you are missing a quote at the end of your 'Service_List' variable.&amp;nbsp; Try the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14121723084548646" jivemacro_uid="_14121723084548646" modifiedtitle="true"&gt;
&lt;P&gt;import arcpy&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;arcpy.ImportToolbox("//KERMIT/GIS_StaffOnly/Toolboxes/ServerAdminToolkit/Server Admin Toolkit.tbx")&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Service_List = "SampleWorldCities.MapServer;Codes//BuildingFootprintsByCodesIPad.MapServer;Codes//BuildingsWithAttachments.MapServer;Codes//CodesEnforcement.MapServer;Codes//CodesInspectionByType.MapServer;Codes//CodesInspectionOver6MonthsAgo.MapServer"&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Server_Name = "idrisi"&lt;/P&gt;
&lt;P&gt;Port = "6080"&lt;/P&gt;
&lt;P&gt;Admin_User = "*****"&lt;/P&gt;
&lt;P&gt;Admin_Password = "******"&lt;/P&gt;

&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2014 14:05:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/start-stop-services-server-admin-toolbox/m-p/714284#M55420</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2014-10-01T14:05:17Z</dc:date>
    </item>
    <item>
      <title>Re: Start Stop Services - Server Admin Toolbox</title>
      <link>https://community.esri.com/t5/python-questions/start-stop-services-server-admin-toolbox/m-p/714285#M55421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry I deleted a lot of that line of code for viewing purposes on here. It runs fine the first time if I stop or start them. It is when I try running it the second time to either stop them or start them back is when it fails. It returns codes 000800 and says all services are not members&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2014 14:08:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/start-stop-services-server-admin-toolbox/m-p/714285#M55421</guid>
      <dc:creator>BenDrury</dc:creator>
      <dc:date>2014-10-01T14:08:40Z</dc:date>
    </item>
    <item>
      <title>Re: Start Stop Services - Server Admin Toolbox</title>
      <link>https://community.esri.com/t5/python-questions/start-stop-services-server-admin-toolbox/m-p/714286#M55422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Interesting because I have a similar problem, but I'm running the agsAdmin.exe from command line.&amp;nbsp; The service stops fine, but receive error "could not find resource or operation" when the same command is run with "start" parameter.&amp;nbsp; Trying to figure out why...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Oct 2014 16:23:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/start-stop-services-server-admin-toolbox/m-p/714286#M55422</guid>
      <dc:creator>GregSnelling</dc:creator>
      <dc:date>2014-10-17T16:23:32Z</dc:date>
    </item>
    <item>
      <title>Re: Start Stop Services - Server Admin Toolbox</title>
      <link>https://community.esri.com/t5/python-questions/start-stop-services-server-admin-toolbox/m-p/714287#M55423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have started using Python-AGS-Admin_Master tools, and not problems at all. It utilizes the rest endpoints and not hard code to stop and start services. Works much better with not complications. Very easy to configure.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Oct 2014 16:27:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/start-stop-services-server-admin-toolbox/m-p/714287#M55423</guid>
      <dc:creator>BenDrury</dc:creator>
      <dc:date>2014-10-17T16:27:33Z</dc:date>
    </item>
  </channel>
</rss>

