<?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: Creating a CPuse package in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Creating-a-CPuse-package/m-p/8295#M679</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You don't create your own CPUSE package, that isn't really a thing I've ever heard of, you should use the scrips repository in SmartConsole. I think it will accomplish what you are looking for.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Mar 2019 13:26:30 GMT</pubDate>
    <dc:creator>Joshua_Hatter</dc:creator>
    <dc:date>2019-03-01T13:26:30Z</dc:date>
    <item>
      <title>Creating a CPuse package</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Creating-a-CPuse-package/m-p/8293#M677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;I am trying to utilize CPUSE on a gateway to install a shell scripts and run a few commands.&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;There may be better ways to install a shell script, but this allows the admin to install the script via web browser.&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;I have not been able to find documentation on how to create a CPuse file.&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;Link anyone ?&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;I tried to create a pkg but I am just guessing at the structure.&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;When running installer import local, I am getting a read error with the file hf.config&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;FW-LAB&amp;gt; installer import local /home/admin/ABC_Install_package.tgz&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;Preparing package for import. This operation might take a few moments&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;Note: The selected package will be copied into CPUSE repository&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;Info: Initiating import of ABC_Install_package.tgz...&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;Interactive mode is enabled. Press CTRL + C to exit (this will not stop the operation)&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;Result: Import of package ABC_Install_package.tgz Failed&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;Error occurred while trying to read hf.config file.&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;cat hf.config&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;1&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;PATCH_REG_PRODUCT=CPUpdates&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;PATCH_REG_VER=6.0&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;PATCH_REG_SP=4&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;PATCH_REG_MSP=8&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;PATCH_NAME= ABC_Install_package&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;TAKE_NUMBER=1&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;PACKAGE_TYPE=BUNDLE&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;DIRECT_BASE_VERSION=R80.10&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;[Expert@FW-LAB:0]# ls -l&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;total 20&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;drwxr-xr-x 2 admin root 4096 Feb 27 09:23 CheckPoint#fw1#ALL#6.0#4#8#ABC_Install_package&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;-rwxr-xr-x 1 admin root 1784 Feb 27 09:44 bundle.xml&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;-rw-rw-r-- 1 admin root 171 Feb 27 09:58 hf.config&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;drwxr-xr-x 2 admin root 4096 Feb 27 09:43 scripts&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;-rw-rw-r-- 1 admin root&amp;nbsp;&amp;nbsp; 7 Feb 27 10:48 take_number.conf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2019 21:37:29 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Creating-a-CPuse-package/m-p/8293#M677</guid>
      <dc:creator>Rob_Napholz</dc:creator>
      <dc:date>2019-02-28T21:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a CPuse package</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Creating-a-CPuse-package/m-p/8294#M678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why not to use CDT? For distribution of files and running scripts on gateways..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Mar 2019 12:25:22 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Creating-a-CPuse-package/m-p/8294#M678</guid>
      <dc:creator>Martin_Valenta</dc:creator>
      <dc:date>2019-03-01T12:25:22Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a CPuse package</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Creating-a-CPuse-package/m-p/8295#M679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You don't create your own CPUSE package, that isn't really a thing I've ever heard of, you should use the scrips repository in SmartConsole. I think it will accomplish what you are looking for.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Mar 2019 13:26:30 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Creating-a-CPuse-package/m-p/8295#M679</guid>
      <dc:creator>Joshua_Hatter</dc:creator>
      <dc:date>2019-03-01T13:26:30Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a CPuse package</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Creating-a-CPuse-package/m-p/8296#M680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am already utilize the repository for running scripts, how can i copy a binary file to the gateway from the CMA&amp;nbsp;without hard coding the password ? SIC ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since we are talking about the repository, any idea on how to maintain the same script across multiple(10+) domains/CMAs. Can this happen at the global level ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Mar 2019 14:09:48 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Creating-a-CPuse-package/m-p/8296#M680</guid>
      <dc:creator>Rob_Napholz</dc:creator>
      <dc:date>2019-03-01T14:09:48Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a CPuse package</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Creating-a-CPuse-package/m-p/8297#M681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm with &lt;A href="https://community.checkpoint.com/migrated-users/45856"&gt;Martin Valenta&lt;/A&gt;‌ on this, CDT is the right tool for the job here.&lt;/P&gt;&lt;P&gt;You can copy files to your remote gateways (e.g. a tarball), among many other things.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&amp;amp;solutionid=sk111158&amp;amp;partition=Advanced&amp;amp;product=Security" title="https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&amp;amp;solutionid=sk111158&amp;amp;partition=Advanced&amp;amp;product=Security"&gt;Central Deployment Tool (CDT)&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Mar 2019 01:57:56 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Creating-a-CPuse-package/m-p/8297#M681</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2019-03-02T01:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a CPuse package</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Creating-a-CPuse-package/m-p/8298#M682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;CDT&amp;nbsp;is a command line tool, i have not seen a&amp;nbsp;gui version.&lt;/P&gt;&lt;P&gt;looking for a gui tool for a junior admin&lt;/P&gt;&lt;P&gt;the file only need to be installed on gateway after onboarding.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Mar 2019 02:23:19 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Creating-a-CPuse-package/m-p/8298#M682</guid>
      <dc:creator>Rob_Napholz</dc:creator>
      <dc:date>2019-03-02T02:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a CPuse package</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Creating-a-CPuse-package/m-p/8299#M683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is an API call called put-file that can copy a file to a gateway.&lt;/P&gt;&lt;P&gt;Of course that's not a GUI option &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://community.checkpoint.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Mar 2019 03:57:51 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Creating-a-CPuse-package/m-p/8299#M683</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2019-03-02T03:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a CPuse package</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Creating-a-CPuse-package/m-p/96889#M5162</link>
      <description>&lt;P&gt;Hiya. &amp;nbsp;Let's see if we can advance this discussion &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Bundle packages&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Attached is a tgz package for reference. &amp;nbsp;It's about the simplest I can make work, so it's easy to pull apart. &amp;nbsp;It's sole function on install is to save its environment to a file in /tmp. &amp;nbsp;That should be enough info for you to see how to use the install_hook script to unpack a tgz instead.&lt;/P&gt;&lt;P&gt;Check Point themselves add a lot more complexity. &amp;nbsp;The attached package has the following deficiences:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;It's not a new package - it's a patch format, so you have to choose an existing package to patch as a way to add your files. &amp;nbsp;This one patches "CpUpdates", i.e. the deployment agent. &amp;nbsp;Check Point themselves sometimes seem to use this method, patching either this or the "fw1" package.&lt;/LI&gt;&lt;LI&gt;It has no understanding of versioning and uninstall MIGHT be unreliable in terms of stability of the base package it is installed on top of. &amp;nbsp;Take care.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;That being said it's good enough for a lot of stuff. &amp;nbsp;Check Point's complexity to some extent derives from history rather than design. &amp;nbsp;They have at least the following formats:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Major - a full reinstall, which doesn't seem useful to us.&lt;/LI&gt;&lt;LI&gt;BUNDLE/wrapper - this is the example format, and it can also be used as a package of packages. &amp;nbsp;Rob, mine attached is very similar to yours above.&lt;/LI&gt;&lt;LI&gt;single_hotfix - similar format, but the crs.xml contains a list of files to patch. &amp;nbsp;Install script hooks are referenced from hf.config and bundle.xml is missing&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Conspicuously missing is a simple format for a new package. &amp;nbsp;CP use RPM for new packages, but not from CPUSE. &amp;nbsp;SURELY there is a way to do a new install from CPUSE. &amp;nbsp;But I can find no recent examples of it. &amp;nbsp;I need to go digging in IPSO history.... some of this stuff is based off of that, and they certainly used to use this kind of format for that.&lt;/P&gt;&lt;P&gt;File format: My example is a single .tgz. &amp;nbsp;There is also a .tar format that contains the .tgz plus a derived smaller blahblah_METAFILE.tgz. &amp;nbsp;The value of this is the smaller metafile is packaged first and can be unpacked more rapidly for names, descriptions, checks.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CPRID&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Rob, your other question was about distributing files. &amp;nbsp;SmartUpdate can essentially be used from the SMS to copy files and run them. &amp;nbsp;This might be of use. See sk106490&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Sep 2020 21:34:39 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Creating-a-CPuse-package/m-p/96889#M5162</guid>
      <dc:creator>Greg_Harewood</dc:creator>
      <dc:date>2020-09-16T21:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a CPuse package</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Creating-a-CPuse-package/m-p/96906#M5163</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp; CPUSE package includes many attributes and configuration items which are used by the Check Point deployment tools.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Creating a package is done on a Check Point packaging system.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Any package you create by yourself might cause unpredictable results!&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Future installations of Check Point packages might fail, backup &amp;amp; restore functionality might be damaged and many other items which are handled automatically when using Check Point packaging system.&lt;/P&gt;
&lt;P&gt;Bottom line - please do not do it and let's use CDT or other tools to get the same result in a much safer way.&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Boaz&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2020 05:52:06 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Creating-a-CPuse-package/m-p/96906#M5163</guid>
      <dc:creator>Boaz_Orshav</dc:creator>
      <dc:date>2020-09-17T05:52:06Z</dc:date>
    </item>
  </channel>
</rss>

