<?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 display recommended and latest Jumbo Hotfix Accumulators in Firewall and Security Management</title>
    <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Script-to-display-recommended-and-latest-Jumbo-Hotfix/m-p/193136#M35869</link>
    <description>&lt;P&gt;Reused my script posted above to output json format without requiring xmllint.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;#!/bin/bash

if [ -f /etc/profile.d/CP.sh ]; then 
    CURL="curl_cli -s"
else
    CURL="curl -s"
fi

for VER in R80.40 R81 R81.10 R81.20; do
    if [ $VER = "R81" ]; then
            VER2="R81.00"
    else
            VER2=$VER
    fi
    TAKE_URL="http://sc1.checkpoint.com/documents/Jumbo_HFA/$VER/$VER2/"
    
    $CURL "$TAKE_URL/${VER2}_Downloads.htm" |     
        awk '   /&amp;lt;h1&amp;gt;/              { version=substr($1,5) }
                /Take.+Recommended/ { take_r=$2 } 
                /Take.+Latest/      { take_l=$2 }
                END                 { printf( "%s %s %s\n", version, take_r, "Recommended");
                                      printf( "%s %s %s\n", version, take_l?take_l:take_r, "Latest"); }' |
        jq --arg url $TAKE_URL -R '.|split(" ") as $jhf | 
            { "version" : $jhf[0], "take" : $jhf[1], "status" : $jhf[2], "url" : ($url+"Take_"+$jhf[1]+".htm") }'
done | 
  jq -s '{ jhf_list :  .|sort_by(.version,.take)  }'&lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 20 Sep 2023 08:44:55 GMT</pubDate>
    <dc:creator>bernhard_m</dc:creator>
    <dc:date>2023-09-20T08:44:55Z</dc:date>
    <item>
      <title>Script to display recommended and latest Jumbo Hotfix Accumulators</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Script-to-display-recommended-and-latest-Jumbo-Hotfix/m-p/190606#M35175</link>
      <description>&lt;P&gt;Script to get an overview of the Recommended and Latest Jumbo Hotfix Accumulators of our Quantum Security Gateways&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Output:&lt;/P&gt;
&lt;P&gt;##############################################################&lt;BR /&gt;# Recommended &amp;amp; Latest Jumbo Hotfix Accumulators per version #&lt;BR /&gt;##############################################################&lt;/P&gt;
&lt;P&gt;######################&lt;BR /&gt;### Version R80.40 ###&lt;BR /&gt;######################&lt;/P&gt;
&lt;P&gt;Recommended:&lt;BR /&gt;Take 197&lt;/P&gt;
&lt;P&gt;Latest:&lt;BR /&gt;Take 198&lt;/P&gt;
&lt;P&gt;######################&lt;BR /&gt;### Version R81 ###&lt;BR /&gt;######################&lt;/P&gt;
&lt;P&gt;Recommended:&lt;BR /&gt;Take 87&lt;/P&gt;
&lt;P&gt;Latest:&lt;/P&gt;
&lt;P&gt;######################&lt;BR /&gt;### Version R81.10 ###&lt;BR /&gt;######################&lt;/P&gt;
&lt;P&gt;Recommended:&lt;BR /&gt;Take 109&lt;/P&gt;
&lt;P&gt;Latest:&lt;BR /&gt;Take 110&lt;/P&gt;
&lt;P&gt;######################&lt;BR /&gt;### Version R81.20 ###&lt;BR /&gt;######################&lt;/P&gt;
&lt;P&gt;Recommended:&lt;BR /&gt;Take 24&lt;/P&gt;
&lt;P&gt;Latest:&lt;BR /&gt;Take 26&lt;/P&gt;
&lt;P&gt;#####################################################&lt;/P&gt;</description>
      <pubDate>Mon, 28 Aug 2023 06:55:58 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Script-to-display-recommended-and-latest-Jumbo-Hotfix/m-p/190606#M35175</guid>
      <dc:creator>MarkWeber</dc:creator>
      <dc:date>2023-08-28T06:55:58Z</dc:date>
    </item>
    <item>
      <title>Re: Script to display recommended and latest Jumbo Hotfix Accumulators</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Script-to-display-recommended-and-latest-Jumbo-Hotfix/m-p/190630#M35178</link>
      <description>&lt;P&gt;Ran it in my lab, R81.20, but just keep saying "bad interpreter"&lt;/P&gt;
&lt;P&gt;Andy&lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2023 16:43:17 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Script-to-display-recommended-and-latest-Jumbo-Hotfix/m-p/190630#M35178</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2023-08-25T16:43:17Z</dc:date>
    </item>
    <item>
      <title>Re: Script to display recommended and latest Jumbo Hotfix Accumulators</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Script-to-display-recommended-and-latest-Jumbo-Hotfix/m-p/190694#M35190</link>
      <description>&lt;P&gt;Hi, please try it again. I changed the script a little so it runs on a standard Check Point gateway or management server.&lt;/P&gt;
&lt;P&gt;If you wan to run this script on a standard linux server you need to change curl_cli to curl in the script.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Aug 2023 06:57:20 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Script-to-display-recommended-and-latest-Jumbo-Hotfix/m-p/190694#M35190</guid>
      <dc:creator>MarkWeber</dc:creator>
      <dc:date>2023-08-28T06:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: Script to display recommended and latest Jumbo Hotfix Accumulators</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Script-to-display-recommended-and-latest-Jumbo-Hotfix/m-p/190717#M35195</link>
      <description>&lt;P&gt;Nope, exact same error.&lt;/P&gt;
&lt;P&gt;Andy&lt;/P&gt;</description>
      <pubDate>Mon, 28 Aug 2023 12:15:56 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Script-to-display-recommended-and-latest-Jumbo-Hotfix/m-p/190717#M35195</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2023-08-28T12:15:56Z</dc:date>
    </item>
    <item>
      <title>Re: Script to display recommended and latest Jumbo Hotfix Accumulators</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Script-to-display-recommended-and-latest-Jumbo-Hotfix/m-p/190724#M35196</link>
      <description>&lt;P&gt;Try dos2unix&lt;/P&gt;</description>
      <pubDate>Mon, 28 Aug 2023 12:41:24 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Script-to-display-recommended-and-latest-Jumbo-Hotfix/m-p/190724#M35196</guid>
      <dc:creator>Tal_Paz-Fridman</dc:creator>
      <dc:date>2023-08-28T12:41:24Z</dc:date>
    </item>
    <item>
      <title>Re: Script to display recommended and latest Jumbo Hotfix Accumulators</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Script-to-display-recommended-and-latest-Jumbo-Hotfix/m-p/190725#M35197</link>
      <description>&lt;P&gt;As much as I would like to blame it being Monday morning, its layer 8 issue on my end lol&lt;/P&gt;
&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/585"&gt;@Tal_Paz-Fridman&lt;/a&gt;&amp;nbsp;, that did it &lt;span class="lia-unicode-emoji" title=":raising_hands:"&gt;🙌&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;[Expert@quantum-firewall:0]# dos2unix *&lt;BR /&gt;dos2unix: converting file Software_version_check.sh to Unix format ...&lt;BR /&gt;[Expert@quantum-firewall:0]# ls&lt;BR /&gt;Software_version_check.sh&lt;BR /&gt;[Expert@quantum-firewall:0]# chmod 777 *&lt;BR /&gt;[Expert@quantum-firewall:0]# ./Software_version_check.sh&lt;BR /&gt;##############################################################&lt;BR /&gt;# Recommended &amp;amp; Latest Jumbo Hotfix Accumulators per version #&lt;BR /&gt;##############################################################&lt;/P&gt;
&lt;P&gt;######################&lt;BR /&gt;### Version R80.40 ###&lt;BR /&gt;######################&lt;/P&gt;
&lt;P&gt;Recommended:&lt;BR /&gt;Take 197&lt;/P&gt;
&lt;P&gt;Latest:&lt;BR /&gt;Take 198&lt;/P&gt;
&lt;P&gt;######################&lt;BR /&gt;### Version R81 ###&lt;BR /&gt;######################&lt;/P&gt;
&lt;P&gt;Recommended:&lt;BR /&gt;Take 87&lt;/P&gt;
&lt;P&gt;Latest:&lt;/P&gt;
&lt;P&gt;######################&lt;BR /&gt;### Version R81.10 ###&lt;BR /&gt;######################&lt;/P&gt;
&lt;P&gt;Recommended:&lt;BR /&gt;Take 109&lt;/P&gt;
&lt;P&gt;Latest:&lt;BR /&gt;Take 110&lt;/P&gt;
&lt;P&gt;######################&lt;BR /&gt;### Version R81.20 ###&lt;BR /&gt;######################&lt;/P&gt;
&lt;P&gt;Recommended:&lt;BR /&gt;Take 24&lt;/P&gt;
&lt;P&gt;Latest:&lt;BR /&gt;Take 26&lt;/P&gt;
&lt;P&gt;#####################################################&lt;BR /&gt;[Expert@quantum-firewall:0]#&lt;/P&gt;</description>
      <pubDate>Mon, 28 Aug 2023 12:44:16 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Script-to-display-recommended-and-latest-Jumbo-Hotfix/m-p/190725#M35197</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2023-08-28T12:44:16Z</dc:date>
    </item>
    <item>
      <title>Re: Script to display recommended and latest Jumbo Hotfix Accumulators</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Script-to-display-recommended-and-latest-Jumbo-Hotfix/m-p/192989#M35701</link>
      <description>&lt;P&gt;Likewise, for similar that outputs a JSON. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;This will never run on a Gaia host until R&amp;amp;D updates xmllint to version 20913 (even on R81.20, xmllint is 20904 which doesn't have --xpath). &amp;nbsp;Regardless, this is good for anything where you're doing automation or some other monitoring. &amp;nbsp;I tweaked this from someone else's original design (acknowledgement given, too).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[det@signet ~]$ cat check_jhf.sh
#!/bin/bash

# Fetch Check Point HFA details
# Original design by Hugo van der Kooij

CURL="curl -s -k -o -"
BASE="https://sc1.checkpoint.com/documents/Jumbo_HFA"


for VER in R80.20 R80.30 R80.40 R81.10 R81.20
do
  if [ $VER = "R81" ]; then
    VER2="R81.00"
  else
    VER2=$VER
  fi

  TAKE_URL="$BASE/$VER/$VER2/"
  #echo " *** Version $VER ***"
  $CURL "${BASE}/${VER}/${VER2}/${VER2}-List-of-all-Resolved-Issues.htm" | \
  xmllint --html --xpath 'concat(//table[@class="TableStyle-TP_Table_Dark_Header_and_Pattern"]/tbody/tr[(contains(.//td[3]/p/text(),"-"))][1]/td[1]/p/a/text()," '"`printf '%s %s' Ongoing ${TAKE_URL}`"'", string(//table[@class="TableStyle-TP_Table_Dark_Header_and_Pattern"]/tbody/tr[(contains(.//td[3]/p/text(),"-"))][1]/td[1]/p/a/@href),"
", //table[@class="TableStyle-TP_Table_Dark_Header_and_Pattern"]/tbody/tr[not (contains(.//td[3]/p/text(),"-"))][1]/td[1]/p/a/text(), " Recommended '`echo $BASE/$VER/$VER2/`'", string(//table[@class="TableStyle-TP_Table_Dark_Header_and_Pattern"]/tbody/tr[not (contains(.//td[3]/p/text(),"-"))][1]/td[1]/p/a/@href),"
")' -  2&amp;gt;/dev/null |\
  sed -e 's/^.*Take //g' -e 's/ - / /g' -e 's/Ongoing Ongoing/ Ongoing/g' -e 's/  Ongoing/ Ongoing/' -e 's/General Availability[ ]*//g' |\
  jq --arg version $VER -R '.|split(" ") as $jhf |
    if ($jhf[0]|length == 0) then
      empty
    else
      { "version" : $version, "take" : $jhf[0], "status" : $jhf[1], "url" : $jhf[2] }
    end'
done |jq -s '{ jhf_list :  .|sort_by(.version,.take)  }'
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Sep 2023 20:08:29 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Script-to-display-recommended-and-latest-Jumbo-Hotfix/m-p/192989#M35701</guid>
      <dc:creator>Duane_Toler</dc:creator>
      <dc:date>2023-09-18T20:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: Script to display recommended and latest Jumbo Hotfix Accumulators</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Script-to-display-recommended-and-latest-Jumbo-Hotfix/m-p/193136#M35869</link>
      <description>&lt;P&gt;Reused my script posted above to output json format without requiring xmllint.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;#!/bin/bash

if [ -f /etc/profile.d/CP.sh ]; then 
    CURL="curl_cli -s"
else
    CURL="curl -s"
fi

for VER in R80.40 R81 R81.10 R81.20; do
    if [ $VER = "R81" ]; then
            VER2="R81.00"
    else
            VER2=$VER
    fi
    TAKE_URL="http://sc1.checkpoint.com/documents/Jumbo_HFA/$VER/$VER2/"
    
    $CURL "$TAKE_URL/${VER2}_Downloads.htm" |     
        awk '   /&amp;lt;h1&amp;gt;/              { version=substr($1,5) }
                /Take.+Recommended/ { take_r=$2 } 
                /Take.+Latest/      { take_l=$2 }
                END                 { printf( "%s %s %s\n", version, take_r, "Recommended");
                                      printf( "%s %s %s\n", version, take_l?take_l:take_r, "Latest"); }' |
        jq --arg url $TAKE_URL -R '.|split(" ") as $jhf | 
            { "version" : $jhf[0], "take" : $jhf[1], "status" : $jhf[2], "url" : ($url+"Take_"+$jhf[1]+".htm") }'
done | 
  jq -s '{ jhf_list :  .|sort_by(.version,.take)  }'&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 20 Sep 2023 08:44:55 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Script-to-display-recommended-and-latest-Jumbo-Hotfix/m-p/193136#M35869</guid>
      <dc:creator>bernhard_m</dc:creator>
      <dc:date>2023-09-20T08:44:55Z</dc:date>
    </item>
    <item>
      <title>Re: Script to display recommended and latest Jumbo Hotfix Accumulators</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Script-to-display-recommended-and-latest-Jumbo-Hotfix/m-p/193153#M35874</link>
      <description>&lt;P&gt;Perfect! &lt;span class="lia-unicode-emoji" title=":raising_hands:"&gt;🙌&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2023 12:54:22 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Script-to-display-recommended-and-latest-Jumbo-Hotfix/m-p/193153#M35874</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2023-09-20T12:54:22Z</dc:date>
    </item>
    <item>
      <title>Re: Script to display recommended and latest Jumbo Hotfix Accumulators</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Script-to-display-recommended-and-latest-Jumbo-Hotfix/m-p/193154#M35875</link>
      <description>&lt;P&gt;I LOVE that one&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/11376"&gt;@bernhard_m&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":raising_hands:"&gt;🙌&lt;/span&gt;&lt;span class="lia-unicode-emoji" title=":ok_hand:"&gt;👌&lt;/span&gt;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Andy&lt;/P&gt;
&lt;P&gt;[Expert@CP-management:0]# ./Check_Point_jumbo_script.sh&lt;BR /&gt;{&lt;BR /&gt;"jhf_list": [&lt;BR /&gt;{&lt;BR /&gt;"version": "R80.40",&lt;BR /&gt;"take": "198",&lt;BR /&gt;"status": "Recommended",&lt;BR /&gt;"url": "&lt;A href="http://sc1.checkpoint.com/documents/Jumbo_HFA/R80.40/R80.40/Take_198.htm" target="_blank" rel="noopener"&gt;http://sc1.checkpoint.com/documents/Jumbo_HFA/R80.40/R80.40/Take_198.htm&lt;/A&gt;"&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"version": "R80.40",&lt;BR /&gt;"take": "198",&lt;BR /&gt;"status": "Latest",&lt;BR /&gt;"url": "&lt;A href="http://sc1.checkpoint.com/documents/Jumbo_HFA/R80.40/R80.40/Take_198.htm" target="_blank" rel="noopener"&gt;http://sc1.checkpoint.com/documents/Jumbo_HFA/R80.40/R80.40/Take_198.htm&lt;/A&gt;"&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"version": "R81",&lt;BR /&gt;"take": "87",&lt;BR /&gt;"status": "Recommended",&lt;BR /&gt;"url": "&lt;A href="http://sc1.checkpoint.com/documents/Jumbo_HFA/R81/R81.00/Take_87.htm" target="_blank" rel="noopener"&gt;http://sc1.checkpoint.com/documents/Jumbo_HFA/R81/R81.00/Take_87.htm&lt;/A&gt;"&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"version": "R81",&lt;BR /&gt;"take": "87",&lt;BR /&gt;"status": "Latest",&lt;BR /&gt;"url": "&lt;A href="http://sc1.checkpoint.com/documents/Jumbo_HFA/R81/R81.00/Take_87.htm" target="_blank" rel="noopener"&gt;http://sc1.checkpoint.com/documents/Jumbo_HFA/R81/R81.00/Take_87.htm&lt;/A&gt;"&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"version": "R81.10",&lt;BR /&gt;"take": "110",&lt;BR /&gt;"status": "Recommended",&lt;BR /&gt;"url": "&lt;A href="http://sc1.checkpoint.com/documents/Jumbo_HFA/R81.10/R81.10/Take_110.htm" target="_blank" rel="noopener"&gt;http://sc1.checkpoint.com/documents/Jumbo_HFA/R81.10/R81.10/Take_110.htm&lt;/A&gt;"&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"version": "R81.10",&lt;BR /&gt;"take": "113",&lt;BR /&gt;"status": "Latest",&lt;BR /&gt;"url": "&lt;A href="http://sc1.checkpoint.com/documents/Jumbo_HFA/R81.10/R81.10/Take_113.htm" target="_blank" rel="noopener"&gt;http://sc1.checkpoint.com/documents/Jumbo_HFA/R81.10/R81.10/Take_113.htm&lt;/A&gt;"&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"version": "R81.20",&lt;BR /&gt;"take": "26",&lt;BR /&gt;"status": "Recommended",&lt;BR /&gt;"url": "&lt;A href="http://sc1.checkpoint.com/documents/Jumbo_HFA/R81.20/R81.20/Take_26.htm" target="_blank" rel="noopener"&gt;http://sc1.checkpoint.com/documents/Jumbo_HFA/R81.20/R81.20/Take_26.htm&lt;/A&gt;"&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"version": "R81.20",&lt;BR /&gt;"take": "26",&lt;BR /&gt;"status": "Latest",&lt;BR /&gt;"url": "&lt;A href="http://sc1.checkpoint.com/documents/Jumbo_HFA/R81.20/R81.20/Take_26.htm" target="_blank" rel="noopener"&gt;http://sc1.checkpoint.com/documents/Jumbo_HFA/R81.20/R81.20/Take_26.htm&lt;/A&gt;"&lt;BR /&gt;}&lt;BR /&gt;]&lt;BR /&gt;}&lt;BR /&gt;[Expert@CP-management:0]#&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2023 16:00:05 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Script-to-display-recommended-and-latest-Jumbo-Hotfix/m-p/193154#M35875</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2023-09-20T16:00:05Z</dc:date>
    </item>
  </channel>
</rss>

