<?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>idea JSON Output for Patch Notification Utility in ArcGIS Enterprise Ideas</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-ideas/json-output-for-patch-notification-utility/idi-p/935041</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Our organization currently uses the "Check for Arcgis Enterprise Updates" tool A.K.A the Patch Notification Utility to figure out what patches are needed for each of servers/portals/data stores. Using the subprocess library we have scheduled python scripts that run the command&amp;nbsp; "&lt;SPAN&gt;patchnotification.bat -c all " , which gives us a string output that then emails administrators about new patches and we would like to do other things with it too if it was easier to manage.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The problem with this setup is that the string output is terrible to work with and I absolutely hate working with regex patterns. If there was a way to have a simple JSON output, I could categorize things a million times easier and make a half decent automation.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is an example of how to get the string output with Python&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;import subprocess&lt;/P&gt;&lt;P&gt;bat_file = "*********"&lt;BR /&gt; output = subprocess.check_output(bat_file)&lt;BR /&gt;print(str(output))&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here is what the string output looks like.&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro" style="background: none #f6f6f6; border-left: 2px solid #cccccc; margin: 10px 0px; padding: 10px 20px;"&gt;&lt;P&gt;\r\n================================================================================\r\n&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ArcGIS Enterprise Patch Notification\n================================================================================\r\n\r\nInstalled Components\r\n\r\n&amp;nbsp; &amp;nbsp; ArcGIS GeoEvent Server&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 10.8\r\n&amp;nbsp; &amp;nbsp; ArcGIS Server&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;10.8\r\n\r\n================================================================================\r\n\r\nAvailable Updates\r\n\r\n ArcGIS GeoEvent Server\r\n&amp;nbsp; &amp;nbsp; (no updates available)\r\n\r\n ArcGIS Server\r\n&amp;nbsp; &amp;nbsp; - ArcGIS Server 10.8 Utility Network Update Subnetwork Patch\n&amp;nbsp; &amp;nbsp; &amp;nbsp; https://support.esri.com/download/7795\n&amp;nbsp; &amp;nbsp; &amp;nbsp; Release Date: 4/9/20\n\r\n================================================================================\r\n\r\nInstalled Patches\r\n&amp;nbsp; &amp;nbsp; - ArcGIS Server 10.8 SQL Server Enterprise Geodatabase Upgrade Patch\n&amp;nbsp; &amp;nbsp; - ArcGIS GeoEvent Server 10.8 Patch 1\n\r\n================================================================================\r\nTo browse a full list of Esri patches and service packs, visit the Esri Support site:\r\nhttp://support.esri.com/Downloads\r\n'&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/302484"&gt;Dorothy Ho&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/290037"&gt;Hilary Curtis&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 24 May 2020 17:58:45 GMT</pubDate>
    <dc:creator>BrettFrahm</dc:creator>
    <dc:date>2020-05-24T17:58:45Z</dc:date>
    <item>
      <title>JSON Output for Patch Notification Utility</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-ideas/json-output-for-patch-notification-utility/idi-p/935041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Our organization currently uses the "Check for Arcgis Enterprise Updates" tool A.K.A the Patch Notification Utility to figure out what patches are needed for each of servers/portals/data stores. Using the subprocess library we have scheduled python scripts that run the command&amp;nbsp; "&lt;SPAN&gt;patchnotification.bat -c all " , which gives us a string output that then emails administrators about new patches and we would like to do other things with it too if it was easier to manage.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The problem with this setup is that the string output is terrible to work with and I absolutely hate working with regex patterns. If there was a way to have a simple JSON output, I could categorize things a million times easier and make a half decent automation.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is an example of how to get the string output with Python&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;import subprocess&lt;/P&gt;&lt;P&gt;bat_file = "*********"&lt;BR /&gt; output = subprocess.check_output(bat_file)&lt;BR /&gt;print(str(output))&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here is what the string output looks like.&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro" style="background: none #f6f6f6; border-left: 2px solid #cccccc; margin: 10px 0px; padding: 10px 20px;"&gt;&lt;P&gt;\r\n================================================================================\r\n&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ArcGIS Enterprise Patch Notification\n================================================================================\r\n\r\nInstalled Components\r\n\r\n&amp;nbsp; &amp;nbsp; ArcGIS GeoEvent Server&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 10.8\r\n&amp;nbsp; &amp;nbsp; ArcGIS Server&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;10.8\r\n\r\n================================================================================\r\n\r\nAvailable Updates\r\n\r\n ArcGIS GeoEvent Server\r\n&amp;nbsp; &amp;nbsp; (no updates available)\r\n\r\n ArcGIS Server\r\n&amp;nbsp; &amp;nbsp; - ArcGIS Server 10.8 Utility Network Update Subnetwork Patch\n&amp;nbsp; &amp;nbsp; &amp;nbsp; https://support.esri.com/download/7795\n&amp;nbsp; &amp;nbsp; &amp;nbsp; Release Date: 4/9/20\n\r\n================================================================================\r\n\r\nInstalled Patches\r\n&amp;nbsp; &amp;nbsp; - ArcGIS Server 10.8 SQL Server Enterprise Geodatabase Upgrade Patch\n&amp;nbsp; &amp;nbsp; - ArcGIS GeoEvent Server 10.8 Patch 1\n\r\n================================================================================\r\nTo browse a full list of Esri patches and service packs, visit the Esri Support site:\r\nhttp://support.esri.com/Downloads\r\n'&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/302484"&gt;Dorothy Ho&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/290037"&gt;Hilary Curtis&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 May 2020 17:58:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-ideas/json-output-for-patch-notification-utility/idi-p/935041</guid>
      <dc:creator>BrettFrahm</dc:creator>
      <dc:date>2020-05-24T17:58:45Z</dc:date>
    </item>
  </channel>
</rss>

