<?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 Query Global Properties via CLI in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-Query-Global-Properties-via-CLI/m-p/72266#M4300</link>
    <description>&lt;P&gt;We are using this command to query specific settings in the Global properties &amp;gt;&lt;/P&gt;
&lt;P&gt;mgmt_cli show generic-object uid $(mgmt_cli show-generic-objects name "firewall_properties" -r true -f json | jq '.objects[0].uid') -r true -f json | grep -iE "domainTcp|icmpenable|domainUdp"&lt;BR /&gt;"acceptDomainUdp" : false,&lt;BR /&gt;"domainTcpP" : "FIRST",&lt;BR /&gt;"icmpenableRouter" : true,&lt;BR /&gt;"domainTcpRouterP" : "FIRST",&lt;BR /&gt;"icmpenableP" : "BEFORE_LAST",&lt;BR /&gt;"domainUdp" : false,&lt;BR /&gt;"acceptDomainTcp" : false,&lt;BR /&gt;"domainTcpRouter" : true,&lt;BR /&gt;"icmpenableRouterP" : "BEFORE_LAST",&lt;BR /&gt;"domainUdpRouter" : true,&lt;BR /&gt;"domainTcp" : false,&lt;BR /&gt;"domainUdpP" : "FIRST",&lt;BR /&gt;"domainUdpRouterP" : "FIRST",&lt;BR /&gt;"icmpenable" : false,&lt;/P&gt;
&lt;P&gt;How can I use this same concept to query each of my domains individually at the same time, if possible. I would like to know the above settings for all my CMAs on all of my mgmt servers.&lt;/P&gt;
&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
    <pubDate>Tue, 14 Jan 2020 20:32:58 GMT</pubDate>
    <dc:creator>Stephanie_MDO</dc:creator>
    <dc:date>2020-01-14T20:32:58Z</dc:date>
    <item>
      <title>How to Query Global Properties via CLI</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-Query-Global-Properties-via-CLI/m-p/3766#M357</link>
      <description>&lt;P&gt;There are two ways to achieve this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;R80.10 and earlier using dbedit: (see&amp;nbsp;&lt;A class="link-titled" title="https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&amp;amp;solutionid=skI3301" href="https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&amp;amp;solutionid=skI3301" target="_blank" rel="noopener"&gt;Editing the objects_5_0.C file via Check Point database editing utilities&lt;/A&gt;&amp;nbsp;and the &lt;A href="https://sc1.checkpoint.com/documents/R77/CP_R77_CLI_ReferenceGuide_WebAdmin/html_frameset.htm" target="_blank" rel="noopener"&gt;R77 CLI Reference Guide&lt;/A&gt;)
&lt;UL&gt;
&lt;LI&gt;&lt;STRONG style="font-family: 'courier new', courier, monospace;"&gt;print properties firewall_properties&lt;/STRONG&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;R80.x using the API/mgmt_cli (thanks&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/38"&gt;@Uri_Bialik&lt;/a&gt;&amp;nbsp;‌for sharing):&lt;/LI&gt;
&lt;/UL&gt;
&lt;UL style="padding-left: 60px;"&gt;
&lt;LI&gt;Get the UID of the Firewall Properties table
&lt;UL&gt;
&lt;LI&gt;
&lt;P style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; color: #000000; text-indent: 0px;"&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;&lt;STRONG style="color: #1f497d;"&gt;mgmt_cli show-generic-objects name "firewall_properties" -r true&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; color: #000000; text-indent: 0px;"&gt;&lt;SPAN style="color: #1f497d; font-family: 'courier new', courier, monospace;"&gt;objects:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; color: #000000; text-indent: 0px;"&gt;&lt;SPAN style="color: #1f497d; font-family: 'courier new', courier, monospace;"&gt;- uid: "&lt;SPAN style="background-color: yellow;"&gt;42b7d2e2-4131-4c7c-8a99-ea3af38509e9&lt;/SPAN&gt;"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; color: #000000; text-indent: 0px;"&gt;&lt;SPAN style="color: #1f497d; font-family: 'courier new', courier, monospace;"&gt;&amp;nbsp; name: "firewall_properties"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; color: #000000; text-indent: 0px;"&gt;&lt;SPAN style="color: #1f497d; font-family: 'courier new', courier, monospace;"&gt;&amp;nbsp; type: "CpmiFirewallProperties"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; color: #000000; text-indent: 0px;"&gt;&lt;SPAN style="color: #1f497d; font-family: 'courier new', courier, monospace;"&gt;&amp;nbsp; domain:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; color: #000000; text-indent: 0px;"&gt;&lt;SPAN style="color: #1f497d; font-family: 'courier new', courier, monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; uid: "41e821a0-3720-11e3-aa6e-0800200c9fde"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; color: #000000; text-indent: 0px;"&gt;&lt;SPAN style="color: #1f497d; font-family: 'courier new', courier, monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; name: "SMC User"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; color: #000000; text-indent: 0px;"&gt;&lt;SPAN style="color: #1f497d; font-family: 'courier new', courier, monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; domain-type: "domain"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; color: #000000; text-indent: 0px;"&gt;&lt;SPAN style="color: #1f497d; font-family: 'courier new', courier, monospace;"&gt;from: 1&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; color: #000000; text-indent: 0px;"&gt;&lt;SPAN style="color: #1f497d; font-family: 'courier new', courier, monospace;"&gt;to: 1&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; color: #000000; text-indent: 0px;"&gt;&lt;SPAN style="color: #1f497d; font-family: 'courier new', courier, monospace;"&gt;total: 1&lt;/SPAN&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN style="color: #1f497d;"&gt;Print the details of the object by UID:&lt;/SPAN&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN style="color: #1f497d; font-family: 'courier new', courier, monospace;"&gt;&lt;STRONG style="color: #000000; font-size: 14.666666984558105px;"&gt;mgmt_cli show generic-object uid "&lt;SPAN style="background-color: yellow;"&gt;42b7d2e2-4131-4c7c-8a99-ea3af38509e9&lt;/SPAN&gt;" -r true -f json&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;In the future, we plan to have formal API support for querying and setting the various Global Property settings.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2019 03:23:16 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-Query-Global-Properties-via-CLI/m-p/3766#M357</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2019-03-20T03:23:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to Query Global Properties via CLI</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-Query-Global-Properties-via-CLI/m-p/72266#M4300</link>
      <description>&lt;P&gt;We are using this command to query specific settings in the Global properties &amp;gt;&lt;/P&gt;
&lt;P&gt;mgmt_cli show generic-object uid $(mgmt_cli show-generic-objects name "firewall_properties" -r true -f json | jq '.objects[0].uid') -r true -f json | grep -iE "domainTcp|icmpenable|domainUdp"&lt;BR /&gt;"acceptDomainUdp" : false,&lt;BR /&gt;"domainTcpP" : "FIRST",&lt;BR /&gt;"icmpenableRouter" : true,&lt;BR /&gt;"domainTcpRouterP" : "FIRST",&lt;BR /&gt;"icmpenableP" : "BEFORE_LAST",&lt;BR /&gt;"domainUdp" : false,&lt;BR /&gt;"acceptDomainTcp" : false,&lt;BR /&gt;"domainTcpRouter" : true,&lt;BR /&gt;"icmpenableRouterP" : "BEFORE_LAST",&lt;BR /&gt;"domainUdpRouter" : true,&lt;BR /&gt;"domainTcp" : false,&lt;BR /&gt;"domainUdpP" : "FIRST",&lt;BR /&gt;"domainUdpRouterP" : "FIRST",&lt;BR /&gt;"icmpenable" : false,&lt;/P&gt;
&lt;P&gt;How can I use this same concept to query each of my domains individually at the same time, if possible. I would like to know the above settings for all my CMAs on all of my mgmt servers.&lt;/P&gt;
&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2020 20:32:58 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-Query-Global-Properties-via-CLI/m-p/72266#M4300</guid>
      <dc:creator>Stephanie_MDO</dc:creator>
      <dc:date>2020-01-14T20:32:58Z</dc:date>
    </item>
  </channel>
</rss>

