<?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: iOS12 Siri Shortcuts and MGMT API in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/iOS12-Siri-Shortcuts-and-MGMT-API/m-p/40451#M2703</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="Image result for jurassic park didn't stop to think if you should" src="http://e.lvme.me/oozm79d.jpg" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Sep 2018 13:44:56 GMT</pubDate>
    <dc:creator>Joshua_Hatter</dc:creator>
    <dc:date>2018-09-24T13:44:56Z</dc:date>
    <item>
      <title>iOS12 Siri Shortcuts and MGMT API</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/iOS12-Siri-Shortcuts-and-MGMT-API/m-p/40448#M2700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is simply fun with technology and API. Not a supported function or anything.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In iOS12 Apple added in Siri Shortcuts and the ability to create them much like the Automator app on MacOS. Using the shortcut you can SSH into a server and execute commands. A customer of mine challenged&amp;nbsp;me to create something that would check stats on a gateway by using the "run-script" command from the management station.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created a script that would pull: Memory Usage, CPU Usage, Disk Usage, and Current/Peak Connection from the state table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;On the iPhone I can ask Siri to "Check on my firewall" (this is configurable) and the login would happen, the script would run, and Siri&amp;nbsp;would read back the results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can find the script and shortcut app on my github:&amp;nbsp;&lt;A class="link-titled" href="https://github.com/WadesWeaponShed/Siri-And-CheckPoint-API" title="https://github.com/WadesWeaponShed/Siri-And-CheckPoint-API"&gt;GitHub - WadesWeaponShed/Siri-And-CheckPoint-API: Fun Side Project using Siri Shortcuts to do Check Point API Functions&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm also updating it with a shortcut to install policy, it will read back the results column of "Fail or Success"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H2 style="color: #24292e; background-color: #ffffff; border-bottom: 1px solid #eaecef; font-weight: 600; font-size: 1.5em; margin-top: 24px; margin-bottom: 16px; padding-bottom: 0.3em;"&gt;How to Use Stats.sh&lt;/H2&gt;&lt;UL style="color: #24292e; background-color: #ffffff; margin-bottom: 16px; padding-left: 2em;"&gt;&lt;LI&gt;&lt;P style="margin-top: 16px; margin-bottom: 16px;"&gt;Requires iOS 12 and the Shortcuts app from the app store.&lt;/P&gt;&lt;/LI&gt;&lt;LI style="margin-top: 0.25em;"&gt;&lt;P style="margin-top: 16px; margin-bottom: 16px;"&gt;Install the Shortcut here to the shortcut application&lt;/P&gt;&lt;UL style="padding-left: 2em;"&gt;&lt;LI&gt;Edit the SSH settings for your managment station&lt;/LI&gt;&lt;LI style="margin-top: 0.25em;"&gt;Edit the script text to support your Gateway (You will need to edit the 127.0.0.1 after the -d if this runs on a MDS environment and also edit the name of the Gateway)&lt;UL style="padding-left: 2em;"&gt;&lt;LI&gt;mgmt_cli -r true run-script -d 127.0.0.1 script-name "Status Check" script "sh /home/admin/stats.sh" targets.1 drax --format json | jq --raw-output '.tasks[0]["task-details"][0].statusDescription'&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI style="margin-top: 0.25em;"&gt;&lt;P style="margin-top: 16px; margin-bottom: 16px;"&gt;add the stats.sh script to your gateway&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Video Demo of Stats.sh:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.checkpoint.com/videos/7911"&gt; Video Link : 7911 &lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Sep 2018 19:04:01 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/iOS12-Siri-Shortcuts-and-MGMT-API/m-p/40448#M2700</guid>
      <dc:creator>Adam_Forester</dc:creator>
      <dc:date>2018-09-21T19:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: iOS12 Siri Shortcuts and MGMT API</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/iOS12-Siri-Shortcuts-and-MGMT-API/m-p/40449#M2701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class=""&gt;&lt;IMG alt="Hello, firewall" class="image-1 jive-image j-img-original" src="https://community.checkpoint.com/legacyfs/online/checkpoint/70816_firewall.png" /&gt;&lt;/P&gt;&lt;P class=""&gt;I love this! &lt;span class="lia-unicode-emoji" title=":red_heart:"&gt;❤️&lt;/span&gt;&lt;/P&gt;&lt;P class=""&gt;Now we can finally talk to our Firewalls.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Sep 2018 13:13:38 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/iOS12-Siri-Shortcuts-and-MGMT-API/m-p/40449#M2701</guid>
      <dc:creator>Danny</dc:creator>
      <dc:date>2018-09-22T13:13:38Z</dc:date>
    </item>
    <item>
      <title>Re: iOS12 Siri Shortcuts and MGMT API</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/iOS12-Siri-Shortcuts-and-MGMT-API/m-p/40450#M2702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hahaha awesome! I’ve been working on a skill for the Echo too so I can do similar stuff with Alexa.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Sep 2018 22:06:32 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/iOS12-Siri-Shortcuts-and-MGMT-API/m-p/40450#M2702</guid>
      <dc:creator>Adam_Forester</dc:creator>
      <dc:date>2018-09-22T22:06:32Z</dc:date>
    </item>
    <item>
      <title>Re: iOS12 Siri Shortcuts and MGMT API</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/iOS12-Siri-Shortcuts-and-MGMT-API/m-p/40451#M2703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="Image result for jurassic park didn't stop to think if you should" src="http://e.lvme.me/oozm79d.jpg" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2018 13:44:56 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/iOS12-Siri-Shortcuts-and-MGMT-API/m-p/40451#M2703</guid>
      <dc:creator>Joshua_Hatter</dc:creator>
      <dc:date>2018-09-24T13:44:56Z</dc:date>
    </item>
    <item>
      <title>Re: iOS12 Siri Shortcuts and MGMT API</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/iOS12-Siri-Shortcuts-and-MGMT-API/m-p/40452#M2704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.checkpoint.com/legacyfs/online/checkpoint/70854_e8a.gif" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2018 14:31:23 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/iOS12-Siri-Shortcuts-and-MGMT-API/m-p/40452#M2704</guid>
      <dc:creator>Adam_Forester</dc:creator>
      <dc:date>2018-09-24T14:31:23Z</dc:date>
    </item>
    <item>
      <title>Re: iOS12 Siri Shortcuts and MGMT API</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/iOS12-Siri-Shortcuts-and-MGMT-API/m-p/40453#M2705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is cool! Love it! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2018 00:06:29 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/iOS12-Siri-Shortcuts-and-MGMT-API/m-p/40453#M2705</guid>
      <dc:creator>Lari_Luoma</dc:creator>
      <dc:date>2018-09-26T00:06:29Z</dc:date>
    </item>
  </channel>
</rss>

