<?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 Version in API (including Jumbo Hotfixes) in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Version-in-API-including-Jumbo-Hotfixes/m-p/130797#M6305</link>
    <description>&lt;P&gt;As we can&amp;nbsp; and should considere Jumbo Hotfix information as vital in formation I want to open a poll to get API support in GAIA to return the Jumbo Hotfix information as well as the version information.&lt;/P&gt;
&lt;P&gt;So please let everyone know if you want this information available in the API.&lt;/P&gt;</description>
    <pubDate>Fri, 01 Oct 2021 09:43:49 GMT</pubDate>
    <dc:creator>Hugo_vd_Kooij</dc:creator>
    <dc:date>2021-10-01T09:43:49Z</dc:date>
    <item>
      <title>Version in API (including Jumbo Hotfixes)</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Version-in-API-including-Jumbo-Hotfixes/m-p/130797#M6305</link>
      <description>&lt;P&gt;As we can&amp;nbsp; and should considere Jumbo Hotfix information as vital in formation I want to open a poll to get API support in GAIA to return the Jumbo Hotfix information as well as the version information.&lt;/P&gt;
&lt;P&gt;So please let everyone know if you want this information available in the API.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Oct 2021 09:43:49 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Version-in-API-including-Jumbo-Hotfixes/m-p/130797#M6305</guid>
      <dc:creator>Hugo_vd_Kooij</dc:creator>
      <dc:date>2021-10-01T09:43:49Z</dc:date>
    </item>
    <item>
      <title>Re: Version in API (including Jumbo Hotfixes)</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Version-in-API-including-Jumbo-Hotfixes/m-p/130844#M6306</link>
      <description>&lt;P&gt;You already can do that, even if it's not so nice, but you also have to differentiate between GW and MGMT. I can possibly imagine to add that information into&amp;nbsp;&lt;EM&gt;gateways-and-servers&lt;/EM&gt; API call, but the&amp;nbsp;&lt;EM&gt;cpinfo&lt;/EM&gt; data has to be already available on the mgmt server. For now you can do this:&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;mgmt_cli -r true run-script script-name "List Mgmt JHF" script "cpinfo -yMGMT 2&amp;gt;/dev/null | pcregrep -o1 -o2 '\s+HOTFIX_([^H]+)\w+\s+Take:\s+(\d+)'" targets.1 "management"  --format json 

mgmt_cli -r true run-script script-name "List Mgmt JHF" script "cpinfo -yFW1 2&amp;gt;/dev/null | pcregrep -o1 -o2 '\s+HOTFIX_([^H]+)\w+\s+Take:\s+(\d+)'" targets.1 "gateway"  --format json

mgmt_cli -r true run-script script-name "List System JHF" script "cpinfo -yALL 2&amp;gt;/dev/null | pcregrep -o1 -o2 | sort -u'\s+HOTFIX_([^H]+)\w+\s+Take:\s+(\d+)'" targets.1 "chkp_system"  --format json &lt;/LI-CODE&gt;
&lt;P&gt;&lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/#cli/run-script~v1.6%20" target="_blank"&gt;https://sc1.checkpoint.com/documents/latest/APIs/#cli/run-script~v1.6%20&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;You can run against GW or MGMT or either system, and you will get back a result like:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;R81_JUMBO_36&lt;/LI-CODE&gt;
&lt;P&gt;I hope that helps for now.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Oct 2021 20:13:50 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Version-in-API-including-Jumbo-Hotfixes/m-p/130844#M6306</guid>
      <dc:creator>Art_Zalenekas</dc:creator>
      <dc:date>2021-10-01T20:13:50Z</dc:date>
    </item>
  </channel>
</rss>

