<?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: Skyline -  Full reset of Config Script in OpenTelemetry/Skyline</title>
    <link>https://community.checkpoint.com/t5/OpenTelemetry-Skyline/Skyline-Full-reset-of-Config-Script/m-p/251136#M637</link>
    <description>&lt;P&gt;In you skyline payload json there is an "add" at the top of the json. you need to replace it with "rebase" and then it works.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;unfortunately now documentation anywere,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{
    "enabled": true,
    "export-targets": {"rebase": [
        {&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;another possibility for me was:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;/opt/CPotelcol/CPotelcolCli.sh set_dynamic_config "$(cat /opt/CPotelcol/config.json)"&lt;/LI-CODE&gt;
&lt;P&gt;and then import the config again using "add" instead "rebase"&lt;/P&gt;</description>
    <pubDate>Thu, 12 Jun 2025 10:47:59 GMT</pubDate>
    <dc:creator>Alexander_Wilke</dc:creator>
    <dc:date>2025-06-12T10:47:59Z</dc:date>
    <item>
      <title>Skyline -  Full reset of Config Script</title>
      <link>https://community.checkpoint.com/t5/OpenTelemetry-Skyline/Skyline-Full-reset-of-Config-Script/m-p/240599#M567</link>
      <description>&lt;P&gt;I have been running skyline for nearly 2 years now and so have configured it several ways as the SK's and admin guides have changed over time.&amp;nbsp; &amp;nbsp;I have been seeing several of the firewalls and MLM / MDS boxes disappear from skyline in the various ways that the checkmates threads have been bringing up over the last few months (as well as a few others).&lt;BR /&gt;&lt;BR /&gt;This is my "&lt;EM&gt;clear everything from the config, regardless of how it was originally configured, and how many different ways it was configured over time without resetting the config in between....&lt;/EM&gt; " script.&lt;BR /&gt;&lt;BR /&gt;This has taken care of 95% of my disappearing devices since the first of the year.&lt;/P&gt;&lt;P&gt;I'll let someone from Checkpoint chime in if its doing something bad, but it runs every clear / wipe / reset command that I have found from the various SK's and Checkmates threads all in one script.&amp;nbsp; It is likely overkill, but I was tired of figuring out which config command was run on which firewall at what time so this seems to cover all the bases for me.&lt;BR /&gt;&lt;BR /&gt;Doing the reset and then using the newest "sklnctl export --set" command to configure as a fresh device, seems to help the stability greatly.&lt;BR /&gt;&lt;BR /&gt;My only note is, on Maestro devices, wait 5 -10 mins before running your new setup script so that the configuration, or lack there of, gets copied to all the members.&amp;nbsp; &amp;nbsp;On non maestro boxes you can pretty much attach your setup script right to the end.&lt;BR /&gt;&lt;BR /&gt;Change the .json file name and path to match your config(s).&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;/opt/CPotelcol/CPotelcolCli.sh set_dynamic_config "$(cat /opt/CPotelcol/config.json)"&lt;BR /&gt;rm /home/admin/payload-no-tls.json&lt;BR /&gt;touch /home/admin/payload-no-tls.json&lt;BR /&gt;/opt/CPotelcol/REST.py --set_open_telemetry "$(cat /home/admin/payload-no-tls.json)"&lt;BR /&gt;{&lt;BR /&gt;echo '{'&lt;BR /&gt;echo '"enabled": true,'&lt;BR /&gt;echo '"export-targets": {'&lt;BR /&gt;&lt;STRONG&gt;echo '"rebase": ['&lt;/STRONG&gt;&lt;BR /&gt;echo '{'&lt;BR /&gt;echo ' "enabled": true,'&lt;BR /&gt;echo ' "type": "prometheus-remote-write",'&lt;BR /&gt;echo ' "url": "&lt;A href="http://1.1.1.1:9090/api/v1/write" target="_blank" rel="noopener"&gt;http://1.1.1.1:9090/api/v1/write&lt;/A&gt;"'&lt;BR /&gt;echo '}'&lt;BR /&gt;echo ']'&lt;BR /&gt;echo '}'&lt;BR /&gt;echo '}'&lt;BR /&gt;} &amp;gt; /home/admin/payload-no-tls.json&lt;BR /&gt;sklnctl export --set "$(cat /home/admin/payload-no-tls.json)"&lt;BR /&gt;rm /home/admin/payload-no-tls.json&lt;BR /&gt;/opt/CPviewExporter/CPviewExporterCli.sh stop&lt;BR /&gt;/opt/CPotelcol/CPotelcolCli.sh stop&lt;BR /&gt;cpview -a off&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2025 13:56:52 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/OpenTelemetry-Skyline/Skyline-Full-reset-of-Config-Script/m-p/240599#M567</guid>
      <dc:creator>David_Evans</dc:creator>
      <dc:date>2025-02-06T13:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: Skyline -  Full reset of Config Script</title>
      <link>https://community.checkpoint.com/t5/OpenTelemetry-Skyline/Skyline-Full-reset-of-Config-Script/m-p/240734#M568</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/17016"&gt;@David_Evans&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;We have added the 'rebase' operation as a hidden flag - to do a total reset of the configuration. This should be used in emergency cases.&lt;/P&gt;
&lt;P&gt;In general we are aware of a known issue with MLM/MDS and CPView - and are working to push a fix to the jumbo during Q1/Q2 of 2025.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;/opt/CPotelcol/CPotelcolCli.sh set_dynamic_config "$(cat /opt/CPotelcol/config.json)" - This can be skipped. ( done in 'rebase' already ).&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;In Maestro, the configuration can be a bit more complex due to the sync mechanism, my recommendation is to run the rebase operation using g_all.&amp;nbsp; No need for the stop commands at the end, for the Skyline components. By default it will be run as part of the sklnctl operation. CPView stop/start is only needed in cases of problems in CPView - Summing it up:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;1) Identify the current problem - Run 'cpview -m' and check it the command "/opt/CPotelcol/GetOTDynamicConfig.sh | jq . " is failing.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;2) In case of CPView problems, run 'kill -9 $(pidof cpviewd); sleep 120; cpview -a off; cpview -a on'&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;2) In case of Skyline problems, Run -&amp;nbsp;&lt;BR /&gt;/opt/CPotelcol/REST.py --set_open_telemetry "$(cat /home/admin/payload-no-tls.json)"&lt;BR /&gt;{&lt;BR /&gt;echo '{'&lt;BR /&gt;echo '"enabled": true,'&lt;BR /&gt;echo '"export-targets": {'&lt;BR /&gt;&lt;STRONG&gt;echo '"rebase": ['&lt;/STRONG&gt;&lt;BR /&gt;echo '{'&lt;BR /&gt;echo ' "enabled": true,'&lt;BR /&gt;echo ' "type": "prometheus-remote-write",'&lt;BR /&gt;echo ' "url": "&lt;A href="http://1.1.1.1:9090/api/v1/write" target="_blank" rel="noopener nofollow noreferrer"&gt;http://1.1.1.1:9090/api/v1/write&lt;/A&gt;"'&lt;BR /&gt;echo '}'&lt;BR /&gt;echo ']'&lt;BR /&gt;echo '}'&lt;BR /&gt;echo '}'&lt;BR /&gt;} &amp;gt; /home/admin/payload-no-tls.json&lt;BR /&gt;sklnctl export --set "$(cat /home/admin/payload-no-tls.json)"&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;To force configuration reset.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 08 Feb 2025 14:10:01 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/OpenTelemetry-Skyline/Skyline-Full-reset-of-Config-Script/m-p/240734#M568</guid>
      <dc:creator>Elad_Chomsky</dc:creator>
      <dc:date>2025-02-08T14:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: Skyline -  Full reset of Config Script</title>
      <link>https://community.checkpoint.com/t5/OpenTelemetry-Skyline/Skyline-Full-reset-of-Config-Script/m-p/241030#M576</link>
      <description>&lt;P&gt;Kindly share more details about this, thanks&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;P&gt;In general we are aware of a known issue with MLM/MDS and CPView - and are working to push a fix to the jumbo during Q1/Q2 of 2025.&amp;nbsp;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Wed, 12 Feb 2025 13:42:45 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/OpenTelemetry-Skyline/Skyline-Full-reset-of-Config-Script/m-p/241030#M576</guid>
      <dc:creator>Vincent_Bacher</dc:creator>
      <dc:date>2025-02-12T13:42:45Z</dc:date>
    </item>
    <item>
      <title>Re: Skyline -  Full reset of Config Script</title>
      <link>https://community.checkpoint.com/t5/OpenTelemetry-Skyline/Skyline-Full-reset-of-Config-Script/m-p/241148#M577</link>
      <description>&lt;P&gt;If this is the ticket I had open, on a real world busy, MLM or MDS, the Skyline services started to early.&amp;nbsp; &amp;nbsp;They needed to wait 5 to 10 mins for MDS and services to actually come up and be really servicing "clients"... not just mdsstat say they were working....&amp;nbsp; &amp;nbsp;There were way more details, but basically my hack fix of restarting skyline 10 mins after a reboot or mdsstart;mdsstop is what they were working on writing 'better'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2025 17:49:02 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/OpenTelemetry-Skyline/Skyline-Full-reset-of-Config-Script/m-p/241148#M577</guid>
      <dc:creator>David_Evans</dc:creator>
      <dc:date>2025-02-13T17:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: Skyline -  Full reset of Config Script</title>
      <link>https://community.checkpoint.com/t5/OpenTelemetry-Skyline/Skyline-Full-reset-of-Config-Script/m-p/251076#M636</link>
      <description>&lt;P&gt;I had the above reset scripts fail.&amp;nbsp; &amp;nbsp; No matter what I tried, including running rebase, I kept getting this message when running the setup scripts.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;"Error: to re-add an exporter - please run 'rebase' first"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I solved it by running:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;sklnctl export --off&lt;BR /&gt;&lt;BR /&gt;then running the first time config script.&lt;BR /&gt;&lt;BR /&gt;Not sure what was going on with these 2 firewalls but they were Maestro SG's running R81.20.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jun 2025 18:41:33 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/OpenTelemetry-Skyline/Skyline-Full-reset-of-Config-Script/m-p/251076#M636</guid>
      <dc:creator>David_Evans</dc:creator>
      <dc:date>2025-06-11T18:41:33Z</dc:date>
    </item>
    <item>
      <title>Re: Skyline -  Full reset of Config Script</title>
      <link>https://community.checkpoint.com/t5/OpenTelemetry-Skyline/Skyline-Full-reset-of-Config-Script/m-p/251136#M637</link>
      <description>&lt;P&gt;In you skyline payload json there is an "add" at the top of the json. you need to replace it with "rebase" and then it works.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;unfortunately now documentation anywere,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{
    "enabled": true,
    "export-targets": {"rebase": [
        {&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;another possibility for me was:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;/opt/CPotelcol/CPotelcolCli.sh set_dynamic_config "$(cat /opt/CPotelcol/config.json)"&lt;/LI-CODE&gt;
&lt;P&gt;and then import the config again using "add" instead "rebase"&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jun 2025 10:47:59 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/OpenTelemetry-Skyline/Skyline-Full-reset-of-Config-Script/m-p/251136#M637</guid>
      <dc:creator>Alexander_Wilke</dc:creator>
      <dc:date>2025-06-12T10:47:59Z</dc:date>
    </item>
    <item>
      <title>Re: Skyline -  Full reset of Config Script</title>
      <link>https://community.checkpoint.com/t5/OpenTelemetry-Skyline/Skyline-Full-reset-of-Config-Script/m-p/251232#M642</link>
      <description>&lt;P&gt;I didn't realize that rebase actually did an "add" as well.&amp;nbsp; &amp;nbsp; &amp;nbsp; I'd somehow thought that once it hit the rebase command that it just wiped the config.&amp;nbsp; &amp;nbsp;So I was doing an rebase and then doing an add.&amp;nbsp; &amp;nbsp; It does seem that a rebase doesn't always restart services? vs an add.&amp;nbsp; &amp;nbsp;On some of my configs testing the last few days, rebase does update the configuration, but doesn't restart the services to actually pickup the new config.&amp;nbsp; &amp;nbsp; &amp;nbsp;Running an add generally does restart services?&lt;BR /&gt;&lt;BR /&gt;To bad rebase isn't documented somewhere......&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jun 2025 14:57:37 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/OpenTelemetry-Skyline/Skyline-Full-reset-of-Config-Script/m-p/251232#M642</guid>
      <dc:creator>David_Evans</dc:creator>
      <dc:date>2025-06-13T14:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: Skyline -  Full reset of Config Script</title>
      <link>https://community.checkpoint.com/t5/OpenTelemetry-Skyline/Skyline-Full-reset-of-Config-Script/m-p/251236#M643</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/17016"&gt;@David_Evans&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;We are working to close the documentation gaps, 'rebase' should restart the services, if you see other behavior please open a ticket to CP, and we will try to assist you.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jun 2025 16:09:39 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/OpenTelemetry-Skyline/Skyline-Full-reset-of-Config-Script/m-p/251236#M643</guid>
      <dc:creator>Elad_Chomsky</dc:creator>
      <dc:date>2025-06-13T16:09:39Z</dc:date>
    </item>
  </channel>
</rss>

