<?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: Need Help with Automating Device Information Gathering in MDS Environment in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Need-Help-with-Automating-Device-Information-Gathering-in-MDS/m-p/230288#M8806</link>
    <description>&lt;P&gt;show-gateways-and-servers will only show you information in the Management about the object.&lt;BR /&gt;You might want to look into the following:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;get-platform:&amp;nbsp;&lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/index.html#cli/get-platform~v2%20" target="_blank"&gt;https://sc1.checkpoint.com/documents/latest/APIs/index.html#cli/get-platform~v2%20&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;In the Gaia API (&lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/#cli/gaia-api~v2%20" target="_blank"&gt;referenceable from the Management API&lt;/A&gt;), you also have:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;show-license:&amp;nbsp;&lt;A href="https://sc1.checkpoint.com/documents/latest/GaiaAPIs/#web/show-licenses~v1.7%20" target="_blank"&gt;https://sc1.checkpoint.com/documents/latest/GaiaAPIs/#web/show-licenses~v1.7%20&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;show-asset:&amp;nbsp;&lt;A href="https://sc1.checkpoint.com/documents/latest/GaiaAPIs/#web/show-asset~v1.7%20" target="_blank"&gt;https://sc1.checkpoint.com/documents/latest/GaiaAPIs/#web/show-asset~v1.7%20&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;show-cluster-state:&amp;nbsp;&lt;A href="https://sc1.checkpoint.com/documents/latest/GaiaAPIs/#web/show-cluster-state~v1.7%20" target="_blank"&gt;https://sc1.checkpoint.com/documents/latest/GaiaAPIs/#web/show-cluster-state~v1.7%20&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;R82 has an additional APIs that will help as well:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;show gateway-capabilities:&amp;nbsp;&lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/index.html#cli/show-gateway-capabilities~v2%20" target="_blank"&gt;https://sc1.checkpoint.com/documents/latest/APIs/index.html#cli/show-gateway-capabilities~v2%20&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Hopefully that helps and will reduce your need to use run-script (also a possibility, of course).&lt;/P&gt;</description>
    <pubDate>Mon, 21 Oct 2024 13:53:00 GMT</pubDate>
    <dc:creator>PhoneBoy</dc:creator>
    <dc:date>2024-10-21T13:53:00Z</dc:date>
    <item>
      <title>Need Help with Automating Device Information Gathering in MDS Environment</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Need-Help-with-Automating-Device-Information-Gathering-in-MDS/m-p/230043#M8802</link>
      <description>&lt;P&gt;Hi everyone!&lt;/P&gt;&lt;P&gt;I'm reaching out for some advice because I'm a bit stuck at the moment.&lt;/P&gt;&lt;P&gt;We have an MDS environment and are developing automation scripts for compliance checks and read/write operations. Currently, I need to list all devices across all domains and download their configurations using the MDS CLI. I then execute commands remotely on Gaia and Gaia Embedded appliances.&lt;/P&gt;&lt;P&gt;The challenge is that, as part of a central team, I don’t have direct access to the firewalls but still need to gather all their information (yes, I know, it’s a bit ironic given the situation!).&lt;/P&gt;&lt;P&gt;We’re using the API show-gateways-and-servers call to gather appliance information, but the output is quite limited. It’s missing important details like:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Serial number&lt;/LI&gt;&lt;LI&gt;MAC address&lt;/LI&gt;&lt;LI&gt;HA status (active/standby)&lt;/LI&gt;&lt;LI&gt;Exact model&lt;/LI&gt;&lt;LI&gt;Jumbo Hotfix (JHF) version&lt;/LI&gt;&lt;LI&gt;License details&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I was thinking of using remote execution to gather this info manually, but with around 800-1500 gateways globally, it’s taking forever to go through them all.&lt;/P&gt;&lt;P&gt;Is there anything you can recommend to speed this up or make the process more efficient? Also, what specific commands can I run on Gaia, Gaia Embedded, or Gaia VM to extract all the necessary details?&lt;/P&gt;&lt;P&gt;Any help would be much appreciated—my brain is fried and I could really use a nudge in the right direction! &lt;span class="lia-unicode-emoji" title=":grinning_face_with_sweat:"&gt;😅&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2024 16:22:11 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Need-Help-with-Automating-Device-Information-Gathering-in-MDS/m-p/230043#M8802</guid>
      <dc:creator>majorluk</dc:creator>
      <dc:date>2024-10-17T16:22:11Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help with Automating Device Information Gathering in MDS Environment</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Need-Help-with-Automating-Device-Information-Gathering-in-MDS/m-p/230210#M8803</link>
      <description>&lt;P&gt;Can you use GAIA API for the operation?&lt;/P&gt;
&lt;P&gt;If you do, you can use run-script API to get the info you need:&amp;nbsp;&lt;A href="https://sc1.checkpoint.com/documents/latest/GaiaAPIs/index.html#web/run-script~v1.7%20" target="_blank"&gt;https://sc1.checkpoint.com/documents/latest/GaiaAPIs/index.html#web/run-script~v1.7%20&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 20 Oct 2024 11:56:00 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Need-Help-with-Automating-Device-Information-Gathering-in-MDS/m-p/230210#M8803</guid>
      <dc:creator>Amir_Senn</dc:creator>
      <dc:date>2024-10-20T11:56:00Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help with Automating Device Information Gathering in MDS Environment</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Need-Help-with-Automating-Device-Information-Gathering-in-MDS/m-p/230211#M8804</link>
      <description>&lt;P&gt;You can also use the older cpstat command with the -h flag to would with remote Security Gateways.&lt;/P&gt;
&lt;P&gt;cpstat might have the flags to show what you are looking for (just type cpstat and it will give the usage).&lt;/P&gt;
&lt;P&gt;For example &lt;STRONG&gt;cpstat os -f all -h &amp;lt;IP address&amp;gt;&lt;/STRONG&gt; will retrieve the OS flags from the remote machine.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 20 Oct 2024 12:02:40 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Need-Help-with-Automating-Device-Information-Gathering-in-MDS/m-p/230211#M8804</guid>
      <dc:creator>Tal_Paz-Fridman</dc:creator>
      <dc:date>2024-10-20T12:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help with Automating Device Information Gathering in MDS Environment</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Need-Help-with-Automating-Device-Information-Gathering-in-MDS/m-p/230288#M8806</link>
      <description>&lt;P&gt;show-gateways-and-servers will only show you information in the Management about the object.&lt;BR /&gt;You might want to look into the following:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;get-platform:&amp;nbsp;&lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/index.html#cli/get-platform~v2%20" target="_blank"&gt;https://sc1.checkpoint.com/documents/latest/APIs/index.html#cli/get-platform~v2%20&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;In the Gaia API (&lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/#cli/gaia-api~v2%20" target="_blank"&gt;referenceable from the Management API&lt;/A&gt;), you also have:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;show-license:&amp;nbsp;&lt;A href="https://sc1.checkpoint.com/documents/latest/GaiaAPIs/#web/show-licenses~v1.7%20" target="_blank"&gt;https://sc1.checkpoint.com/documents/latest/GaiaAPIs/#web/show-licenses~v1.7%20&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;show-asset:&amp;nbsp;&lt;A href="https://sc1.checkpoint.com/documents/latest/GaiaAPIs/#web/show-asset~v1.7%20" target="_blank"&gt;https://sc1.checkpoint.com/documents/latest/GaiaAPIs/#web/show-asset~v1.7%20&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;show-cluster-state:&amp;nbsp;&lt;A href="https://sc1.checkpoint.com/documents/latest/GaiaAPIs/#web/show-cluster-state~v1.7%20" target="_blank"&gt;https://sc1.checkpoint.com/documents/latest/GaiaAPIs/#web/show-cluster-state~v1.7%20&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;R82 has an additional APIs that will help as well:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;show gateway-capabilities:&amp;nbsp;&lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/index.html#cli/show-gateway-capabilities~v2%20" target="_blank"&gt;https://sc1.checkpoint.com/documents/latest/APIs/index.html#cli/show-gateway-capabilities~v2%20&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Hopefully that helps and will reduce your need to use run-script (also a possibility, of course).&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2024 13:53:00 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Need-Help-with-Automating-Device-Information-Gathering-in-MDS/m-p/230288#M8806</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2024-10-21T13:53:00Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help with Automating Device Information Gathering in MDS Environment</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Need-Help-with-Automating-Device-Information-Gathering-in-MDS/m-p/230535#M8811</link>
      <description>&lt;P&gt;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/7"&gt;@PhoneBoy&lt;/a&gt; that's a great collection of API calls for this case.&lt;BR /&gt;&lt;BR /&gt;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/90252"&gt;@majorluk&lt;/a&gt;&amp;nbsp;you can combine them in a Python script for example to build your own overview based on the outputs. You don't need access to the devices themselves. For MDS, make sure to have Multi-Domain Super User rights in SmartConsole. Then you can use the show-gateways-and-servers API call to get the uids of the gateways. Those uids can be used then with the API call&amp;nbsp;&lt;SPAN&gt;gaia-api to gather the details from Gaia API using Management API. Like this:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;&amp;gt; gaia-api/show-cluster-state target "69ab02a3-ee97-4be9-b818-adbffc51dc4e" --format json

{
"command-name" : "show-cluster-state",
"response-message" : {
"additional-info" : "",
"cluster-status" : "ok",
"message" : "Cluster Active",
"mode" : "virtual-system-load-sharing",
"other-cluster-members" : [ {
"load" : 0,
"name" : "A-VSX-02",
"peer-id" : 2,
"status" : "standby"
}, {
"load" : 0,
"name" : "A-VSX-03",
"peer-id" : 3,
"status" : "standby"
} ],
"this-cluster-member" : {
"load" : 100,
"name" : "A-VSX-01",
"peer-id" : 1,
"status" : "active"
}
}
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This should work in my opinion. Let me know if you need an example in Python.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2024 05:35:29 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Need-Help-with-Automating-Device-Information-Gathering-in-MDS/m-p/230535#M8811</guid>
      <dc:creator>Daniel_Kuhl1</dc:creator>
      <dc:date>2024-10-23T05:35:29Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help with Automating Device Information Gathering in MDS Environment</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Need-Help-with-Automating-Device-Information-Gathering-in-MDS/m-p/231099#M8819</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks a lot for the feedback! GAIA doesn't seem to be an issue, but GAIA Embedded is a bit tricky. It doesn’t support those API calls, and the CLI commands differ from those on a typical GAIA system.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2024 09:51:35 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Need-Help-with-Automating-Device-Information-Gathering-in-MDS/m-p/231099#M8819</guid>
      <dc:creator>majorluk</dc:creator>
      <dc:date>2024-10-29T09:51:35Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help with Automating Device Information Gathering in MDS Environment</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Need-Help-with-Automating-Device-Information-Gathering-in-MDS/m-p/231100#M8820</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks a lot for the feedback! GAIA doesn't seem to be an issue, but GAIA Embedded is a bit tricky. It doesn’t support those API calls, and the CLI commands differ from those on a typical GAIA system. &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2024 09:52:32 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Need-Help-with-Automating-Device-Information-Gathering-in-MDS/m-p/231100#M8820</guid>
      <dc:creator>majorluk</dc:creator>
      <dc:date>2024-10-29T09:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help with Automating Device Information Gathering in MDS Environment</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Need-Help-with-Automating-Device-Information-Gathering-in-MDS/m-p/231173#M8822</link>
      <description>&lt;P&gt;Gaia Embedded has different CLI which can called via &lt;A href="https://sc1.checkpoint.com/documents/SMB_R81.10.X/AdminGuides_Locally_Managed/EN/Content/Topics/RESTful-API.htm" target="_self"&gt;REST API&lt;/A&gt;.&lt;BR /&gt;The CLI commands that are probably most relevant (based on your original post) are:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;show diag&lt;/LI&gt;
&lt;LI&gt;fw ver&lt;/LI&gt;
&lt;LI&gt;cplic print&lt;/LI&gt;
&lt;LI&gt;show cluster-status&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2024 17:23:19 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Need-Help-with-Automating-Device-Information-Gathering-in-MDS/m-p/231173#M8822</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2024-10-29T17:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help with Automating Device Information Gathering in MDS Environment</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Need-Help-with-Automating-Device-Information-Gathering-in-MDS/m-p/231253#M8823</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;It looks like this is currently the easiest way to retrieve the data. Is there also a command available to check the Gateway cluster status and licensing? Since MDS stores that information in its database, there might be a way to access it, right?&lt;/P&gt;&lt;P&gt;Thanks so much!&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2024 14:43:11 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Need-Help-with-Automating-Device-Information-Gathering-in-MDS/m-p/231253#M8823</guid>
      <dc:creator>majorluk</dc:creator>
      <dc:date>2024-10-30T14:43:11Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help with Automating Device Information Gathering in MDS Environment</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Need-Help-with-Automating-Device-Information-Gathering-in-MDS/m-p/231258#M8824</link>
      <description>&lt;P&gt;Nevermind! Found all flags here:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://sc1.checkpoint.com/documents/R81/WebAdminGuides/EN/CP_R81_SecurityManagement_AdminGuide/Topics-SECMG/CLI/cpstat.htm" target="_blank"&gt;cpstat&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot!!! Saved a lot of time!!&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2024 15:05:02 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Need-Help-with-Automating-Device-Information-Gathering-in-MDS/m-p/231258#M8824</guid>
      <dc:creator>majorluk</dc:creator>
      <dc:date>2024-10-30T15:05:02Z</dc:date>
    </item>
  </channel>
</rss>

