<?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 Running API commands on mds level in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Running-API-commands-on-mds-level/m-p/200887#M8239</link>
    <description>&lt;P&gt;I'm wondering if it is possible to run API commands on mds level.&lt;/P&gt;&lt;P&gt;One of the arguments of mgmt_cli command is targets.&lt;/P&gt;&lt;P&gt;Specifying the MDS name as a target returns "Object not found".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My use-case: I am trying to upload a SNORT file using "put-file" command to the MDS to enforce it in the global domain.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
    <pubDate>Mon, 18 Dec 2023 13:28:00 GMT</pubDate>
    <dc:creator>Shay_V</dc:creator>
    <dc:date>2023-12-18T13:28:00Z</dc:date>
    <item>
      <title>Running API commands on mds level</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Running-API-commands-on-mds-level/m-p/200887#M8239</link>
      <description>&lt;P&gt;I'm wondering if it is possible to run API commands on mds level.&lt;/P&gt;&lt;P&gt;One of the arguments of mgmt_cli command is targets.&lt;/P&gt;&lt;P&gt;Specifying the MDS name as a target returns "Object not found".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My use-case: I am trying to upload a SNORT file using "put-file" command to the MDS to enforce it in the global domain.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Dec 2023 13:28:00 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Running-API-commands-on-mds-level/m-p/200887#M8239</guid>
      <dc:creator>Shay_V</dc:creator>
      <dc:date>2023-12-18T13:28:00Z</dc:date>
    </item>
    <item>
      <title>Re: Running API commands on mds level</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Running-API-commands-on-mds-level/m-p/200911#M8240</link>
      <description>&lt;P&gt;What does your login API call look like?&lt;BR /&gt;Pretty sure you need to log into the "System Data" domain to make changes at the MDS level.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Dec 2023 14:13:51 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Running-API-commands-on-mds-level/m-p/200911#M8240</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2023-12-18T14:13:51Z</dc:date>
    </item>
    <item>
      <title>Re: Running API commands on mds level</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Running-API-commands-on-mds-level/m-p/200913#M8241</link>
      <description>&lt;P&gt;When logged in into MDS, The command used is:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;mgmt_cli -r true put-file file-name "my_snorts.rules" file-path "/home/admin" file-content "&amp;lt;one_snort_rule&amp;gt;"  targets cp-r81-mds&lt;/LI-CODE&gt;&lt;P&gt;Then I get:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;code: "generic_err_object_not_found"
message: "Requested object [cp-r81-mds] not found""&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;My goal is to create a snort file which will be uploaded to the global domain so I will assign it to all domain.&lt;/P&gt;&lt;P&gt;When I tried to add -d "MDS" to the command, it did not work as well.&lt;/P&gt;&lt;P&gt;I am not sure if running API commands on MDS level where the MDS itself is a target is supported or not, hope to get an answer here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Dec 2023 14:23:22 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Running-API-commands-on-mds-level/m-p/200913#M8241</guid>
      <dc:creator>Shay_V</dc:creator>
      <dc:date>2023-12-18T14:23:22Z</dc:date>
    </item>
    <item>
      <title>Re: Running API commands on mds level</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Running-API-commands-on-mds-level/m-p/200921#M8242</link>
      <description>&lt;P&gt;For MDS domain you don't need a domain flag at all or used&amp;nbsp;&lt;STRONG&gt;-d "System Data"&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;For global domain you can use &lt;STRONG&gt;-d "Global"&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;For other domains use domain name.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not all the operations are available on MDS level though.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Dec 2023 16:12:15 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Running-API-commands-on-mds-level/m-p/200921#M8242</guid>
      <dc:creator>Amir_Senn</dc:creator>
      <dc:date>2023-12-18T16:12:15Z</dc:date>
    </item>
    <item>
      <title>Re: Running API commands on mds level</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Running-API-commands-on-mds-level/m-p/201018#M8246</link>
      <description>&lt;P&gt;Hi Shay, try to run the API call to a domain on the specific MDS you want to create the file and set your target to be the domain management server (DMS) running on the MDS for that domain, this should create the file on the MDS in /home/var directory.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, in my MDS (MDS1) I have a domain called Stockholm in that domain there is a Domain Management server called Stockholm-dms running in the Stockholm domain on MDS1. By executing the following API call:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;mgmt_cli -r true -f json -d Stockholm put-file file-name "my_snorts.rules" file-path "/home/admin" file-content "&amp;lt;one_snort_rule&amp;gt;"  targets Stockholm-dms&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would expect this to create the file&amp;nbsp;my_snorts.rules under /home/admin in MDS1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Dec 2023 08:51:30 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Running-API-commands-on-mds-level/m-p/201018#M8246</guid>
      <dc:creator>Jim_Oqvist</dc:creator>
      <dc:date>2023-12-19T08:51:30Z</dc:date>
    </item>
    <item>
      <title>Re: Running API commands on mds level</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Running-API-commands-on-mds-level/m-p/201093#M8249</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/31"&gt;@Jim_Oqvist&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Thank you very much for your reply.&lt;BR /&gt;&lt;BR /&gt;Your explanation is great when you want to put the file on every domain separately.&lt;BR /&gt;In my case, I have 13 different domains that are managed globally.&lt;BR /&gt;Therefore, I was looking for a way to put the file on the MDS level and then I will be able to assign it to all domains at once.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Dec 2023 16:01:41 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Running-API-commands-on-mds-level/m-p/201093#M8249</guid>
      <dc:creator>Shay_V</dc:creator>
      <dc:date>2023-12-19T16:01:41Z</dc:date>
    </item>
    <item>
      <title>Re: Running API commands on mds level</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Running-API-commands-on-mds-level/m-p/201121#M8250</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;The "file-content" API is just a way to put the file on the server or gateway, for this you need a target object in the API call to in this case reach the MDS server. once the file is there you can call it with another API call from any domain as well as the global domain to load the snort rules.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Dec 2023 17:57:43 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Running-API-commands-on-mds-level/m-p/201121#M8250</guid>
      <dc:creator>Jim_Oqvist</dc:creator>
      <dc:date>2023-12-19T17:57:43Z</dc:date>
    </item>
  </channel>
</rss>

