<?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: Script to find ArcMap Runtimes in ArcGIS Server in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/script-to-find-arcmap-runtimes-in-arcgis-server/m-p/1273385#M67299</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/560410"&gt;@RogerDunnGIS&lt;/a&gt;,&amp;nbsp;I know you're looking to gain this information for your ArcMap-based services via Python but would the &lt;A href="https://enterprise.arcgis.com/en/server/10.9/publish-services/windows/migrate-services-using-the-command-line.htm" target="_self"&gt;UpdateArcMapServices utility&lt;/A&gt; help you in this instance?&amp;nbsp; Analysis mode would provide an inventory of your services without migrating them.&amp;nbsp; &lt;A href="https://www.esri.com/arcgis-blog/products/arcgis-enterprise/administration/migrating-services-to-the-arcgis-pro-based-runtime-in-arcgis-enterprise-10-9/" target="_self"&gt;This blog&lt;/A&gt; also goes into a bit more detail about this.&lt;/P&gt;</description>
    <pubDate>Thu, 30 Mar 2023 15:24:52 GMT</pubDate>
    <dc:creator>jill_es</dc:creator>
    <dc:date>2023-03-30T15:24:52Z</dc:date>
    <item>
      <title>Script to find ArcMap Runtimes in ArcGIS Server</title>
      <link>https://community.esri.com/t5/python-questions/script-to-find-arcmap-runtimes-in-arcgis-server/m-p/1272604#M67266</link>
      <description>&lt;P&gt;I have ArcGIS Pro 2.9.5 installed on my desktop.&amp;nbsp; I have ArcGIS Enterprise 10.9.1 installed on our server.&amp;nbsp; I have administrative access.&amp;nbsp; Please help me find a way, in Python, to list all services that use the ArcMap runtime, in preparation for our upgrade to Enterprise 11.&amp;nbsp; Here is what I have so far:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import arcgis, arcgis.gis.server
admin_user = "admin"
admin_pass = "abc123" # Heaven forbid
portal_url = "https://my.organization.org/portal"
server_url = "https://my.organization.org/server"
our_portal = arcgis.GIS(portal_url, admin_user, admin_pass)
our_server = arcgis.gis.server.Server(server_url, gis=our_portal)
content_mgr = our_server.content
folders = content_mgr.folders
# Obviously, I'll loop through folders and services once I get the test right
known_arcmap_service = content_mgr.get("xyz") # xyz is in the root
known_arcpro_service = content_mgr.get("abc", "folder")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried accessing several properties of both known_arc*_service&amp;nbsp;objects, and cannot find any indicator in Python as to which one uses&amp;nbsp;the ArcMap runtime and which uses the ArcPro one.&amp;nbsp; Therefore, I can't programmatically find them.&amp;nbsp; We have hundreds of services and it would be great to do this programmatically and not by loading 10 items at a time in ArcGIS Server Manager.&lt;/P&gt;&lt;P&gt;If there's another way to do this in Manager, then let me know, or any simple way to query which services use the ArcMap runtime would suffice.&amp;nbsp; Thank you, community!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2023 17:37:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/script-to-find-arcmap-runtimes-in-arcgis-server/m-p/1272604#M67266</guid>
      <dc:creator>RogerDunnGIS</dc:creator>
      <dc:date>2023-03-28T17:37:20Z</dc:date>
    </item>
    <item>
      <title>Re: Script to find ArcMap Runtimes in ArcGIS Server</title>
      <link>https://community.esri.com/t5/python-questions/script-to-find-arcmap-runtimes-in-arcgis-server/m-p/1272773#M67274</link>
      <description>&lt;P&gt;ArcMap vs ArcPro runtime?&amp;nbsp; Are you trying to find out which services were published using which software package or something else?&lt;/P&gt;&lt;P&gt;If so, could loop through the arcgisinput folder (C:\arcgisserver\directories\arcgissystem\arcgisinput) and look for *.mxd files vs *.mapx files.&lt;/P&gt;&lt;P&gt;R_&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2023 20:37:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/script-to-find-arcmap-runtimes-in-arcgis-server/m-p/1272773#M67274</guid>
      <dc:creator>RhettZufelt</dc:creator>
      <dc:date>2023-03-28T20:37:24Z</dc:date>
    </item>
    <item>
      <title>Re: Script to find ArcMap Runtimes in ArcGIS Server</title>
      <link>https://community.esri.com/t5/python-questions/script-to-find-arcmap-runtimes-in-arcgis-server/m-p/1273059#M67288</link>
      <description>&lt;P&gt;I do have a script that does that, but it pries into the manifest of each service using the arcgis API instead.&lt;/P&gt;&lt;P&gt;What is a .mapx file?&amp;nbsp; I'm not familiar with that file extension.&lt;/P&gt;&lt;P&gt;However, ArcGIS Server 10.9.1 offers a button in ArcGIS Server Manager that allows a person to convert their ArcMap run-time service into an ArcPro run-time service.&amp;nbsp; Meanwhile, the source of the service remains the same: an .mxd document.&amp;nbsp; When you look at ArcGIS Server Manager, it says right there under the service description which run-time it's using; I just don't know why it's been so hard for me to find that piece of data using the API.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RogerDunnGIS_0-1680100553085.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/66657iC490DA1B3A241CBE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RogerDunnGIS_0-1680100553085.jpeg" alt="RogerDunnGIS_0-1680100553085.jpeg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RogerDunnGIS_1-1680100609737.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/66658iCB3B5EAB9DAB3262/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RogerDunnGIS_1-1680100609737.png" alt="RogerDunnGIS_1-1680100609737.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I did end up getting the ArcMap run-time services by eye, but I want to check back again in a week or two to see if users are converting their services to ArcPro for the version 11 update.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2023 14:40:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/script-to-find-arcmap-runtimes-in-arcgis-server/m-p/1273059#M67288</guid>
      <dc:creator>RogerDunnGIS</dc:creator>
      <dc:date>2023-03-29T14:40:13Z</dc:date>
    </item>
    <item>
      <title>Re: Script to find ArcMap Runtimes in ArcGIS Server</title>
      <link>https://community.esri.com/t5/python-questions/script-to-find-arcmap-runtimes-in-arcgis-server/m-p/1273065#M67289</link>
      <description>&lt;P&gt;Server makes a copy of the map document that the service is published from in the arcgisinput folders.&lt;/P&gt;&lt;P&gt;If it was created with ArcMap, the file will have a .mxd extention.&amp;nbsp; If created with Pro, will be .mapx extention, which appears to be the same as an .aprx file and opens directly in Pro.&lt;/P&gt;&lt;P&gt;R_&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2023 14:49:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/script-to-find-arcmap-runtimes-in-arcgis-server/m-p/1273065#M67289</guid>
      <dc:creator>RhettZufelt</dc:creator>
      <dc:date>2023-03-29T14:49:22Z</dc:date>
    </item>
    <item>
      <title>Re: Script to find ArcMap Runtimes in ArcGIS Server</title>
      <link>https://community.esri.com/t5/python-questions/script-to-find-arcmap-runtimes-in-arcgis-server/m-p/1273385#M67299</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/560410"&gt;@RogerDunnGIS&lt;/a&gt;,&amp;nbsp;I know you're looking to gain this information for your ArcMap-based services via Python but would the &lt;A href="https://enterprise.arcgis.com/en/server/10.9/publish-services/windows/migrate-services-using-the-command-line.htm" target="_self"&gt;UpdateArcMapServices utility&lt;/A&gt; help you in this instance?&amp;nbsp; Analysis mode would provide an inventory of your services without migrating them.&amp;nbsp; &lt;A href="https://www.esri.com/arcgis-blog/products/arcgis-enterprise/administration/migrating-services-to-the-arcgis-pro-based-runtime-in-arcgis-enterprise-10-9/" target="_self"&gt;This blog&lt;/A&gt; also goes into a bit more detail about this.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2023 15:24:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/script-to-find-arcmap-runtimes-in-arcgis-server/m-p/1273385#M67299</guid>
      <dc:creator>jill_es</dc:creator>
      <dc:date>2023-03-30T15:24:52Z</dc:date>
    </item>
    <item>
      <title>Re: Script to find ArcMap Runtimes in ArcGIS Server</title>
      <link>https://community.esri.com/t5/python-questions/script-to-find-arcmap-runtimes-in-arcgis-server/m-p/1273552#M67305</link>
      <description>&lt;P&gt;I appreciate your reply.&amp;nbsp; I'm aware that Server makes a copy of the original ArcMap document, and that sometimes there are changes to it, like when data is copied to the server.&amp;nbsp; What I was trying to explain is that you can have an ArcGIS Server service running with the Pro run-time, even though it was originally published with ArcMap.&amp;nbsp; I explained in the last reply how a user might do that.&amp;nbsp; Once the conversion is done, the original ArcMap document remains in the folder, and Server Manager will continue to report that the original document was an .mxd, even though a service is running with the Pro run-time.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2023 14:21:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/script-to-find-arcmap-runtimes-in-arcgis-server/m-p/1273552#M67305</guid>
      <dc:creator>RogerDunnGIS</dc:creator>
      <dc:date>2023-03-30T14:21:50Z</dc:date>
    </item>
    <item>
      <title>Re: Script to find ArcMap Runtimes in ArcGIS Server</title>
      <link>https://community.esri.com/t5/python-questions/script-to-find-arcmap-runtimes-in-arcgis-server/m-p/1273553#M67306</link>
      <description>&lt;P&gt;As a Python programmer, I sometimes forget about other tools available that aren't already in ArcToolbox.&amp;nbsp; Of course, Esri provides many tools to users and administrators that are only available in some environments, like Command Prompt.&amp;nbsp; Thank you for your solution.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2023 14:23:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/script-to-find-arcmap-runtimes-in-arcgis-server/m-p/1273553#M67306</guid>
      <dc:creator>RogerDunnGIS</dc:creator>
      <dc:date>2023-03-30T14:23:01Z</dc:date>
    </item>
  </channel>
</rss>

