<?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: &amp;quot;show-ips-status&amp;quot; on R81 replies &amp;quot;latest-version&amp;quot;: &amp;quot;N/A&amp;quot;, in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/quot-show-ips-status-quot-on-R81-replies-quot-latest-version/m-p/101726#M5300</link>
    <description>&lt;P&gt;Hi Daniel,&lt;/P&gt;
&lt;P&gt;According to my tests on a Security Management Server behavior between R80 and R81 have not changed.&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Does the management have internet access?&lt;/LI&gt;
&lt;LI&gt;Are you doing this on a SMS or MDS?&lt;/LI&gt;
&lt;LI&gt;To make sure you are using a GA and not EA ISO, can you share the output of "cpinfo -y all" from the management server?&lt;/LI&gt;
&lt;LI&gt;To make sure it does not has anything to do with the way your script parses the response. Can you share the output of "mgmt_cli show ips-status -r true -f json" from the management server?&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;This is the result I get on GA version R81 (Take 392)&lt;BR /&gt;As you can see, the show-ips-status is showing the update status and the number of latest version before and after IPS update.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[Expert@sms-pri70:0]# cpinfo -y all
This is Check Point CPinfo Build 914000214 for GAIA
[MGMT]
        No hotfixes..
[FW1]
        HOTFIX_GOT_MGMT_AUTOUPDATE
        HOTFIX_GOT_TPCONF_MGMT_AUTOUPDATE
FW1 build number:
This is Check Point Security Management Server R81 - Build 287
This is Check Point's software version R81 - Build 959&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;[Expert@sms-pri70:0]# mgmt_cli show ips-status -r true -f json
{
  "last-updated" : {
    "posix" : 1605002993000,
    "iso-8601" : "2020-11-10T11:09+0100"
  },
  "installed-version" : "635158746",
  "installed-version-creation-time" : {
    "posix" : 1451552400000,
    "iso-8601" : "2015-12-31T10:00+0100"
  },
  "update-available" : true,
  "latest-version" : "635207528",
  "latest-version-creation-time" : {
    "posix" : 1604934000000,
    "iso-8601" : "2020-11-09T16:00+0100"
  }
}

[Expert@sms-pri70:0]# mgmt_cli run-ips-update -r true -f json
---------------------------------------------
Time: [09:01:57] 11/11/2020
---------------------------------------------
"IPS Management Update"  succeeded  (100%)

[Expert@sms-pri70:0]# mgmt_cli show ips-status -r true -f json
{
  "last-updated" : {
    "posix" : 1605081654000,
    "iso-8601" : "2020-11-11T09:00+0100"
  },
  "installed-version" : "635207528",
  "installed-version-creation-time" : {
    "posix" : 1604934000000,
    "iso-8601" : "2020-11-09T16:00+0100"
  },
  "update-available" : false,
  "latest-version" : "635207528",
  "latest-version-creation-time" : {
    "posix" : 1604934000000,
    "iso-8601" : "2020-11-09T16:00+0100"
  }
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 11 Nov 2020 08:42:00 GMT</pubDate>
    <dc:creator>Jim_Oqvist</dc:creator>
    <dc:date>2020-11-11T08:42:00Z</dc:date>
    <item>
      <title>"show-ips-status" on R81 replies "latest-version": "N/A",</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/quot-show-ips-status-quot-on-R81-replies-quot-latest-version/m-p/101691#M5298</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I did a script for monitoring IPS status on Management and managed Devices. at least since R81 Management response for "show-ips-status" includes "latest-version": "N/A". As I want to compare the installed version with the latest available version (and did not find a ressource to fetch these informations directly from Check Point), my script now fails.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So Question is,&lt;/P&gt;&lt;P&gt;Does anyone else see this? I tested with two installations on R81. Both with same result.&lt;BR /&gt;Does someone else have an idea where to fetch the latest version number (perhaps including a timestamp for creation date?)&lt;/P&gt;&lt;P&gt;Example API Response:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DEBUG:root:API Output:APIResponse({&lt;BR /&gt;"data": {&lt;BR /&gt;"installed-version": "635207528",&lt;BR /&gt;"installed-version-creation-time": {&lt;BR /&gt;"iso-8601": "2020-11-09T16:00+0100",&lt;BR /&gt;"posix": 1604934000000&lt;BR /&gt;},&lt;BR /&gt;"last-updated": {&lt;BR /&gt;"iso-8601": "2020-11-10T21:12+0100",&lt;BR /&gt;"posix": 1605039138000&lt;BR /&gt;},&lt;BR /&gt;"latest-version": "N/A",&lt;BR /&gt;"update-available": false&lt;BR /&gt;},&lt;BR /&gt;"res_obj": {&lt;BR /&gt;"data": {&lt;BR /&gt;"installed-version": "635207528",&lt;BR /&gt;"installed-version-creation-time": {&lt;BR /&gt;"iso-8601": "2020-11-09T16:00+0100",&lt;BR /&gt;"posix": 1604934000000&lt;BR /&gt;},&lt;BR /&gt;"last-updated": {&lt;BR /&gt;"iso-8601": "2020-11-10T21:12+0100",&lt;BR /&gt;"posix": 1605039138000&lt;BR /&gt;},&lt;BR /&gt;"latest-version": "N/A",&lt;BR /&gt;"update-available": false&lt;BR /&gt;},&lt;BR /&gt;"status_code": 200&lt;BR /&gt;},&lt;BR /&gt;"status_code": 200,&lt;BR /&gt;"success": true&lt;BR /&gt;})&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;...or any other idea?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2020 00:31:01 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/quot-show-ips-status-quot-on-R81-replies-quot-latest-version/m-p/101691#M5298</guid>
      <dc:creator>Nüüül</dc:creator>
      <dc:date>2020-11-11T00:31:01Z</dc:date>
    </item>
    <item>
      <title>Re: "show-ips-status" on R81 replies "latest-version": "N/A",</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/quot-show-ips-status-quot-on-R81-replies-quot-latest-version/m-p/101726#M5300</link>
      <description>&lt;P&gt;Hi Daniel,&lt;/P&gt;
&lt;P&gt;According to my tests on a Security Management Server behavior between R80 and R81 have not changed.&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Does the management have internet access?&lt;/LI&gt;
&lt;LI&gt;Are you doing this on a SMS or MDS?&lt;/LI&gt;
&lt;LI&gt;To make sure you are using a GA and not EA ISO, can you share the output of "cpinfo -y all" from the management server?&lt;/LI&gt;
&lt;LI&gt;To make sure it does not has anything to do with the way your script parses the response. Can you share the output of "mgmt_cli show ips-status -r true -f json" from the management server?&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;This is the result I get on GA version R81 (Take 392)&lt;BR /&gt;As you can see, the show-ips-status is showing the update status and the number of latest version before and after IPS update.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[Expert@sms-pri70:0]# cpinfo -y all
This is Check Point CPinfo Build 914000214 for GAIA
[MGMT]
        No hotfixes..
[FW1]
        HOTFIX_GOT_MGMT_AUTOUPDATE
        HOTFIX_GOT_TPCONF_MGMT_AUTOUPDATE
FW1 build number:
This is Check Point Security Management Server R81 - Build 287
This is Check Point's software version R81 - Build 959&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;[Expert@sms-pri70:0]# mgmt_cli show ips-status -r true -f json
{
  "last-updated" : {
    "posix" : 1605002993000,
    "iso-8601" : "2020-11-10T11:09+0100"
  },
  "installed-version" : "635158746",
  "installed-version-creation-time" : {
    "posix" : 1451552400000,
    "iso-8601" : "2015-12-31T10:00+0100"
  },
  "update-available" : true,
  "latest-version" : "635207528",
  "latest-version-creation-time" : {
    "posix" : 1604934000000,
    "iso-8601" : "2020-11-09T16:00+0100"
  }
}

[Expert@sms-pri70:0]# mgmt_cli run-ips-update -r true -f json
---------------------------------------------
Time: [09:01:57] 11/11/2020
---------------------------------------------
"IPS Management Update"  succeeded  (100%)

[Expert@sms-pri70:0]# mgmt_cli show ips-status -r true -f json
{
  "last-updated" : {
    "posix" : 1605081654000,
    "iso-8601" : "2020-11-11T09:00+0100"
  },
  "installed-version" : "635207528",
  "installed-version-creation-time" : {
    "posix" : 1604934000000,
    "iso-8601" : "2020-11-09T16:00+0100"
  },
  "update-available" : false,
  "latest-version" : "635207528",
  "latest-version-creation-time" : {
    "posix" : 1604934000000,
    "iso-8601" : "2020-11-09T16:00+0100"
  }
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2020 08:42:00 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/quot-show-ips-status-quot-on-R81-replies-quot-latest-version/m-p/101726#M5300</guid>
      <dc:creator>Jim_Oqvist</dc:creator>
      <dc:date>2020-11-11T08:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: "show-ips-status" on R81 replies "latest-version": "N/A",</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/quot-show-ips-status-quot-on-R81-replies-quot-latest-version/m-p/101822#M5307</link>
      <description>&lt;P&gt;Hi Jim,&lt;/P&gt;&lt;P&gt;cpinfo:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;This is Check Point CPinfo Build 914000214 for GAIA

[MGMT]
	No hotfixes..

[FW1]
	HOTFIX_GOT_MGMT_AUTOUPDATE
	HOTFIX_GOT_TPCONF_MGMT_AUTOUPDATE

FW1 build number:
This is Check Point Security Management Server R81 - Build 287
This is Check Point's software version R81 - Build 959&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;it turns out, that the user needs following right set via the Permission Profiles:&lt;/P&gt;&lt;P&gt;Gateways -&amp;gt; "Manage Licenses and Packages" -&amp;gt; "write" - even for a "show command"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The script of mine is using the Check Point python SDK via Web&amp;nbsp;&lt;/P&gt;&lt;P&gt;Output with correct right set:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;   "res_obj": {
        "data": {
            "installed-version": "635207560",
            "installed-version-creation-time": {
                "iso-8601": "2020-11-11T00:00+0100",
                "posix": 1605049200000
            },
            "last-updated": {
                "iso-8601": "2020-11-11T13:12+0100",
                "posix": 1605096724000
            },
            "latest-version": "635207560",
            "latest-version-creation-time": {
                "iso-8601": "2020-11-11T00:00+0100",
                "posix": 1605049200000
            },
            "update-available": false
        }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Output with "read" permission on Gateways -&amp;gt; "Manage Licenses and Packages" :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;    "res_obj": {
        "data": {
            "installed-version": "635207560",
            "installed-version-creation-time": {
                "iso-8601": "2020-11-11T00:00+0100",
                "posix": 1605049200000
            },
            "last-updated": {
                "iso-8601": "2020-11-11T13:12+0100",
                "posix": 1605096724000
            },
            "latest-version": "N/A",
            "update-available": false
        },
        "status_code": 200
    }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Will edit the script and add it to script documentation &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2020 20:01:35 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/quot-show-ips-status-quot-on-R81-replies-quot-latest-version/m-p/101822#M5307</guid>
      <dc:creator>Nüüül</dc:creator>
      <dc:date>2020-11-11T20:01:35Z</dc:date>
    </item>
  </channel>
</rss>

