<?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: R80 MDS IPS updates via API in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/R80-MDS-IPS-updates-via-API/m-p/2805#M199</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this what you're looking for ?&lt;/P&gt;&lt;P&gt;&lt;A href="https://sc1.checkpoint.com/documents/R80/APIs/index.html#gui-cli/assign-global-assignment" title="https://sc1.checkpoint.com/documents/R80/APIs/index.html#gui-cli/assign-global-assignment"&gt;https://sc1.checkpoint.com/documents/R80/APIs/index.html#gui-cli/assign-global-assignment&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 30 Oct 2016 09:26:33 GMT</pubDate>
    <dc:creator>Uri_Bialik</dc:creator>
    <dc:date>2016-10-30T09:26:33Z</dc:date>
    <item>
      <title>R80 MDS IPS updates via API</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/R80-MDS-IPS-updates-via-API/m-p/2804#M198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Current environment:&amp;nbsp; R80 MDS with 4 CMAs.&amp;nbsp; IPS is managed globally for all 4 CMAs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have all the pieces for updating IPS in the global context, and installing policy for each of the CMAs, but I'm missing the piece for reassigning the global policy to each of the CMAs.&amp;nbsp; I can't find any of the API calls that would provide that function.&amp;nbsp; Does anyone have an idea on how to accomplish that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2016 18:29:04 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/R80-MDS-IPS-updates-via-API/m-p/2804#M198</guid>
      <dc:creator>Keith_Lewis</dc:creator>
      <dc:date>2016-10-28T18:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: R80 MDS IPS updates via API</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/R80-MDS-IPS-updates-via-API/m-p/2805#M199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this what you're looking for ?&lt;/P&gt;&lt;P&gt;&lt;A href="https://sc1.checkpoint.com/documents/R80/APIs/index.html#gui-cli/assign-global-assignment" title="https://sc1.checkpoint.com/documents/R80/APIs/index.html#gui-cli/assign-global-assignment"&gt;https://sc1.checkpoint.com/documents/R80/APIs/index.html#gui-cli/assign-global-assignment&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Oct 2016 09:26:33 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/R80-MDS-IPS-updates-via-API/m-p/2805#M199</guid>
      <dc:creator>Uri_Bialik</dc:creator>
      <dc:date>2016-10-30T09:26:33Z</dc:date>
    </item>
    <item>
      <title>Re: R80 MDS IPS updates via API</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/R80-MDS-IPS-updates-via-API/m-p/2806#M200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We had the same quest of automating IPS updates with R80.10.&lt;/P&gt;&lt;P&gt;So i wrote a small script to do the reassignment of the Global Domain to all Domains which can be run every night by cron. As a drawback the name of the Global Domain is hard coded in the script, which is fine for us.&lt;/P&gt;&lt;P&gt;Maybe you will find it useful:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;#!/bin/sh&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;#######################################################################################&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;#&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;# Reassign the Global Domain to all Domains&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;#&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;#######################################################################################&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;# Name of the Global Domain&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;GPOL_NAME="Global"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;# Temp file for the session-id&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;ID="/tmp/id-$$.txt"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;#######################################################################################&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;# Login&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;mgmt_cli login -r true &amp;gt; ${ID}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;# Get a list of all Domains&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;DOMAINS=`mgmt_cli show domains -s ${ID} --format json | jq -r '.objects[].name'`&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;# Iterate over all Domains&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;for DOM in ${DOMAINS}; do&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if [ -z "`mgmt_cli show domain name ${DOM} --format json -s ${ID} | jq -r '."global-domain-assignments"[]'`" ]; then&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo "Domain \"${DOM}\" has no Global Domain assigned, skipping it."&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Reassign&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo "Reassigning Global Domain \"${GPOL_NAME}\" to Domain \"${DOM}\"..."&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mgmt_cli assign-global-assignment global-domains ${GPOL_NAME} dependent-domains ${DOM} -s ${ID} --format json 2&amp;gt;/dev/null | jq -r '.tasks[].status'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; fi&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;done&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;# Logout and delete the session-id&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;mgmt_cli logout -s ${ID} &amp;gt;/dev/null&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;rm -f ${ID}&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Dec 2017 09:33:18 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/R80-MDS-IPS-updates-via-API/m-p/2806#M200</guid>
      <dc:creator>Marc_Suelzle</dc:creator>
      <dc:date>2017-12-06T09:33:18Z</dc:date>
    </item>
  </channel>
</rss>

