<?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: Suppress version name on cpinfo -y? in General Topics</title>
    <link>https://community.checkpoint.com/t5/General-Topics/Suppress-version-name-on-cpinfo-y/m-p/232194#M38803</link>
    <description>&lt;P&gt;Because there is no JHF for R82 released yet? &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 08 Nov 2024 20:14:45 GMT</pubDate>
    <dc:creator>JozkoMrkvicka</dc:creator>
    <dc:date>2024-11-08T20:14:45Z</dc:date>
    <item>
      <title>Suppress version name on cpinfo -y?</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Suppress-version-name-on-cpinfo-y/m-p/232029#M38780</link>
      <description>&lt;P&gt;I am using cpinfo -y to gather information on OS and Take version.&amp;nbsp; The only issue is that it outputs the version to the screen and then the information.&amp;nbsp; So I am always getting the cpinfo version published into the output (using Backbox Tech Survey.)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;#cpinfo -y SecurePlatform |grep "Take" | awk '{print $2,$3}'&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;This is Check Point CPinfo Build 914000239 for GAIA&lt;BR /&gt;Take: 38&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The full return is:&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;#cpinfo -y SecurePlatform&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;This is Check Point CPinfo Build 914000239 for GAIA&lt;BR /&gt;[SecurePlatform]&lt;BR /&gt;HOTFIX_ENDER_V17_AUTOUPDATE&lt;BR /&gt;HOTFIX_R81_20_JUMBO_HF_MAIN Take: 38&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;#&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So in my report, I get this in my spreadsheet cell.&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;This is Check Point CPinfo Build 9140002&lt;SPAN&gt;A&lt;/SPAN&gt;&lt;SPAN&gt;39 for GAIA&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;Take: 38&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any thoughts on how to not show the version?&amp;nbsp; I have tried a few of the variables and they do not work&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2024 17:36:57 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Suppress-version-name-on-cpinfo-y/m-p/232029#M38780</guid>
      <dc:creator>George_Ellis</dc:creator>
      <dc:date>2024-11-07T17:36:57Z</dc:date>
    </item>
    <item>
      <title>Re: Suppress version name on cpinfo -y?</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Suppress-version-name-on-cpinfo-y/m-p/232035#M38781</link>
      <description>&lt;P&gt;I just tested some options in the lab and cant see anything from -h flag for help that would do this, but will continue to look.&lt;/P&gt;
&lt;P&gt;Andy&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2024 19:23:28 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Suppress-version-name-on-cpinfo-y/m-p/232035#M38781</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2024-11-07T19:23:28Z</dc:date>
    </item>
    <item>
      <title>Re: Suppress version name on cpinfo -y?</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Suppress-version-name-on-cpinfo-y/m-p/232042#M38784</link>
      <description>&lt;P&gt;If your goal is to get JHF Jumbo Take number, then use this command:&lt;/P&gt;
&lt;PRE class="lia-code-sample  language-markup"&gt;&lt;CODE&gt;cpinfo -y all 2&amp;gt;/dev/null|grep HF_MAIN|grep -v _SC|tail -n1|awk '{print $NF}'&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 07 Nov 2024 22:37:44 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Suppress-version-name-on-cpinfo-y/m-p/232042#M38784</guid>
      <dc:creator>JozkoMrkvicka</dc:creator>
      <dc:date>2024-11-07T22:37:44Z</dc:date>
    </item>
    <item>
      <title>Re: Suppress version name on cpinfo -y?</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Suppress-version-name-on-cpinfo-y/m-p/232116#M38793</link>
      <description>&lt;P&gt;Thank you.&amp;nbsp; Almost there.&amp;nbsp; This is what worked.&amp;nbsp; I forgot about sending it to /dev/null&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;cpinfo -y SecurePlatform 2&amp;gt;/dev/null|tail -n2|awk '{print $2,$3}'&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Nov 2024 14:24:57 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Suppress-version-name-on-cpinfo-y/m-p/232116#M38793</guid>
      <dc:creator>George_Ellis</dc:creator>
      <dc:date>2024-11-08T14:24:57Z</dc:date>
    </item>
    <item>
      <title>Re: Suppress version name on cpinfo -y?</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Suppress-version-name-on-cpinfo-y/m-p/232121#M38794</link>
      <description>&lt;P&gt;Hm, does not give any output...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;[Expert@R82:0]# cpinfo -y all 2&amp;gt;/dev/null|grep HF_MAIN|grep -v _SC|tail -n1|awk '{print $NF}'&lt;BR /&gt;[Expert@R82:0]#&lt;/P&gt;</description>
      <pubDate>Fri, 08 Nov 2024 14:28:42 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Suppress-version-name-on-cpinfo-y/m-p/232121#M38794</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2024-11-08T14:28:42Z</dc:date>
    </item>
    <item>
      <title>Re: Suppress version name on cpinfo -y?</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Suppress-version-name-on-cpinfo-y/m-p/232122#M38795</link>
      <description>&lt;P&gt;I get this in the lab...&lt;/P&gt;
&lt;P&gt;[Expert@R82:0]# cpinfo -y SecurePlatform 2&amp;gt;/dev/null|tail -n2|awk '{print $2,$3}'&lt;BR /&gt;hotfixes..&lt;/P&gt;</description>
      <pubDate>Fri, 08 Nov 2024 14:28:58 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Suppress-version-name-on-cpinfo-y/m-p/232122#M38795</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2024-11-08T14:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: Suppress version name on cpinfo -y?</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Suppress-version-name-on-cpinfo-y/m-p/232159#M38798</link>
      <description>&lt;P&gt;I personally use this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;jumbo=$(cpinfo -y fw1 2&amp;gt;/dev/null | grep JUMBO_HF_MAIN | awk '{print $NF}');echo "${jumbo:-0}"&lt;/LI-CODE&gt;
&lt;P&gt;The&amp;nbsp;&lt;SPAN&gt;${jumbo:-0} part at the end uses variable expansion to replace an empty variable (meaning no jumbo) with 0 so you always get a value.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/1178"&gt;@George_Ellis&lt;/a&gt;&amp;nbsp;The "This is Check Point CPinfo Build ..." line is printed to STDERR. Adding 2&amp;gt;/dev/null as Jozko and I did redirects STDERR such that it no longer prints. Any time you get weird output like that which you can't seem to filter away with grep, tail, head, and other common tools, it's probably being written to STDERR.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can also use 2&amp;gt;&amp;amp;1 to redirect STDERR into STDOUT, at which point the text can be filtered like everything else.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Nov 2024 16:51:12 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Suppress-version-name-on-cpinfo-y/m-p/232159#M38798</guid>
      <dc:creator>Bob_Zimmerman</dc:creator>
      <dc:date>2024-11-08T16:51:12Z</dc:date>
    </item>
    <item>
      <title>Re: Suppress version name on cpinfo -y?</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Suppress-version-name-on-cpinfo-y/m-p/232167#M38801</link>
      <description>&lt;P&gt;That works.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Nov 2024 17:15:45 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Suppress-version-name-on-cpinfo-y/m-p/232167#M38801</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2024-11-08T17:15:45Z</dc:date>
    </item>
    <item>
      <title>Re: Suppress version name on cpinfo -y?</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Suppress-version-name-on-cpinfo-y/m-p/232194#M38803</link>
      <description>&lt;P&gt;Because there is no JHF for R82 released yet? &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Nov 2024 20:14:45 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Suppress-version-name-on-cpinfo-y/m-p/232194#M38803</guid>
      <dc:creator>JozkoMrkvicka</dc:creator>
      <dc:date>2024-11-08T20:14:45Z</dc:date>
    </item>
    <item>
      <title>Re: Suppress version name on cpinfo -y?</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Suppress-version-name-on-cpinfo-y/m-p/232195#M38804</link>
      <description>&lt;P&gt;Sorry, of course. I did on R81.20 and gave below, forgot to update, my bad.&lt;/P&gt;
&lt;P&gt;Andy&lt;/P&gt;
&lt;P&gt;[Expert@CP-GW:0]# cpinfo -y all 2&amp;gt;/dev/null|grep HF_MAIN|grep -v _SC|tail -n1|awk '{print $NF}'&lt;BR /&gt;89&lt;BR /&gt;[Expert@CP-GW:0]#&lt;/P&gt;</description>
      <pubDate>Fri, 08 Nov 2024 20:17:58 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Suppress-version-name-on-cpinfo-y/m-p/232195#M38804</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2024-11-08T20:17:58Z</dc:date>
    </item>
    <item>
      <title>Re: Suppress version name on cpinfo -y?</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Suppress-version-name-on-cpinfo-y/m-p/232197#M38805</link>
      <description>&lt;P&gt;much better approach !&lt;/P&gt;
&lt;P&gt;I can think of executing this command from VS (which in some old JHF shows no hotfixes) and from Domain within MDS.&lt;/P&gt;
&lt;P&gt;if VSX : vsenv 0&lt;/P&gt;
&lt;P&gt;if MDS : mdsenv&lt;/P&gt;</description>
      <pubDate>Fri, 08 Nov 2024 20:36:31 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Suppress-version-name-on-cpinfo-y/m-p/232197#M38805</guid>
      <dc:creator>JozkoMrkvicka</dc:creator>
      <dc:date>2024-11-08T20:36:31Z</dc:date>
    </item>
    <item>
      <title>Re: Suppress version name on cpinfo -y?</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Suppress-version-name-on-cpinfo-y/m-p/232202#M38809</link>
      <description>&lt;P&gt;Maestro Orchestrator, FW, and MDM/MLM all work for me.&amp;nbsp; R82 thing?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Nov 2024 21:11:18 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Suppress-version-name-on-cpinfo-y/m-p/232202#M38809</guid>
      <dc:creator>George_Ellis</dc:creator>
      <dc:date>2024-11-08T21:11:18Z</dc:date>
    </item>
  </channel>
</rss>

