<?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 Export all gateways IPs MDS + VSX in General Topics</title>
    <link>https://community.checkpoint.com/t5/General-Topics/Export-all-gateways-IPs-MDS-VSX/m-p/252974#M42402</link>
    <description>&lt;P&gt;Hi Team,&lt;BR /&gt;&lt;BR /&gt;Could you suggest a method to get a list of &lt;STRONG&gt;ALL&lt;/STRONG&gt; the IPs of all gateways (Clusters and VSX Clusters)&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ideally get a list with IPs and object names next to it&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Nothing less, nothing more &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MDS environment with mix of VSX clusters and regular clusters and some simple gateways.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanking you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 10 Jul 2025 16:14:27 GMT</pubDate>
    <dc:creator>Machine_Head</dc:creator>
    <dc:date>2025-07-10T16:14:27Z</dc:date>
    <item>
      <title>Export all gateways IPs MDS + VSX</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Export-all-gateways-IPs-MDS-VSX/m-p/252974#M42402</link>
      <description>&lt;P&gt;Hi Team,&lt;BR /&gt;&lt;BR /&gt;Could you suggest a method to get a list of &lt;STRONG&gt;ALL&lt;/STRONG&gt; the IPs of all gateways (Clusters and VSX Clusters)&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ideally get a list with IPs and object names next to it&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Nothing less, nothing more &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MDS environment with mix of VSX clusters and regular clusters and some simple gateways.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanking you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jul 2025 16:14:27 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Export-all-gateways-IPs-MDS-VSX/m-p/252974#M42402</guid>
      <dc:creator>Machine_Head</dc:creator>
      <dc:date>2025-07-10T16:14:27Z</dc:date>
    </item>
    <item>
      <title>Re: Export all gateways IPs MDS + VSX</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Export-all-gateways-IPs-MDS-VSX/m-p/252989#M42407</link>
      <description>&lt;P&gt;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/27871"&gt;@Bob_Zimmerman&lt;/a&gt;&amp;nbsp;didn't you post a script that basically does this?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jul 2025 19:25:01 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Export-all-gateways-IPs-MDS-VSX/m-p/252989#M42407</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2025-07-10T19:25:01Z</dc:date>
    </item>
    <item>
      <title>Re: Export all gateways IPs MDS + VSX</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Export-all-gateways-IPs-MDS-VSX/m-p/252994#M42408</link>
      <description>&lt;P&gt;Not quite. I have a tool which gets one IP for each firewall, then use CPRID to run something on each of them (&lt;A href="https://community.checkpoint.com/t5/Security-Gateways/Run-a-command-on-each-firewall-via-CPRID/m-p/243195/highlight/true#M47236" target="_self"&gt;thread&lt;/A&gt;, &lt;A href="https://github.com/Bob-Zimmerman/CPFirewallScripts/blob/main/onEachFirewall.sh" target="_self"&gt;Github&lt;/A&gt;). I've used that to collect all of the IPs actually in use on the firewalls (and to collect interface status, version information, and more).&lt;/P&gt;
&lt;P&gt;VSX support in the API is very limited, but seems to be good enough in R81.20 that I think this should be possible. Poking one of my managements for a bit, it looks like this should do it:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;domains="$(mgmt_cli -f json -r true show domains limit 500 | jq '.objects[].name' | tr -d '"' | tr ' ' '\n')";echo "${domains}" | while read domainName;do mgmt_cli -f json -r true -d "${domainName}" show gateways-and-servers limit 500 details-level full | jq -c ".objects[]|{domain:\"${domainName:-$(hostname)}\",name:.name,interface:.interfaces[]|{name:.\"interface-name\",ipv4:.\"ipv4-address\",ipv6:.\"ipv6-address\"}}";done&lt;/LI-CODE&gt;
&lt;P&gt;I don't have any VSX in a multi-domain environment, so I'm not 100% sure how that will interact.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Edit&lt;/STRONG&gt;: bumped the call limits up to 500 (the highest they'll go). This could still miss some firewalls if some CMA has more than 100 or so.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jul 2025 20:31:28 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Export-all-gateways-IPs-MDS-VSX/m-p/252994#M42408</guid>
      <dc:creator>Bob_Zimmerman</dc:creator>
      <dc:date>2025-07-10T20:31:28Z</dc:date>
    </item>
    <item>
      <title>Re: Export all gateways IPs MDS + VSX</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Export-all-gateways-IPs-MDS-VSX/m-p/253011#M42409</link>
      <description>&lt;P&gt;This does the job. Thank you very much &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jul 2025 08:14:37 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Export-all-gateways-IPs-MDS-VSX/m-p/253011#M42409</guid>
      <dc:creator>Machine_Head</dc:creator>
      <dc:date>2025-07-11T08:14:37Z</dc:date>
    </item>
  </channel>
</rss>

