<?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: mgmt_cli: domains-to-process - Valid values are: CURRENT_DOMAIN, ALL_DOMAINS_ON_THIS_SERVER in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-domains-to-process-Valid-values-are-CURRENT-DOMAIN-ALL/m-p/223515#M8664</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/52698"&gt;@abr&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Since domains-to-process is a list, it should be something like this:&lt;BR /&gt;mgmt_cli show hosts domains-to-process&lt;STRONG&gt;.1&lt;/STRONG&gt; "ALL_DOMAINS_ON_THIS_SERVER" filter "1.1.1.1" ignore-warnings true --format json -s id.txt&lt;/P&gt;</description>
    <pubDate>Tue, 13 Aug 2024 15:00:14 GMT</pubDate>
    <dc:creator>Omer_Kleinstern</dc:creator>
    <dc:date>2024-08-13T15:00:14Z</dc:date>
    <item>
      <title>mgmt_cli: domains-to-process - Valid values are: CURRENT_DOMAIN, ALL_DOMAINS_ON_THIS_SERVER</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-domains-to-process-Valid-values-are-CURRENT-DOMAIN-ALL/m-p/222940#M8653</link>
      <description>&lt;P&gt;Hi CheckMates&lt;/P&gt;&lt;P&gt;Can anyone provide a working example of how to use “domains_to_process”. I just came across this parameter and was wondering how to use it correctly.&lt;/P&gt;&lt;P&gt;As I understand it, the intention is to search across domains for fx. hosts.&lt;BR /&gt;&lt;BR /&gt;Doing something like this:&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;mgmt_cli show hosts domains-to-process "ALL_DOMAINS_ON_THIS_SERVER" filter "1.1.1.1" --format json -s id.txt&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I just can’t seem to make it work. I tried using it with id.txt set to “System Data” but without success.&lt;/P&gt;&lt;P&gt;Guessing that I’m misunderstanding the intended use case.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Much appreciated if anyone have examples to share.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2024 11:33:05 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-domains-to-process-Valid-values-are-CURRENT-DOMAIN-ALL/m-p/222940#M8653</guid>
      <dc:creator>abr</dc:creator>
      <dc:date>2024-08-07T11:33:05Z</dc:date>
    </item>
    <item>
      <title>Re: mgmt_cli: domains-to-process - Valid values are: CURRENT_DOMAIN, ALL_DOMAINS_ON_THIS_SERVER</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-domains-to-process-Valid-values-are-CURRENT-DOMAIN-ALL/m-p/223161#M8654</link>
      <description>&lt;P&gt;"&lt;STRONG&gt;&lt;EM&gt;domains-to-process"&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt; does not seem to be a part of any valid command in the first place. Where are you taking this example from?&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2024 12:25:37 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-domains-to-process-Valid-values-are-CURRENT-DOMAIN-ALL/m-p/223161#M8654</guid>
      <dc:creator>_Val_</dc:creator>
      <dc:date>2024-08-09T12:25:37Z</dc:date>
    </item>
    <item>
      <title>Re: mgmt_cli: domains-to-process - Valid values are: CURRENT_DOMAIN, ALL_DOMAINS_ON_THIS_SERVER</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-domains-to-process-Valid-values-are-CURRENT-DOMAIN-ALL/m-p/223171#M8655</link>
      <description>&lt;P&gt;The documentation:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/?#cli/show-hosts~v1.9.1%20" target="_blank"&gt;https://sc1.checkpoint.com/documents/latest/APIs/?#cli/show-hosts~v1.9.1%20&lt;/A&gt;&lt;/P&gt;
&lt;TABLE class="table"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD class="param_key"&gt;&lt;SPAN class="blue"&gt;domains-to-process&lt;/SPAN&gt;&lt;/TD&gt;
&lt;TD class="param_value"&gt;List: string&lt;BR /&gt;&lt;SPAN class="grey"&gt;Default:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="blue"&gt;CURRENT_DOMAIN&lt;/SPAN&gt;&lt;/TD&gt;
&lt;TD class="param_description"&gt;&lt;SPAN class="description to_check_for_rewrite"&gt;Indicates which domains to process the commands on. It cannot be used with the details-level full, must be run from the System Domain only and with ignore-warnings true. Valid values are: CURRENT_DOMAIN, ALL_DOMAINS_ON_THIS_SERVER.&lt;/SPAN&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
      <pubDate>Fri, 09 Aug 2024 14:57:55 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-domains-to-process-Valid-values-are-CURRENT-DOMAIN-ALL/m-p/223171#M8655</guid>
      <dc:creator>Henrik_Noerr1</dc:creator>
      <dc:date>2024-08-09T14:57:55Z</dc:date>
    </item>
    <item>
      <title>Re: mgmt_cli: domains-to-process - Valid values are: CURRENT_DOMAIN, ALL_DOMAINS_ON_THIS_SERVER</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-domains-to-process-Valid-values-are-CURRENT-DOMAIN-ALL/m-p/223375#M8658</link>
      <description>&lt;P&gt;What's the exact output when you try to use that command?&lt;BR /&gt;Also see the note about &lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/?#cli/show-hosts~v1.9.1%20" target="_blank"&gt;including ignore-warnings true in the API docs&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2024 18:56:41 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-domains-to-process-Valid-values-are-CURRENT-DOMAIN-ALL/m-p/223375#M8658</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2024-08-12T18:56:41Z</dc:date>
    </item>
    <item>
      <title>Re: mgmt_cli: domains-to-process - Valid values are: CURRENT_DOMAIN, ALL_DOMAINS_ON_THIS_SERVER</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-domains-to-process-Valid-values-are-CURRENT-DOMAIN-ALL/m-p/223421#M8660</link>
      <description>&lt;P&gt;Hi PhoneBoy&lt;BR /&gt;&lt;BR /&gt;Result of trying the command with domain set to "&lt;STRONG&gt;System Data&lt;/STRONG&gt;" in my id.txt file on API version "1.9.1".&lt;BR /&gt;I assume that by "&lt;SPAN&gt;ignore-warnings true" they mean "&lt;EM&gt;--ignore-errors true" .&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;EM&gt;&lt;BR /&gt;&lt;STRONG&gt;------------------------------------------------------------------------------------------------------------------------------------&lt;/STRONG&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;STRONG&gt;Command:&lt;/STRONG&gt;&lt;BR /&gt;&lt;EM&gt;mgmt_cli show hosts domains-to-process "ALL_DOMAINS_ON_THIS_SERVER" filter "1.1.1.1" --format json --ignore-errors true -s id.txt&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Output:&lt;/STRONG&gt;&lt;BR /&gt;&lt;EM&gt;{&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"code" : "generic_err_invalid_parameter",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"message" : "Parameter [domains-to-process] value is not valid"&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;}&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN&gt;&lt;STRONG&gt;------------------------------------------------------------------------------------------------------------------------------------&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;To me it seems like the parameter "domains-to-process" simply is not an option&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2024 06:15:50 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-domains-to-process-Valid-values-are-CURRENT-DOMAIN-ALL/m-p/223421#M8660</guid>
      <dc:creator>abr</dc:creator>
      <dc:date>2024-08-13T06:15:50Z</dc:date>
    </item>
    <item>
      <title>Re: mgmt_cli: domains-to-process - Valid values are: CURRENT_DOMAIN, ALL_DOMAINS_ON_THIS_SERVER</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-domains-to-process-Valid-values-are-CURRENT-DOMAIN-ALL/m-p/223510#M8662</link>
      <description>&lt;P&gt;ignore-warnings and ignore-errors are actually different things.&lt;BR /&gt;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/37502"&gt;@Omer_Kleinstern&lt;/a&gt;&amp;nbsp;any other ideas?&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2024 14:27:45 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-domains-to-process-Valid-values-are-CURRENT-DOMAIN-ALL/m-p/223510#M8662</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2024-08-13T14:27:45Z</dc:date>
    </item>
    <item>
      <title>Re: mgmt_cli: domains-to-process - Valid values are: CURRENT_DOMAIN, ALL_DOMAINS_ON_THIS_SERVER</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-domains-to-process-Valid-values-are-CURRENT-DOMAIN-ALL/m-p/223515#M8664</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/52698"&gt;@abr&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Since domains-to-process is a list, it should be something like this:&lt;BR /&gt;mgmt_cli show hosts domains-to-process&lt;STRONG&gt;.1&lt;/STRONG&gt; "ALL_DOMAINS_ON_THIS_SERVER" filter "1.1.1.1" ignore-warnings true --format json -s id.txt&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2024 15:00:14 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-domains-to-process-Valid-values-are-CURRENT-DOMAIN-ALL/m-p/223515#M8664</guid>
      <dc:creator>Omer_Kleinstern</dc:creator>
      <dc:date>2024-08-13T15:00:14Z</dc:date>
    </item>
    <item>
      <title>Re: mgmt_cli: domains-to-process - Valid values are: CURRENT_DOMAIN, ALL_DOMAINS_ON_THIS_SERVER</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-domains-to-process-Valid-values-are-CURRENT-DOMAIN-ALL/m-p/223525#M8666</link>
      <description>&lt;P&gt;I can confirm this works, though in testing it I found what seems likely to be a bug in mgmt_cli's processing of session files. I'll open a ticket about that.&lt;/P&gt;
&lt;P&gt;The "ignore-warnings" key doesn't appear in any of the API documentation I've checked, though I haven't checked exhaustively.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[Expert@MyMDS:0]# mgmt_cli -f json -d "MDS" -r true login &amp;gt;session.txt

[Expert@MyMDS:0]# mgmt_cli -f json -s session.txt show hosts limit 2 domains-to-process.1 ALL_DOMAINS_ON_THIS_SERVER ignore-warnings true
{
  "objects" : [ {
    "uid" : "08f0e998-b092-49ef-83cb-f56b367e4c5c",
    "name" : "SomeHost",
    "type" : "host",
    "domain" : {
      "uid" : "f538d6a9-dd21-40cc-b400-c758b2a05882",
      "name" : "CMA_1",
      "domain-type" : "domain"
    },
    "ipv4-address" : "2.3.4.5",
    "icon" : "Objects/host",
    "color" : "black"
  }, {
    "uid" : "ccb0a948-c5ed-43e3-9e2f-f8aa331b3bcb",
    "name" : "SomeHost_2",
    "type" : "host",
    "domain" : {
      "uid" : "11415233-c3d4-4c3b-bc8b-6413ba75f64d",
      "name" : "CMA_2",
      "domain-type" : "domain"
    },
    "ipv4-address" : "3.4.5.6",
    "icon" : "Objects/host",
    "color" : "black"
  } ],
  "from" : 1,
  "to" : 2,
  "total" : 55184
}&lt;/LI-CODE&gt;
&lt;P&gt;Note that this only makes sense on an MDS, and the "System Domain" is named "MDS".&lt;/P&gt;
&lt;P&gt;It technically works on SmartCenters when you log in to the "System Data" domain, but a SmartCenter can only contain one domain, so there's no real point to doing it. You may as well log in to the functional domain directly.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2024 15:46:48 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-domains-to-process-Valid-values-are-CURRENT-DOMAIN-ALL/m-p/223525#M8666</guid>
      <dc:creator>Bob_Zimmerman</dc:creator>
      <dc:date>2024-08-13T15:46:48Z</dc:date>
    </item>
    <item>
      <title>Re: mgmt_cli: domains-to-process - Valid values are: CURRENT_DOMAIN, ALL_DOMAINS_ON_THIS_SERVER</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-domains-to-process-Valid-values-are-CURRENT-DOMAIN-ALL/m-p/223587#M8668</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/37502"&gt;@Omer_Kleinstern&lt;/a&gt;&lt;/P&gt;&lt;P&gt;Thanks for explaining this to me. Much appreciated!&lt;BR /&gt;&lt;BR /&gt;I had no idea on how to "represent" a list with "strs" in the mgmt_cli. I tried all kinds of list formats. I had never guessed that it had to be represented using "&lt;STRONG&gt;.1&lt;/STRONG&gt;"&lt;/P&gt;&lt;P&gt;I did not find any direct documentation on the "&lt;SPAN&gt;ignore-warnings true" in the documentation. It is stated to apply it to this command. Still it is not documented as an argument/option.&lt;BR /&gt;&lt;BR /&gt;I think it might be helpfull for others if documentation was updated with an examples for "List: String" and "ignore-warnings true"&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2024 08:03:09 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-domains-to-process-Valid-values-are-CURRENT-DOMAIN-ALL/m-p/223587#M8668</guid>
      <dc:creator>abr</dc:creator>
      <dc:date>2024-08-14T08:03:09Z</dc:date>
    </item>
    <item>
      <title>Re: mgmt_cli: domains-to-process - Valid values are: CURRENT_DOMAIN, ALL_DOMAINS_ON_THIS_SERVER</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-domains-to-process-Valid-values-are-CURRENT-DOMAIN-ALL/m-p/223591#M8669</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;&lt;BR /&gt;Thanks for testing command and explaining the "System Domain" for MDS environments.&lt;/P&gt;&lt;P&gt;It make sense to use this for looking up hosts across domains within a MDS environment.&lt;BR /&gt;&lt;BR /&gt;Help and input much appreciated!&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2024 07:58:52 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-domains-to-process-Valid-values-are-CURRENT-DOMAIN-ALL/m-p/223591#M8669</guid>
      <dc:creator>abr</dc:creator>
      <dc:date>2024-08-14T07:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: mgmt_cli: domains-to-process - Valid values are: CURRENT_DOMAIN, ALL_DOMAINS_ON_THIS_SERVER</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-domains-to-process-Valid-values-are-CURRENT-DOMAIN-ALL/m-p/254358#M9167</link>
      <description>&lt;P&gt;Btw when using REST domains-to-process is used like this:&lt;/P&gt;&lt;PRE&gt;POST {{server}}/show-groups
Content-Type: application/json
X-chkp-sid: {{session}}

{
  "filter" : "some-name",&lt;BR /&gt;  "ignore-warnings" : "true",
  "domains-to-process": ["ALL_DOMAINS_ON_THIS_SERVER"],
  "details-level" : "standard"
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jul 2025 18:48:26 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-domains-to-process-Valid-values-are-CURRENT-DOMAIN-ALL/m-p/254358#M9167</guid>
      <dc:creator>jo-xxx</dc:creator>
      <dc:date>2025-07-31T18:48:26Z</dc:date>
    </item>
  </channel>
</rss>

