<?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 Automate GAIA Configuration backup in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Script-to-Automate-GAIA-Configuration-backup/m-p/90317#M4992</link>
    <description>&lt;P&gt;I love this idea, and the script works great if I run it manually but has anyone been able to make it run via Job Scheduler?&amp;nbsp; Doesn't work for me.&amp;nbsp;&amp;nbsp; Running R80.30.&amp;nbsp;&amp;nbsp; I have updated the relevant paths to R80.30 and&amp;nbsp;even went so far as to add an absolute path for cprid_util, still nothing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any suggestions&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Andrew&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 01 Jul 2020 13:51:54 GMT</pubDate>
    <dc:creator>Andrew_Larrick</dc:creator>
    <dc:date>2020-07-01T13:51:54Z</dc:date>
    <item>
      <title>Script to Automate GAIA Configuration backup</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Script-to-Automate-GAIA-Configuration-backup/m-p/35924#M2216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i wrote below script for my customer to automate gaia configuration backup of gateway . Script runs on management and it can fetch the "show configuration"&amp;nbsp; of all the gateway and create a file for individual gateway .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steps :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perform below on management server .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Create a Directory called gaiagwbkp under /var/log&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;Create a file called gateway_ip_list.txt under /opt/CPsuite-R80/fw1/scripts and add ip address of the gateway which is being managed by same management server&lt;/LI&gt;&lt;LI&gt;[Expert@PROD-MGMT-R80:0]# cat gateway_ip_list.txt&lt;BR /&gt;10.1.1.254&lt;BR /&gt;[Expert@PROD-MGMT-R80:0]#&lt;/LI&gt;&lt;LI&gt;Create a file called gaiafwbkp.sh under /opt/CPsuite-R80/fw1/scripts and copy the script content and change file permission&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;*****************************************&lt;/P&gt;&lt;P&gt;[Expert@PROD-MGMT-R80:0]# cat gaiafwbkp.sh&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;source /opt/CPshrd-R80/tmp/.CPprofile.sh&lt;BR /&gt;for dest in $(&amp;lt;gateway_ip_list.txt); do&lt;BR /&gt;hostname=`cprid_util -server $dest -verbose rexec -rcmd /bin/bash -c "hostname"`&lt;BR /&gt;now=$(date +"%m_%d_%Y")&lt;BR /&gt;cprid_util -server $dest -verbose rexec -rcmd /bin/clish -c "show configuration" &amp;gt; /var/log/&lt;SPAN&gt;gaiagwbkp/&lt;/SPAN&gt;$hostname$now&lt;BR /&gt;done&lt;/P&gt;&lt;P&gt;************************************&lt;/P&gt;&lt;P&gt;4. run script&amp;nbsp;&lt;SPAN&gt;gaiafwbkp.sh&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;5. Schedule job from GAIA portal using job scheduler&amp;nbsp;&lt;/P&gt;&lt;P&gt;6. if needed you can run another job to ftp this backup files to ftp server as well&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2018 11:30:46 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Script-to-Automate-GAIA-Configuration-backup/m-p/35924#M2216</guid>
      <dc:creator>Harshpal_Bhati</dc:creator>
      <dc:date>2018-07-02T11:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: Script to Automate GAIA Configuration backup</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Script-to-Automate-GAIA-Configuration-backup/m-p/35925#M2217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for sharing, very useful.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2018 07:02:49 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Script-to-Automate-GAIA-Configuration-backup/m-p/35925#M2217</guid>
      <dc:creator>ED</dc:creator>
      <dc:date>2018-07-03T07:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: Script to Automate GAIA Configuration backup</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Script-to-Automate-GAIA-Configuration-backup/m-p/35926#M2218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nice!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2018 15:47:19 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Script-to-Automate-GAIA-Configuration-backup/m-p/35926#M2218</guid>
      <dc:creator>HeikoAnkenbrand</dc:creator>
      <dc:date>2018-07-03T15:47:19Z</dc:date>
    </item>
    <item>
      <title>Re: Script to Automate GAIA Configuration backup</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Script-to-Automate-GAIA-Configuration-backup/m-p/35927#M2219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;CDT is better way to do that.&amp;nbsp;&lt;A href="https://community.checkpoint.com/t5/tag/cdt/tg-p"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2018 15:18:41 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Script-to-Automate-GAIA-Configuration-backup/m-p/35927#M2219</guid>
      <dc:creator>Martin_Valenta</dc:creator>
      <dc:date>2018-07-06T15:18:41Z</dc:date>
    </item>
    <item>
      <title>Re: Script to Automate GAIA Configuration backup</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Script-to-Automate-GAIA-Configuration-backup/m-p/35928#M2220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;CDT only works on R77.30 and later.&lt;/P&gt;&lt;P&gt;I could see this script being useful on older systems, potentially.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That said,&amp;nbsp;I must provide a word of caution with this approach.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Especially in some earlier versions of Gaia, the order that "show configuration" outputs the commands in won't necessarily work when you import that same configuration.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2018 17:12:26 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Script-to-Automate-GAIA-Configuration-backup/m-p/35928#M2220</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2018-07-06T17:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: Script to Automate GAIA Configuration backup</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Script-to-Automate-GAIA-Configuration-backup/m-p/48507#M3197</link>
      <description>Does CDT work for SMB appliances (1100's, 1400's) that are centrally managed??  One of the requirements is that the gateways are on Gaia R77.30 however the "Gaia Embedded" software line is only at R77.20.85 to date.</description>
      <pubDate>Mon, 25 Mar 2019 17:16:59 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Script-to-Automate-GAIA-Configuration-backup/m-p/48507#M3197</guid>
      <dc:creator>Allen_Fambro</dc:creator>
      <dc:date>2019-03-25T17:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: Script to Automate GAIA Configuration backup</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Script-to-Automate-GAIA-Configuration-backup/m-p/48515#M3198</link>
      <description>CDT is not supported for SMB appliances.</description>
      <pubDate>Mon, 25 Mar 2019 18:21:12 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Script-to-Automate-GAIA-Configuration-backup/m-p/48515#M3198</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2019-03-25T18:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: Script to Automate GAIA Configuration backup</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Script-to-Automate-GAIA-Configuration-backup/m-p/54041#M3496</link>
      <description>What is CDT?</description>
      <pubDate>Tue, 21 May 2019 14:44:51 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Script-to-Automate-GAIA-Configuration-backup/m-p/54041#M3496</guid>
      <dc:creator>Dave_Taylor1</dc:creator>
      <dc:date>2019-05-21T14:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: Script to Automate GAIA Configuration backup</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Script-to-Automate-GAIA-Configuration-backup/m-p/54042#M3497</link>
      <description>&lt;P&gt;&lt;A class="cp_link sc_ellipsis" style="max-width: 840px;" href="https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&amp;amp;solutionid=sk111158&amp;amp;partition=Advanced&amp;amp;product=Security" target="_blank"&gt;sk111158: Central Deployment Tool (&lt;STRONG&gt;CDT&lt;/STRONG&gt;)&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2019 14:48:33 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Script-to-Automate-GAIA-Configuration-backup/m-p/54042#M3497</guid>
      <dc:creator>Timothy_Hall</dc:creator>
      <dc:date>2019-05-21T14:48:33Z</dc:date>
    </item>
    <item>
      <title>Re: Script to Automate GAIA Configuration backup</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Script-to-Automate-GAIA-Configuration-backup/m-p/54051#M3498</link>
      <description>&lt;P&gt;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/7"&gt;@PhoneBoy&lt;/a&gt;&amp;nbsp;, yep: the add and set sequence gets out of whack. Still seeing it happening when attempting to replicate old Gaia configs on the newly deployed gateways using output of "show configuration".&lt;/P&gt;
&lt;P&gt;Theoretically, pasting this file twice should solve these issues, as the prerequisites will take effect in the first pass and dependent settings in second.&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2019 17:04:54 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Script-to-Automate-GAIA-Configuration-backup/m-p/54051#M3498</guid>
      <dc:creator>Vladimir</dc:creator>
      <dc:date>2019-05-21T17:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: Script to Automate GAIA Configuration backup</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Script-to-Automate-GAIA-Configuration-backup/m-p/90317#M4992</link>
      <description>&lt;P&gt;I love this idea, and the script works great if I run it manually but has anyone been able to make it run via Job Scheduler?&amp;nbsp; Doesn't work for me.&amp;nbsp;&amp;nbsp; Running R80.30.&amp;nbsp;&amp;nbsp; I have updated the relevant paths to R80.30 and&amp;nbsp;even went so far as to add an absolute path for cprid_util, still nothing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any suggestions&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Andrew&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jul 2020 13:51:54 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Script-to-Automate-GAIA-Configuration-backup/m-p/90317#M4992</guid>
      <dc:creator>Andrew_Larrick</dc:creator>
      <dc:date>2020-07-01T13:51:54Z</dc:date>
    </item>
    <item>
      <title>Re: Script to Automate GAIA Configuration backup</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Script-to-Automate-GAIA-Configuration-backup/m-p/90335#M4993</link>
      <description>&lt;DIV class=""&gt;
&lt;P&gt;Just install CDT on your management, edit&amp;nbsp;$CDTDIR/CentralDeploymentTool.xml to your needs and add the following line to the job scheduler of your management server:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;source /etc/profile.d/CP.sh; . $CDTDIR/CentralDeploymentTool -rma -backupall 2&amp;gt;/dev/null&lt;/LI-CODE&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 01 Jul 2020 17:35:33 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Script-to-Automate-GAIA-Configuration-backup/m-p/90335#M4993</guid>
      <dc:creator>Danny</dc:creator>
      <dc:date>2020-07-01T17:35:33Z</dc:date>
    </item>
    <item>
      <title>Re: Script to Automate GAIA Configuration backup</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Script-to-Automate-GAIA-Configuration-backup/m-p/127184#M6147</link>
      <description>&lt;P&gt;Late to the show but maybe this helps anyone else: For me, a similar solution worked only after adding hostname entries for the gateways. And I had to remove nonprintables from hostnames which did get there anyhow I dont know. You may find scripts for adding hostnames and doing config backups on my Github repository (&lt;A href="https://github.com/dj0nz/cptools" target="_blank"&gt;https://github.com/dj0nz/cptools&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;But I agree with other comments here: Check out CDT if you can spare the time. Probably the better long-term solution.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Aug 2021 08:12:14 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Script-to-Automate-GAIA-Configuration-backup/m-p/127184#M6147</guid>
      <dc:creator>dj0Nz</dc:creator>
      <dc:date>2021-08-17T08:12:14Z</dc:date>
    </item>
    <item>
      <title>Re: Script to Automate GAIA Configuration backup</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Script-to-Automate-GAIA-Configuration-backup/m-p/221361#M8611</link>
      <description>&lt;P&gt;Thank you Harshpal for sharing the detailed steps.&lt;/P&gt;&lt;P&gt;I have successfully implemented this in my infra, but facing one issue, the configuration file is being written max 59kb and for some gw , the configuration output is incomplete due to this.&amp;nbsp;&lt;BR /&gt;is there any way to increase the output file size or wait until the complete configuration captured before running the scripts on the next Gw.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2024 07:05:20 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Script-to-Automate-GAIA-Configuration-backup/m-p/221361#M8611</guid>
      <dc:creator>Sudip_Majee</dc:creator>
      <dc:date>2024-07-19T07:05:20Z</dc:date>
    </item>
  </channel>
</rss>

