<?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: Use API to determine what JHF is installed in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Use-API-to-determine-what-JHF-is-installed/m-p/263621#M9319</link>
    <description>&lt;P&gt;Not directly. You can use the API to try to &lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/?#cli/run-script~v2.0.1%20" target="_self"&gt;run a command on the device via CPRID&lt;/A&gt;.&lt;/P&gt;</description>
    <pubDate>Tue, 25 Nov 2025 15:36:07 GMT</pubDate>
    <dc:creator>Bob_Zimmerman</dc:creator>
    <dc:date>2025-11-25T15:36:07Z</dc:date>
    <item>
      <title>Use API to determine what JHF is installed</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Use-API-to-determine-what-JHF-is-installed/m-p/263613#M9318</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Is there an API call to identify what JHF is installed on a gateway.&lt;/P&gt;&lt;P&gt;I can get the version details using 'show-gateways-and-servers', but not what JHF is installed.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Nov 2025 13:54:58 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Use-API-to-determine-what-JHF-is-installed/m-p/263613#M9318</guid>
      <dc:creator>canuck</dc:creator>
      <dc:date>2025-11-25T13:54:58Z</dc:date>
    </item>
    <item>
      <title>Re: Use API to determine what JHF is installed</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Use-API-to-determine-what-JHF-is-installed/m-p/263621#M9319</link>
      <description>&lt;P&gt;Not directly. You can use the API to try to &lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/?#cli/run-script~v2.0.1%20" target="_self"&gt;run a command on the device via CPRID&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Nov 2025 15:36:07 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Use-API-to-determine-what-JHF-is-installed/m-p/263621#M9319</guid>
      <dc:creator>Bob_Zimmerman</dc:creator>
      <dc:date>2025-11-25T15:36:07Z</dc:date>
    </item>
    <item>
      <title>Re: Use API to determine what JHF is installed</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Use-API-to-determine-what-JHF-is-installed/m-p/263628#M9320</link>
      <description>&lt;P&gt;This is missing in both the Management API and the GAIA API.&lt;/P&gt;
&lt;P&gt;A workaround is to use the GAIA API and the "run-script" endpoint which isn't that straightforward either.&lt;/P&gt;
&lt;P&gt;But at least you can manage this via Web Services and JSON data manipulation.&lt;/P&gt;
&lt;P&gt;Here's an example via mgmt_cli and text output.&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Send the "cpinfo -y FW1 | grep Take" command&lt;/LI&gt;
&lt;LI&gt;Receive a task-id&lt;/LI&gt;
&lt;LI&gt;Show the task-id, the output of the command will be displayed in Base 64 encoding&lt;/LI&gt;
&lt;LI&gt;Decode the output and interpret it further&lt;/LI&gt;
&lt;/OL&gt;
&lt;LI-CODE lang="markup"&gt;#mgmt_cli run-script script 'cpinfo -y FW1 | grep Take' --version 1.8 --context gaia_api                
task-id: a3cc0a7c-525f-4235-8a82-6ec22ff289e5

#mgmt_cli show-task task-id "a3cc0a7c-525f-4235-8a82-6ec22ff289e5" --version 1.8 --context gaia_api
tasks:
- execution-time: '1.31'
  last-update-time:
    iso-8601: 2025-11-25T17:10+1.00.0
    posix: 1764087006.094337
  progress-description: succeeded
  progress-percentage: 100
  start-time:
    iso-8601: 2025-11-25T17:10+1.00.0
    posix: 1764087004.786555
  status: succeeded
  status-code: 200
  task-details:
  - error: ClRoaXMgaXMgQ2hlY2sgUG9pbnQgQ1BpbmZvIEJ1aWxkIDkxNDAwMDI1MCBmb3IgR0FJQQ==
    output: CUhPVEZJWF9SODJfSlVNQk9fSEZfTUFJTglUYWtlOiAgNDQ=
    return-value: 0
  task-id: a3cc0a7c-525f-4235-8a82-6ec22ff289e5
  task-name: /run-script
  time-spent-in-queue: '0.00'

# echo "CUhPVEZJWF9SODJfSlVNQk9fSEZfTUFJTglUYWtlOiAgNDQ=" | base64 -d
        HOTFIX_R82_JUMBO_HF_MAIN        Take:  44&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;If the API team would include this in the "show-version" GAIA API endpoint, that would be great.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Nov 2025 16:24:00 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Use-API-to-determine-what-JHF-is-installed/m-p/263628#M9320</guid>
      <dc:creator>Alex-</dc:creator>
      <dc:date>2025-11-25T16:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: Use API to determine what JHF is installed</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Use-API-to-determine-what-JHF-is-installed/m-p/263649#M9321</link>
      <description>&lt;P&gt;Thanks for your response.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Nov 2025 07:36:48 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Use-API-to-determine-what-JHF-is-installed/m-p/263649#M9321</guid>
      <dc:creator>canuck</dc:creator>
      <dc:date>2025-11-26T07:36:48Z</dc:date>
    </item>
    <item>
      <title>Re: Use API to determine what JHF is installed</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Use-API-to-determine-what-JHF-is-installed/m-p/263656#M9322</link>
      <description>&lt;P&gt;Thanks for your response&lt;/P&gt;</description>
      <pubDate>Wed, 26 Nov 2025 09:40:28 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Use-API-to-determine-what-JHF-is-installed/m-p/263656#M9322</guid>
      <dc:creator>canuck</dc:creator>
      <dc:date>2025-11-26T09:40:28Z</dc:date>
    </item>
  </channel>
</rss>

