<?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: Command to show all the gateways managed by the management server in Firewall and Security Management</title>
    <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Command-to-show-all-the-gateways-managed-by-the-management/m-p/270352#M60188</link>
    <description>&lt;P&gt;I have a simple R82.10 lab created to test new IA feature so i could compile it.&lt;BR /&gt;This use case is very easy. But of course not performant. It sould of course login and create a session to run on productive devices. ANd i cannot test this on not Multidomain Servers&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt; for domain in $(mgmt_cli -r true show domains limit 500 offset 0 details-level "standard" --format json | jq -r '.objects[] | .name'); do printf "CMA: %s\n==========\n" "$domain"; mgmt_cli -r true show-gateways-and-servers limit 500 --format json | jq -r '.objects[] | "\(.name)\t\(.["ipv4-address"] // "-")\t\(.type)"'; done
CMA: CMA
==========
CMA_Server      -       checkpoint-host
CMA_ZWO_Server  -       checkpoint-host
fra-r82_10_lab_pdp      -       simple-gateway
fra-r82_10_lab_pep      -       simple-gateway
CMA: CMA_ZWO
==========
CMA_Server      -       checkpoint-host
CMA_ZWO_Server  -       checkpoint-host
fra-r82_10_lab_pdp      -       simple-gateway
fra-r82_10_lab_pep      -       simple-gateway
&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;edith adds: for sure there should be some error handlings and for large environments with more gw than limit to create a loop.&lt;/P&gt;</description>
    <pubDate>Wed, 11 Feb 2026 13:44:37 GMT</pubDate>
    <dc:creator>Vincent_Bacher</dc:creator>
    <dc:date>2026-02-11T13:44:37Z</dc:date>
    <item>
      <title>Command to show all the gateways managed by the management server</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Command-to-show-all-the-gateways-managed-by-the-management/m-p/270335#M60185</link>
      <description>&lt;P&gt;Hey guys,&lt;/P&gt;
&lt;P&gt;Had customer send me this yerterday. Im no api expert by any means, so the command comes in handy.&lt;/P&gt;
&lt;P&gt;[Expert@CP-MANAGEMENT:0]# mgmt_cli -r true show-gateways-and-servers limit 500 --format json \&lt;BR /&gt;&amp;gt; | jq -r '.objects[] | "\(.name)\t\(.["ipv4-address"] // "-")\t\(.type)"'&lt;BR /&gt;CP-FW-01 - cluster-member&lt;BR /&gt;CP-FW-02 - cluster-member&lt;BR /&gt;CP-FW-CLUSTER - CpmiGatewayCluster&lt;BR /&gt;CP-GW - simple-gateway&lt;BR /&gt;CP-MANAGEMENT - checkpoint-host&lt;BR /&gt;CP-SMARTEVENT - checkpoint-host&lt;BR /&gt;[Expert@CP-MANAGEMENT:0]#&lt;/P&gt;</description>
      <pubDate>Wed, 11 Feb 2026 12:47:55 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Command-to-show-all-the-gateways-managed-by-the-management/m-p/270335#M60185</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2026-02-11T12:47:55Z</dc:date>
    </item>
    <item>
      <title>Re: Command to show all the gateways managed by the management server</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Command-to-show-all-the-gateways-managed-by-the-management/m-p/270344#M60186</link>
      <description>&lt;P&gt;Could be extended for Multdomain and loop over all domains.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Feb 2026 13:18:52 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Command-to-show-all-the-gateways-managed-by-the-management/m-p/270344#M60186</guid>
      <dc:creator>Vincent_Bacher</dc:creator>
      <dc:date>2026-02-11T13:18:52Z</dc:date>
    </item>
    <item>
      <title>Re: Command to show all the gateways managed by the management server</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Command-to-show-all-the-gateways-managed-by-the-management/m-p/270347#M60187</link>
      <description>&lt;P&gt;I should probably create brand new R82 mds lab...had it at some point, but had to delete it.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Feb 2026 13:20:04 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Command-to-show-all-the-gateways-managed-by-the-management/m-p/270347#M60187</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2026-02-11T13:20:04Z</dc:date>
    </item>
    <item>
      <title>Re: Command to show all the gateways managed by the management server</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Command-to-show-all-the-gateways-managed-by-the-management/m-p/270352#M60188</link>
      <description>&lt;P&gt;I have a simple R82.10 lab created to test new IA feature so i could compile it.&lt;BR /&gt;This use case is very easy. But of course not performant. It sould of course login and create a session to run on productive devices. ANd i cannot test this on not Multidomain Servers&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt; for domain in $(mgmt_cli -r true show domains limit 500 offset 0 details-level "standard" --format json | jq -r '.objects[] | .name'); do printf "CMA: %s\n==========\n" "$domain"; mgmt_cli -r true show-gateways-and-servers limit 500 --format json | jq -r '.objects[] | "\(.name)\t\(.["ipv4-address"] // "-")\t\(.type)"'; done
CMA: CMA
==========
CMA_Server      -       checkpoint-host
CMA_ZWO_Server  -       checkpoint-host
fra-r82_10_lab_pdp      -       simple-gateway
fra-r82_10_lab_pep      -       simple-gateway
CMA: CMA_ZWO
==========
CMA_Server      -       checkpoint-host
CMA_ZWO_Server  -       checkpoint-host
fra-r82_10_lab_pdp      -       simple-gateway
fra-r82_10_lab_pep      -       simple-gateway
&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;edith adds: for sure there should be some error handlings and for large environments with more gw than limit to create a loop.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Feb 2026 13:44:37 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Command-to-show-all-the-gateways-managed-by-the-management/m-p/270352#M60188</guid>
      <dc:creator>Vincent_Bacher</dc:creator>
      <dc:date>2026-02-11T13:44:37Z</dc:date>
    </item>
    <item>
      <title>Re: Command to show all the gateways managed by the management server</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Command-to-show-all-the-gateways-managed-by-the-management/m-p/270408#M60189</link>
      <description>&lt;P&gt;I did something similar for &lt;A href="https://community.checkpoint.com/t5/Security-Gateways/Run-a-command-on-each-firewall-via-CPRID/m-p/156873" target="_self"&gt;my script to run something on each firewall managed by a given management server (onEachFirewall)&lt;/A&gt;. It's part of &lt;A href="https://github.com/Bob-Zimmerman/CPFirewallScripts" target="_self"&gt;my CPFirewallScrips repo on Github&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Feb 2026 15:40:51 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Command-to-show-all-the-gateways-managed-by-the-management/m-p/270408#M60189</guid>
      <dc:creator>Bob_Zimmerman</dc:creator>
      <dc:date>2026-02-11T15:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: Command to show all the gateways managed by the management server</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Command-to-show-all-the-gateways-managed-by-the-management/m-p/270423#M60190</link>
      <description>&lt;P&gt;Very interesting, thanks for sharing!&lt;/P&gt;
&lt;P&gt;I did create similar functions in python for web api calls in a quiet bigger project. Target is to upgrade round about 50 open server pdp only devices using CP- and VMware API from R81.20 to R82&lt;/P&gt;</description>
      <pubDate>Wed, 11 Feb 2026 17:32:23 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Command-to-show-all-the-gateways-managed-by-the-management/m-p/270423#M60190</guid>
      <dc:creator>Vincent_Bacher</dc:creator>
      <dc:date>2026-02-11T17:32:23Z</dc:date>
    </item>
    <item>
      <title>Re: Command to show all the gateways managed by the management server</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Command-to-show-all-the-gateways-managed-by-the-management/m-p/270427#M60191</link>
      <description>&lt;P&gt;O yea, I remember that.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Feb 2026 18:39:16 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Command-to-show-all-the-gateways-managed-by-the-management/m-p/270427#M60191</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2026-02-11T18:39:16Z</dc:date>
    </item>
  </channel>
</rss>

