<?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: How to check if policy is changed but not installed? in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-check-if-policy-is-changed-but-not-installed/m-p/5170#M433</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wow, I'm speechless...&lt;/P&gt;&lt;P&gt;I suggest contacting our TAC for further investigation.&lt;/P&gt;&lt;P&gt;Robert.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Mar 2018 20:51:48 GMT</pubDate>
    <dc:creator>Robert_Decker</dc:creator>
    <dc:date>2018-03-29T20:51:48Z</dc:date>
    <item>
      <title>How to check if policy is changed but not installed?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-check-if-policy-is-changed-but-not-installed/m-p/5159#M422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there something in R80.10 that can be queried to verify if a policy has updated but not installed (pushed out) changes?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The use case is to incorporate the check in a policy install script, where only policies that have changes since the last install get installed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In versions prior to R80, we queried for times in the fw_policies and install_statuses tables and monitored the last_modified time. I'm trying to replicate this logic in R80.10, but I'm not having luck finding a corresponding modified time variable that changes after I publish a change. I've been looking at show package with details-level set at full, but nothing changes in the output json file once I publish changes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Aug 2017 01:14:10 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-check-if-policy-is-changed-but-not-installed/m-p/5159#M422</guid>
      <dc:creator>Ryan_Puckett</dc:creator>
      <dc:date>2017-08-10T01:14:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to check if policy is changed but not installed?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-check-if-policy-is-changed-but-not-installed/m-p/5160#M423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is a "View Changes" button on the install policy screen in R80+ that shows the difference between what is about to be pushed to the gateway vs. what the gateway has currently loaded.&amp;nbsp; Not sure if this info is somehow available in the mgmt_cli but might be worth investigating.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--&lt;BR /&gt; My book "Max Power: Check Point Firewall Performance Optimization" &lt;BR /&gt; now available via &lt;A href="http://maxpowerfirewalls.com" target="_blank"&gt;http://maxpowerfirewalls.com&lt;/A&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Aug 2017 12:42:00 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-check-if-policy-is-changed-but-not-installed/m-p/5160#M423</guid>
      <dc:creator>Timothy_Hall</dc:creator>
      <dc:date>2017-08-11T12:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to check if policy is changed but not installed?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-check-if-policy-is-changed-but-not-installed/m-p/5161#M424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's it!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Under the "show changes" API call, there is a "session publish time" that gets updated whenever the policy is published. Exactly what I needed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mgmt_cli show changes --domain Test01 --root true --format json | jq -r '.tasks[] | ."task-details"[] | .changes[] | .session."publish-time".posix'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Aug 2017 20:05:44 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-check-if-policy-is-changed-but-not-installed/m-p/5161#M424</guid>
      <dc:creator>Ryan_Puckett</dc:creator>
      <dc:date>2017-08-11T20:05:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to check if policy is changed but not installed?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-check-if-policy-is-changed-but-not-installed/m-p/5162#M425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: medium;"&gt;This is great, but which policy was edited/changed&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: medium;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: medium;"&gt;I am trying to determine which policies have been edited(which policies need to be installed).&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: medium;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Nov 2017 15:05:30 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-check-if-policy-is-changed-but-not-installed/m-p/5162#M425</guid>
      <dc:creator>Rob_Napholz</dc:creator>
      <dc:date>2017-11-22T15:05:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to check if policy is changed but not installed?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-check-if-policy-is-changed-but-not-installed/m-p/5163#M426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob,&lt;/P&gt;&lt;P&gt;It is possible to accomplish your request if you combine data from several API commands.&lt;/P&gt;&lt;P&gt;I'll post the answer (bash script) shortly.&lt;/P&gt;&lt;P&gt;Robert.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Mar 2018 13:27:20 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-check-if-policy-is-changed-but-not-installed/m-p/5163#M426</guid>
      <dc:creator>Robert_Decker</dc:creator>
      <dc:date>2018-03-27T13:27:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to check if policy is changed but not installed?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-check-if-policy-is-changed-but-not-installed/m-p/5164#M427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;here you go -&amp;nbsp;&lt;A _jive_internal="true" href="https://community.checkpoint.com/docs/DOC-2816"&gt;https://community.checkpoint.com/docs/DOC-2816&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Robert.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Mar 2018 15:28:44 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-check-if-policy-is-changed-but-not-installed/m-p/5164#M427</guid>
      <dc:creator>Robert_Decker</dc:creator>
      <dc:date>2018-03-28T15:28:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to check if policy is changed but not installed?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-check-if-policy-is-changed-but-not-installed/m-p/5165#M428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have come across an issue on my mgmt&lt;/P&gt;&lt;P&gt;The time stamps are the same prior and after a publish&lt;/P&gt;&lt;P&gt;[Expert@r80:0]# mgmt_cli&amp;nbsp; show-package name t_policy --format json -s id.txt |jq -r '.["meta-info"]["last-modify-time"]["posix"]'&lt;BR /&gt;1516633060917&lt;BR /&gt;[Expert@r80:0]# mgmt_cli&amp;nbsp; show-package name t_policy --format json -s id.txt |jq -r '.["meta-info"]["last-modify-time"]["posix"]'&lt;BR /&gt;1516633060917&amp;nbsp; which is January 22, 2018 2:57:40.917 PM&lt;/P&gt;&lt;P&gt;I know this is wrong as the policy was change today&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Mar 2018 21:31:54 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-check-if-policy-is-changed-but-not-installed/m-p/5165#M428</guid>
      <dc:creator>Rob_Napholz</dc:creator>
      <dc:date>2018-03-28T21:31:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to check if policy is changed but not installed?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-check-if-policy-is-changed-but-not-installed/m-p/5166#M429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And what about the "iso-8601" field? Does it also show the same date and time?&lt;/P&gt;&lt;P&gt;Robert.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2018 05:47:19 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-check-if-policy-is-changed-but-not-installed/m-p/5166#M429</guid>
      <dc:creator>Robert_Decker</dc:creator>
      <dc:date>2018-03-29T05:47:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to check if policy is changed but not installed?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-check-if-policy-is-changed-but-not-installed/m-p/5167#M430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It does, this was the date the policy was created.&lt;/P&gt;&lt;P&gt;&amp;nbsp;mgmt_cli&amp;nbsp; show-package name t_policy --format json -s id.txt |jq -r '.["meta-info"]["last-modify-time"]["iso-8601"]'&lt;BR /&gt;2018-01-22T09:57-0500&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;cpinfo -y all&lt;/P&gt;&lt;P&gt;This is Check Point CPinfo Build 914000176 for GAIA&lt;BR /&gt;[IDA]&lt;BR /&gt;&amp;nbsp;&amp;nbsp; HOTFIX_R80_10&lt;/P&gt;&lt;P&gt;[KAV]&lt;BR /&gt;&amp;nbsp;&amp;nbsp; HOTFIX_R80_10&lt;/P&gt;&lt;P&gt;[CPFC]&lt;BR /&gt;&amp;nbsp;&amp;nbsp; HOTFIX_R80_10&lt;BR /&gt;&amp;nbsp;&amp;nbsp; HOTFIX_R80_10_JUMBO_HF&amp;nbsp;&amp;nbsp;&amp;nbsp; Take: 56&lt;/P&gt;&lt;P&gt;[FW1]&lt;BR /&gt;&amp;nbsp;&amp;nbsp; HOTFIX_R80_10&lt;BR /&gt;&amp;nbsp;&amp;nbsp; HOTFIX_R80_10_JUMBO_HF&amp;nbsp;&amp;nbsp;&amp;nbsp; Take: 56&lt;/P&gt;&lt;P&gt;FW1 build number:&lt;BR /&gt;This is Check Point Security Management Server R80.10 - Build 007&lt;BR /&gt;This is Check Point's software version R80.10 - Build 027&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2018 19:08:48 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-check-if-policy-is-changed-but-not-installed/m-p/5167#M430</guid>
      <dc:creator>Rob_Napholz</dc:creator>
      <dc:date>2018-03-29T19:08:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to check if policy is changed but not installed?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-check-if-policy-is-changed-but-not-installed/m-p/5168#M431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is very strange.&lt;/P&gt;&lt;P&gt;The policy creation time is saved in another field - "&lt;SPAN style="background-color: #ffffff;"&gt;meta-info.creation-time.&lt;SPAN style="background-color: #ffffff;"&gt;iso-8601". Can&amp;nbsp;you please verify this field's value?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Robert.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2018 19:39:34 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-check-if-policy-is-changed-but-not-installed/m-p/5168#M431</guid>
      <dc:creator>Robert_Decker</dc:creator>
      <dc:date>2018-03-29T19:39:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to check if policy is changed but not installed?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-check-if-policy-is-changed-but-not-installed/m-p/5169#M432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp;mgmt_cli&amp;nbsp; show-package name t_policy --format json -s id.txt |jq -r '.["meta-info"]&lt;BR /&gt;&amp;gt; '&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; "lock": "unlocked",&lt;BR /&gt;&amp;nbsp; "validation-state": "ok",&lt;BR /&gt;&amp;nbsp; "last-modify-time": {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "posix": 1516633060917,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "iso-8601": "2018-01-22T09:57-0500"&lt;BR /&gt;&amp;nbsp; },&lt;BR /&gt;&amp;nbsp; "last-modifier": "csg",&lt;BR /&gt;&amp;nbsp; "creation-time": {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "posix": 1516633060917,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "iso-8601": "2018-01-22T09:57-0500"&lt;BR /&gt;&amp;nbsp; },&lt;BR /&gt;&amp;nbsp; "creator": "csg"&lt;BR /&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2018 19:49:07 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-check-if-policy-is-changed-but-not-installed/m-p/5169#M432</guid>
      <dc:creator>Rob_Napholz</dc:creator>
      <dc:date>2018-03-29T19:49:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to check if policy is changed but not installed?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-check-if-policy-is-changed-but-not-installed/m-p/5170#M433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wow, I'm speechless...&lt;/P&gt;&lt;P&gt;I suggest contacting our TAC for further investigation.&lt;/P&gt;&lt;P&gt;Robert.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2018 20:51:48 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-check-if-policy-is-changed-but-not-installed/m-p/5170#M433</guid>
      <dc:creator>Robert_Decker</dc:creator>
      <dc:date>2018-03-29T20:51:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to check if policy is changed but not installed?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-check-if-policy-is-changed-but-not-installed/m-p/5171#M434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob,&lt;/P&gt;&lt;P&gt;I was just informed that the policy package object is not updated when the changes are published.&lt;/P&gt;&lt;P&gt;Therefore, its last-modify-time field is never updated.&lt;/P&gt;&lt;P&gt;As&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Ryan Puckett&amp;nbsp;posted above, the show-changes command has the information about the published sessions, but the output of this command doesn't state which policy was published...&lt;/P&gt;&lt;P&gt;It seems that the script I wrote will not work due to this limitation.&lt;/P&gt;&lt;P&gt;I'll try to find another solution for this problem.&lt;/P&gt;&lt;P&gt;Robert.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Apr 2018 09:44:38 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-check-if-policy-is-changed-but-not-installed/m-p/5171#M434</guid>
      <dc:creator>Robert_Decker</dc:creator>
      <dc:date>2018-04-01T09:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to check if policy is changed but not installed?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-check-if-policy-is-changed-but-not-installed/m-p/145383#M6696</link>
      <description>&lt;P&gt;Hi Puckett,&lt;/P&gt;&lt;P&gt;I'm looking for the same kind of requirement with bash script. Could you pls help me with show changes cli command along with policy name if it is available?&lt;/P&gt;&lt;P&gt;How did you incorporate policy change in show changes cli command ? which field was captured&lt;/P&gt;</description>
      <pubDate>Mon, 04 Apr 2022 14:14:28 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-check-if-policy-is-changed-but-not-installed/m-p/145383#M6696</guid>
      <dc:creator>Aakashvaani_74</dc:creator>
      <dc:date>2022-04-04T14:14:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to check if policy is changed but not installed?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-check-if-policy-is-changed-but-not-installed/m-p/145385#M6697</link>
      <description>&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;Did you get a chance to find the script ? I'm looking for a bash script with same requirement&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Apr 2022 14:17:09 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-check-if-policy-is-changed-but-not-installed/m-p/145385#M6697</guid>
      <dc:creator>Aakashvaani_74</dc:creator>
      <dc:date>2022-04-04T14:17:09Z</dc:date>
    </item>
  </channel>
</rss>

