<?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 Failed to run gateways-and-servers command in General Topics</title>
    <link>https://community.checkpoint.com/t5/General-Topics/Failed-to-run-gateways-and-servers-command/m-p/273729#M45845</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Im running the api_show_package to export all config but im getting this error:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;[3/18/26 8:29 AM com.checkpoint.mgmt_api.examples.MyLogger.severe()SEVERE]: Failed to run gateways-and-servers command. Message: '[55.255.255.240] Is not a valid IPv4 netmask'. Status Code: '400'&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Anyone knows how can change that mask? or where can i locate it?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3/18/26 8:29 AM com.checkpoint.mgmt_api.examples.MyLogger.debug()DEBUG]: The parameters that were received:&amp;nbsp; domain:(-d)=MDS folderPath:(-o)=/tmp/ww_policies.tar.gz username:(-u)=admin password:(-p)=*****&lt;BR /&gt;[3/18/26 8:29 AM com.checkpoint.mgmt_api.examples.MyLogger.debug()DEBUG]: Limit number of object per page: 10&lt;BR /&gt;[3/18/26 8:29 AM com.checkpoint.mgmt_api.examples.MyLogger.debug()DEBUG]: Login As root: false&lt;BR /&gt;[3/18/26 8:29 AM com.checkpoint.mgmt_api.examples.MyLogger.debug()DEBUG]: Login with 'read-only' flag.&amp;nbsp;&lt;BR /&gt;[3/18/26 8:29 AM com.checkpoint.mgmt_api.examples.ShowPackageTool.writeTheVersionsToTheLogger()INFO]: Management API running version: 1.8.1&lt;BR /&gt;[3/18/26 8:29 AM com.checkpoint.mgmt_api.examples.ShowPackageTool.writeTheVersionsToTheLogger()INFO]: show_package v2.0.6&lt;BR /&gt;[3/18/26 8:29 AM com.checkpoint.mgmt_api.examples.ShowPackageTool.writeTheVersionsToTheLogger()INFO]: Chosen port: 443&lt;BR /&gt;[3/18/26 8:29 AM com.checkpoint.mgmt_api.examples.MyLogger.debug()DEBUG]: Chosen server IP: 127.0.0.1&lt;BR /&gt;[3/18/26 8:29 AM com.checkpoint.mgmt_api.examples.MyLogger.debug()DEBUG]: Login response: {"session-timeout":600,"api-server-version":"1.8.1","user-uid":"50ba22d2-70bd-4e98-8c51-b9af715a71e7","last-login-was-at":{"iso-8601":"2026-03-17T16:53+0100","posix":1773762822303},"user-name":"admin","read-only":true,"url":"https:\/\/127.0.0.1:443\/web_api","sid":"_3g3z4AHAdhGdxkN3Bb8q-Wt7ABoHFjH9Cp4KCEXUBI"}&lt;BR /&gt;[3/18/26 8:29 AM com.checkpoint.mgmt_api.examples.MyLogger.debug()DEBUG]: Run command: 'show-gateways-and-servers' with details level 'full'&lt;BR /&gt;&lt;STRONG&gt;[3/18/26 8:29 AM com.checkpoint.mgmt_api.examples.MyLogger.severe()SEVERE]: Failed to run gateways-and-servers command. Message: '[55.255.255.240] Is not a valid IPv4 netmask'. Status Code: '400'&lt;/STRONG&gt;&lt;BR /&gt;[3/18/26 8:29 AM com.checkpoint.mgmt_api.examples.ShowPackageTool.logoutReportAndExit()INFO]: Script stopped running due to severe error!&lt;BR /&gt;[3/18/26 8:29 AM com.checkpoint.mgmt_api.examples.ShowPackageTool.logoutReportAndExit()INFO]: dirPath: /tmp/1f0766f0-0801-40d4-bf1a-e8920822e0b3&lt;BR /&gt;[3/18/26 8:29 AM com.checkpoint.mgmt_api.examples.ShowPackageTool.logoutReportAndExit()INFO]: tarGzPath: /tmp/ww_policies.tar.gz&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 18 Mar 2026 16:01:28 GMT</pubDate>
    <dc:creator>Jesus_Cano</dc:creator>
    <dc:date>2026-03-18T16:01:28Z</dc:date>
    <item>
      <title>Failed to run gateways-and-servers command</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Failed-to-run-gateways-and-servers-command/m-p/273729#M45845</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Im running the api_show_package to export all config but im getting this error:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;[3/18/26 8:29 AM com.checkpoint.mgmt_api.examples.MyLogger.severe()SEVERE]: Failed to run gateways-and-servers command. Message: '[55.255.255.240] Is not a valid IPv4 netmask'. Status Code: '400'&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Anyone knows how can change that mask? or where can i locate it?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3/18/26 8:29 AM com.checkpoint.mgmt_api.examples.MyLogger.debug()DEBUG]: The parameters that were received:&amp;nbsp; domain:(-d)=MDS folderPath:(-o)=/tmp/ww_policies.tar.gz username:(-u)=admin password:(-p)=*****&lt;BR /&gt;[3/18/26 8:29 AM com.checkpoint.mgmt_api.examples.MyLogger.debug()DEBUG]: Limit number of object per page: 10&lt;BR /&gt;[3/18/26 8:29 AM com.checkpoint.mgmt_api.examples.MyLogger.debug()DEBUG]: Login As root: false&lt;BR /&gt;[3/18/26 8:29 AM com.checkpoint.mgmt_api.examples.MyLogger.debug()DEBUG]: Login with 'read-only' flag.&amp;nbsp;&lt;BR /&gt;[3/18/26 8:29 AM com.checkpoint.mgmt_api.examples.ShowPackageTool.writeTheVersionsToTheLogger()INFO]: Management API running version: 1.8.1&lt;BR /&gt;[3/18/26 8:29 AM com.checkpoint.mgmt_api.examples.ShowPackageTool.writeTheVersionsToTheLogger()INFO]: show_package v2.0.6&lt;BR /&gt;[3/18/26 8:29 AM com.checkpoint.mgmt_api.examples.ShowPackageTool.writeTheVersionsToTheLogger()INFO]: Chosen port: 443&lt;BR /&gt;[3/18/26 8:29 AM com.checkpoint.mgmt_api.examples.MyLogger.debug()DEBUG]: Chosen server IP: 127.0.0.1&lt;BR /&gt;[3/18/26 8:29 AM com.checkpoint.mgmt_api.examples.MyLogger.debug()DEBUG]: Login response: {"session-timeout":600,"api-server-version":"1.8.1","user-uid":"50ba22d2-70bd-4e98-8c51-b9af715a71e7","last-login-was-at":{"iso-8601":"2026-03-17T16:53+0100","posix":1773762822303},"user-name":"admin","read-only":true,"url":"https:\/\/127.0.0.1:443\/web_api","sid":"_3g3z4AHAdhGdxkN3Bb8q-Wt7ABoHFjH9Cp4KCEXUBI"}&lt;BR /&gt;[3/18/26 8:29 AM com.checkpoint.mgmt_api.examples.MyLogger.debug()DEBUG]: Run command: 'show-gateways-and-servers' with details level 'full'&lt;BR /&gt;&lt;STRONG&gt;[3/18/26 8:29 AM com.checkpoint.mgmt_api.examples.MyLogger.severe()SEVERE]: Failed to run gateways-and-servers command. Message: '[55.255.255.240] Is not a valid IPv4 netmask'. Status Code: '400'&lt;/STRONG&gt;&lt;BR /&gt;[3/18/26 8:29 AM com.checkpoint.mgmt_api.examples.ShowPackageTool.logoutReportAndExit()INFO]: Script stopped running due to severe error!&lt;BR /&gt;[3/18/26 8:29 AM com.checkpoint.mgmt_api.examples.ShowPackageTool.logoutReportAndExit()INFO]: dirPath: /tmp/1f0766f0-0801-40d4-bf1a-e8920822e0b3&lt;BR /&gt;[3/18/26 8:29 AM com.checkpoint.mgmt_api.examples.ShowPackageTool.logoutReportAndExit()INFO]: tarGzPath: /tmp/ww_policies.tar.gz&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Mar 2026 16:01:28 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Failed-to-run-gateways-and-servers-command/m-p/273729#M45845</guid>
      <dc:creator>Jesus_Cano</dc:creator>
      <dc:date>2026-03-18T16:01:28Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to run gateways-and-servers command</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Failed-to-run-gateways-and-servers-command/m-p/273732#M45846</link>
      <description>&lt;P&gt;What happens if you try to run directly from an SSH shell on the management the command:&amp;nbsp;mgmt_cli show gateways-and-servers details-level full" ?&lt;/P&gt;</description>
      <pubDate>Wed, 18 Mar 2026 16:08:57 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Failed-to-run-gateways-and-servers-command/m-p/273732#M45846</guid>
      <dc:creator>simonemantovani</dc:creator>
      <dc:date>2026-03-18T16:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to run gateways-and-servers command</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Failed-to-run-gateways-and-servers-command/m-p/273736#M45847</link>
      <description>&lt;P&gt;See if you can find which object it's complaining about. Use 'limit 1 offset 0', then increase the offset until you get the error. Once you have the problem object's offset, set 'details-level uid' to get the problem object's UUID.&lt;/P&gt;
&lt;P&gt;From there, 'show object uid &amp;lt;UUID&amp;gt;' will tell you the name of the object.&lt;/P&gt;
&lt;P&gt;Once you have that, look at the object in SmartConsole. I bet one of the interfaces in the topology table has a weird netmask specified.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Mar 2026 17:07:58 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Failed-to-run-gateways-and-servers-command/m-p/273736#M45847</guid>
      <dc:creator>Bob_Zimmerman</dc:creator>
      <dc:date>2026-03-18T17:07:58Z</dc:date>
    </item>
  </channel>
</rss>

