<?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 GAIA - Easy execute CLI commands from management on gateways! in Scripts</title>
    <link>https://community.checkpoint.com/t5/Scripts/GAIA-Easy-execute-CLI-commands-from-management-on-gateways/m-p/50764#M448</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="eein.JPG" style="width: 400px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/9426iD5939E135CF6BF5C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="eein.JPG" alt="eein.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Now you can use the new command "g_bash" and "g_cli" to execute bash or clish commands on gateway from the management server. All you have to do is copy and paste the above lines to the management server. After that you have two new commands on the management server. Here you can now centrally execute simple commands on all gateways which are connected via SIC with the management.&lt;/P&gt;
&lt;P&gt;You only need to enter the IP address of the gateways and the command will be executed there.&lt;/P&gt;
&lt;P&gt;Cppy and paste this lines to the management server or download the script "new_commands.sh" and execute the script.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;echo "echo Gateways configured in policy:" &amp;gt; /usr/local/bin/g_show
echo "more $FWDIR/conf/objects.C |grep -A 20 -B 1  ':type (gateway)' | grep ipaddr | sed 's/^[ \t]*//' | sed 's/\:ipaddr (//' |sed 's/)//'" &amp;gt;&amp;gt; /usr/local/bin/g_show
chmod 777 /usr/local/bin/g_show

echo '#!/bin/bash' &amp;gt; /usr/local/bin/g_bash
echo "more $FWDIR/conf/objects.C |grep -A 20 -B 1  ':type (gateway)' | grep ipaddr | sed 's/^[ \t]*//' | sed 's/\:ipaddr (//' |sed 's/)//' &amp;gt; /var/log/g_gateway.txt" &amp;gt;&amp;gt; /usr/local/bin/g_bash
echo 'HAtest="$2 $3 $4 $5 $6 $7 $8 $9"' &amp;gt;&amp;gt; /usr/local/bin/g_bash
echo 'if grep -xq $1 /var/log/g_gateway.txt; then' &amp;gt;&amp;gt; /usr/local/bin/g_bash 
echo "echo \$HAtest &amp;gt; /var/log/g_command.txt;"  &amp;gt;&amp;gt; /usr/local/bin/g_bash
echo "\$CPDIR/bin/cprid_util -server \$1 putfile -local_file /var/log/g_command.txt -remote_file /var/log/g_command.txt;" &amp;gt;&amp;gt; /usr/local/bin/g_bash
echo "\$CPDIR/bin/cprid_util -server \$1 -verbose rexec -rcmd /bin/bash -f /var/log/g_command.txt;" &amp;gt;&amp;gt; /usr/local/bin/g_bash
echo "else" &amp;gt;&amp;gt; /usr/local/bin/g_bash
echo "echo This is not a gateway IP. Use an IP of following list:;" &amp;gt;&amp;gt; /usr/local/bin/g_bash
echo "more /var/log/g_gateway.txt" &amp;gt;&amp;gt; /usr/local/bin/g_bash
echo "fi" &amp;gt;&amp;gt; /usr/local/bin/g_bash
chmod 777 /usr/local/bin/g_bash

echo '#!/bin/bash' &amp;gt; /usr/local/bin/g_cli
echo "more $FWDIR/conf/objects.C |grep -A 20 -B 1  ':type (gateway)' | grep ipaddr | sed 's/^[ \t]*//' | sed 's/\:ipaddr (//' |sed 's/)//' &amp;gt; /var/log/g_gateway.txt" &amp;gt;&amp;gt; /usr/local/bin/g_cli
echo 'HAtest="$2 $3 $4 $5 $6 $7 $8 $9"' &amp;gt;&amp;gt; /usr/local/bin/g_cli
echo 'if grep -xq $1 /var/log/g_gateway.txt; then' &amp;gt;&amp;gt; /usr/local/bin/g_cli 
echo "echo \$HAtest &amp;gt; /var/log/g_command.txt;"  &amp;gt;&amp;gt; /usr/local/bin/g_cli
echo "\$CPDIR/bin/cprid_util -server \$1 putfile -local_file /var/log/g_command.txt -remote_file /var/log/g_command.txt;" &amp;gt;&amp;gt; /usr/local/bin/g_cli
echo "\$CPDIR/bin/cprid_util -server \$1 -verbose rexec -rcmd /bin/clish -f /var/log/g_command.txt;" &amp;gt;&amp;gt; /usr/local/bin/g_cli
echo "else" &amp;gt;&amp;gt; /usr/local/bin/g_cli
echo "echo This is not a gateway IP. Use an IP of following list:;" &amp;gt;&amp;gt; /usr/local/bin/g_cli
echo "more /var/log/g_gateway.txt" &amp;gt;&amp;gt; /usr/local/bin/g_cli
echo "fi" &amp;gt;&amp;gt; /usr/local/bin/g_cli
chmod 777 /usr/local/bin/g_cli
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Command syntax:&lt;/P&gt;
&lt;TABLE style="border-collapse: collapse; width: 100%;" border="1"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD style="width: 50%; background-color: #444444;"&gt;&lt;FONT color="#FFFFFF"&gt;Command&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD style="width: 50%; background-color: #444444;"&gt;&lt;FONT color="#FFFFFF"&gt;Description&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD style="width: 50%;"&gt;# &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;g_show&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD style="width: 50%;"&gt;show all gateway IP addresses&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD style="width: 50%;"&gt;# &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;g_bash&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#339966"&gt;&amp;lt;gateway IP&amp;gt;&lt;/FONT&gt; &lt;FONT color="#339966"&gt;&amp;lt;command&amp;gt;&lt;/FONT&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD style="width: 50%;"&gt;execute expert mode command on gateway&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD style="width: 50%;"&gt;# &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;g_cli&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#339966"&gt;&amp;lt;gateway IP&amp;gt; &amp;lt;command&amp;gt;&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD style="width: 50%;"&gt;execute clish command on gateway&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&lt;BR /&gt;An example!&lt;/P&gt;
&lt;P&gt;You want to see the configuration of the gateway with IP 1.2.3.4 from the management. &lt;BR /&gt;So you only have to enter the following command:&lt;/P&gt;
&lt;TABLE style="border-collapse: collapse; width: 100%;" border="1"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD style="width: 100%;"&gt;Management# &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;g_cli&lt;/STRONG&gt; &lt;FONT color="#339966"&gt;1.2.3.4 show configuration&lt;/FONT&gt;&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&lt;BR /&gt;Now the command "show configuration" is executed on the gateway and the output is displayed on the management server.&lt;/P&gt;
&lt;P&gt;The same also works for the expert mode. For example:&lt;/P&gt;
&lt;TABLE style="border-collapse: collapse; width: 100%;" border="1"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD style="width: 100%;"&gt;Management# &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;g_bash&lt;/STRONG&gt; &lt;FONT color="#339966"&gt;1.2.3.4 cphaprob stat&lt;/FONT&gt;&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&lt;BR /&gt;Show all gateway IP addresses. For example:&lt;/P&gt;
&lt;TABLE style="border-collapse: collapse; width: 100%;" border="1"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD style="width: 100%;"&gt;
&lt;P&gt;Management# &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;g_show&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Show all gateways configured in policy:&lt;/P&gt;
&lt;P&gt;1.2.3.4&lt;BR /&gt;1.2.3.5&lt;BR /&gt;1.1.1.1&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&lt;BR /&gt;More "Easy Tools":&lt;/P&gt;
&lt;P&gt;- &lt;SPAN class="lia-message-read"&gt;&lt;A class="page-link lia-link-navigation lia-custom-event" href="https://community.checkpoint.com/t5/General-Topics/Easy-Backup-Tool-migrate-export-all-GAIA-configs/td-p/79632/jump-to/first-unread-message" target="_blank" rel="noopener"&gt;Easy Backup Tool - (migrate export + all GAIA configs)&lt;/A&gt;&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;gt; Easy backup of all gateway GAIA configs + migrate export with one CLI command.&lt;BR /&gt;- &lt;A href="https://community.checkpoint.com/t5/Enterprise-Appliances-and-Gaia/GAIA-Easy-execute-CLI-commands-on-all-gateways-simultaneously/m-p/50883/highlight/true#M3783" target="_self"&gt;Easy execute CLI commands on all gateways simultaneously&lt;/A&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;gt;&amp;nbsp; Now you can use the new command to execute bash or clish commands on all gateway simultaneously.&lt;BR /&gt;- &lt;A href="https://community.checkpoint.com/t5/Enterprise-Appliances-and-Gaia/GAIA-Easy-execute-CLI-commands-from-management-on-gateways/m-p/50764/highlight/true#M3759" target="_self"&gt;Easy execute CLI commands from management on gateways&lt;/A&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;gt; &lt;SPAN class="lia-message-read"&gt;Easy execute CLI commands from management on gateways&lt;BR /&gt;&lt;/SPAN&gt;- &lt;A class="page-link lia-link-navigation lia-custom-event" href="https://community.checkpoint.com/t5/General-Topics/R80-x-Mobile-User-License-Tool-replaced-quot-dtps-lic-quot/td-p/78848/jump-to/first-unread-message" target="_blank" rel="noopener"&gt;Mobile User License Tool - replaced "dtps lic"&lt;/A&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;gt; &lt;FONT style="background-color: #f8f8fa;"&gt;&lt;SPAN style="font-family: inherit;"&gt;It displays all Secure Client, SSL VPN and Mobile Access Portal licenses in total (sum) on the SMS.&lt;BR /&gt;- &lt;A href="https://community.checkpoint.com/t5/General-Topics/Easy-View-Tool-system-infos-from-all-gateways-simultaneously/td-p/81438" target="_self"&gt;Easy View Tool - (system infos from all gateways simultaneously)&lt;/A&gt; -&amp;gt; This toll shows you quickly an overview of status information of all your gateways with only one CLI command.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/FONT&gt;Video tutorial:&lt;/P&gt;
&lt;TABLE style="border-collapse: collapse; width: 100%;" border="1"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD style="width: 50%; border-style: hidden;"&gt;&lt;div class="lia-vid-container video-embed-center"&gt;&lt;div id="lia-vid-Y5eThtaDE6BbaeJH9K00NoSZ8UEGog9kw708h418r43" class="lia-video-brightcove-player-container"&gt;&lt;video-js data-video-id="6065295765001" data-account="6058022097001" data-player="default" data-embed="default" class="vjs-fluid" controls="" data-application-id="" style="width: 100%; height: 100%;"&gt;&lt;/video-js&gt;&lt;/div&gt;&lt;script src="https://players.brightcove.net/6058022097001/default_default/index.min.js"&gt;&lt;/script&gt;&lt;script&gt;(function() {  var wrapper = document.getElementById('lia-vid-Y5eThtaDE6BbaeJH9K00NoSZ8UEGog9kw708h418r43');  var videoEl = wrapper ? wrapper.querySelector('video-js') : null;  if (videoEl) {     if (window.videojs) {       window.videojs(videoEl).ready(function() {         this.on('loadedmetadata', function() {           this.el().querySelectorAll('.vjs-load-progress div[data-start]').forEach(function(bar) {             bar.setAttribute('role', 'presentation');             bar.setAttribute('aria-hidden', 'true');           });         });       });     }  }})();&lt;/script&gt;&lt;a class="video-embed-link" href="https://community.checkpoint.com/t5/video/gallerypage/video-id/Y5eThtaDE6BbaeJH9K00NoSZ8UEGog9k"&gt;(view in My Videos)&lt;/a&gt;&lt;/div&gt;&lt;/TD&gt;
&lt;TD style="width: 50%; border-style: hidden;"&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Copyright by Heiko Ankenbrand 1996-2019&lt;/P&gt;</description>
    <pubDate>Tue, 27 Jan 2026 23:06:39 GMT</pubDate>
    <dc:creator>HeikoAnkenbrand</dc:creator>
    <dc:date>2026-01-27T23:06:39Z</dc:date>
    <item>
      <title>GAIA - Easy execute CLI commands from management on gateways!</title>
      <link>https://community.checkpoint.com/t5/Scripts/GAIA-Easy-execute-CLI-commands-from-management-on-gateways/m-p/50764#M448</link>
      <description>169</description>
      <pubDate>Tue, 27 Jan 2026 23:06:39 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/GAIA-Easy-execute-CLI-commands-from-management-on-gateways/m-p/50764#M448</guid>
      <dc:creator>HeikoAnkenbrand</dc:creator>
      <dc:date>2026-01-27T23:06:39Z</dc:date>
    </item>
    <item>
      <title>Re: NEW - Easy execute commands from management on gateways!</title>
      <link>https://community.checkpoint.com/t5/Scripts/GAIA-Easy-execute-CLI-commands-from-management-on-gateways/m-p/50770#M449</link>
      <description>&lt;P&gt;So it‘s basically just a wrapper for cprid_util?&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2019 17:45:45 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/GAIA-Easy-execute-CLI-commands-from-management-on-gateways/m-p/50770#M449</guid>
      <dc:creator>Danny</dc:creator>
      <dc:date>2019-04-12T17:45:45Z</dc:date>
    </item>
    <item>
      <title>Re: NEW - Easy execute commands from management on gateways!</title>
      <link>https://community.checkpoint.com/t5/Scripts/GAIA-Easy-execute-CLI-commands-from-management-on-gateways/m-p/50771#M450</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/687"&gt;@Danny&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes!&lt;/P&gt;
&lt;P&gt;It has always bothered me that I have to jump between the systems via ssh when I debugging. So I built this little script on the basis of cprid_util.&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Heiko&lt;/P&gt;
&lt;DIV style="display: inline-block; width: 25px; height: 10px;"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Fri, 12 Apr 2019 17:54:23 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/GAIA-Easy-execute-CLI-commands-from-management-on-gateways/m-p/50771#M450</guid>
      <dc:creator>HeikoAnkenbrand</dc:creator>
      <dc:date>2019-04-12T17:54:23Z</dc:date>
    </item>
    <item>
      <title>Re: NEW - Easy execute commands from management on gateways!</title>
      <link>https://community.checkpoint.com/t5/Scripts/GAIA-Easy-execute-CLI-commands-from-management-on-gateways/m-p/50773#M451</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/21670"&gt;@HeikoAnkenbrand&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That's a good idea!&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2019 18:11:12 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/GAIA-Easy-execute-CLI-commands-from-management-on-gateways/m-p/50773#M451</guid>
      <dc:creator>Jul_Kapendale</dc:creator>
      <dc:date>2019-04-12T18:11:12Z</dc:date>
    </item>
    <item>
      <title>Re: NEW - Easy execute commands from management on gateways!</title>
      <link>https://community.checkpoint.com/t5/Scripts/GAIA-Easy-execute-CLI-commands-from-management-on-gateways/m-p/50775#M452</link>
      <description>&lt;P&gt;I gave this a try.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Created the scripts as defined.&amp;nbsp; When I attempt to run a command I either get a prompt or I get a [NULL] returned.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you have to set your MDS environment to the CMA that has the SIC with the target firewall?&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2019 19:54:17 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/GAIA-Easy-execute-CLI-commands-from-management-on-gateways/m-p/50775#M452</guid>
      <dc:creator>Tommy_Forrest</dc:creator>
      <dc:date>2019-04-12T19:54:17Z</dc:date>
    </item>
    <item>
      <title>Re: NEW - Easy execute commands from management on gateways!</title>
      <link>https://community.checkpoint.com/t5/Scripts/GAIA-Easy-execute-CLI-commands-from-management-on-gateways/m-p/50788#M453</link>
      <description>Interesting.&lt;BR /&gt;I moved this into the Gaia space, though, as it seems more appropriate there.</description>
      <pubDate>Fri, 12 Apr 2019 22:50:26 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/GAIA-Easy-execute-CLI-commands-from-management-on-gateways/m-p/50788#M453</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2019-04-12T22:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: NEW - Easy execute commands from management on gateways!</title>
      <link>https://community.checkpoint.com/t5/Scripts/GAIA-Easy-execute-CLI-commands-from-management-on-gateways/m-p/50809#M454</link>
      <description>&lt;P&gt;Hi&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/10886"&gt;@Tommy_Forrest&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have added the two new commands as installation script.&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Heiko&lt;/P&gt;</description>
      <pubDate>Sat, 13 Apr 2019 08:02:07 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/GAIA-Easy-execute-CLI-commands-from-management-on-gateways/m-p/50809#M454</guid>
      <dc:creator>HeikoAnkenbrand</dc:creator>
      <dc:date>2019-04-13T08:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: NEW - Easy execute commands from management on gateways!</title>
      <link>https://community.checkpoint.com/t5/Scripts/GAIA-Easy-execute-CLI-commands-from-management-on-gateways/m-p/50810#M455</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/10886"&gt;@Tommy_Forrest&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You would have to insert the CMA for the MDS environment. Here the script still a little bit adapt:-)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 13 Apr 2019 08:02:58 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/GAIA-Easy-execute-CLI-commands-from-management-on-gateways/m-p/50810#M455</guid>
      <dc:creator>HeikoAnkenbrand</dc:creator>
      <dc:date>2019-04-13T08:02:58Z</dc:date>
    </item>
    <item>
      <title>Re: NEW - Easy execute commands from management on gateways!</title>
      <link>https://community.checkpoint.com/t5/Scripts/GAIA-Easy-execute-CLI-commands-from-management-on-gateways/m-p/50811#M456</link>
      <description>&lt;P&gt;Here a small tutorial video:&lt;/P&gt;
&lt;TABLE style="border-collapse: collapse; width: 100%;" border="1"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD style="width: 50%; border-style: hidden;"&gt;&lt;div class="lia-vid-container video-embed-center"&gt;&lt;div id="lia-vid-15MjltaDE6zzYgVQTot8m7LdYVhL_Ipsw708h418r438" class="lia-video-brightcove-player-container"&gt;&lt;video-js data-video-id="6065296463001" data-account="6058022097001" data-player="default" data-embed="default" class="vjs-fluid" controls="" data-application-id="" style="width: 100%; height: 100%;"&gt;&lt;/video-js&gt;&lt;/div&gt;&lt;script src="https://players.brightcove.net/6058022097001/default_default/index.min.js"&gt;&lt;/script&gt;&lt;script&gt;(function() {  var wrapper = document.getElementById('lia-vid-15MjltaDE6zzYgVQTot8m7LdYVhL_Ipsw708h418r438');  var videoEl = wrapper ? wrapper.querySelector('video-js') : null;  if (videoEl) {     if (window.videojs) {       window.videojs(videoEl).ready(function() {         this.on('loadedmetadata', function() {           this.el().querySelectorAll('.vjs-load-progress div[data-start]').forEach(function(bar) {             bar.setAttribute('role', 'presentation');             bar.setAttribute('aria-hidden', 'true');           });         });       });     }  }})();&lt;/script&gt;&lt;a class="video-embed-link" href="https://community.checkpoint.com/t5/video/gallerypage/video-id/15MjltaDE6zzYgVQTot8m7LdYVhL_Ips"&gt;(view in My Videos)&lt;/a&gt;&lt;/div&gt;&lt;/TD&gt;
&lt;TD style="width: 50%; border-style: hidden;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
      <pubDate>Sat, 13 Apr 2019 07:54:26 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/GAIA-Easy-execute-CLI-commands-from-management-on-gateways/m-p/50811#M456</guid>
      <dc:creator>HeikoAnkenbrand</dc:creator>
      <dc:date>2019-04-13T07:54:26Z</dc:date>
    </item>
    <item>
      <title>Re: NEW - Easy execute CLI commands from management on gateways!</title>
      <link>https://community.checkpoint.com/t5/Scripts/GAIA-Easy-execute-CLI-commands-from-management-on-gateways/m-p/50812#M457</link>
      <description>&lt;P&gt;&lt;U&gt;Hello&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/21670"&gt;@HeikoAnkenbrand&amp;nbsp;&lt;/a&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;there is a typo in your command:&lt;/P&gt;&lt;P&gt;CUT&amp;gt;&amp;gt;&amp;gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;# g_clish &amp;lt;gateway IP&amp;gt; &amp;lt;command&amp;gt;      --&amp;gt; for clish commands&lt;/LI-CODE&gt;&lt;P&gt;&amp;lt;&amp;lt;CUT&amp;nbsp;&lt;/P&gt;&lt;P&gt;That's how it should be:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;# g_cli &amp;lt;gateway IP&amp;gt; &amp;lt;command&amp;gt;      --&amp;gt; for clish commands&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Works perfectly for me.&lt;BR /&gt;And thank you very much!&lt;/P&gt;</description>
      <pubDate>Sat, 13 Apr 2019 08:41:15 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/GAIA-Easy-execute-CLI-commands-from-management-on-gateways/m-p/50812#M457</guid>
      <dc:creator>Malte_Wienberg</dc:creator>
      <dc:date>2019-04-13T08:41:15Z</dc:date>
    </item>
    <item>
      <title>Re: NEW - Easy execute commands from management on gateways!</title>
      <link>https://community.checkpoint.com/t5/Scripts/GAIA-Easy-execute-CLI-commands-from-management-on-gateways/m-p/50820#M458</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is port tcp_18208 enabled by default via Implied Rules?&amp;nbsp;In case of no, there is a need to have this port enabled at first:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/811iAF5E762C59EABE14/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;In case you are using MDS, you need to be inside CMA where the gateway is managed from.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.checkpoint.com/t5/Developers-API-CLI/cprid-util-for-vsx/td-p/10319" target="_blank" rel="noopener"&gt;Support for VSX would be really great &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;There is a very similar script already mentioned:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&amp;amp;solutionid=sk101047" target="_blank" rel="noopener"&gt;How to manage Security Gateway using the "cprid_util" tool&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 13 Apr 2019 13:04:33 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/GAIA-Easy-execute-CLI-commands-from-management-on-gateways/m-p/50820#M458</guid>
      <dc:creator>JozkoMrkvicka</dc:creator>
      <dc:date>2019-04-13T13:04:33Z</dc:date>
    </item>
    <item>
      <title>Re: NEW - Easy execute commands from management on gateways!</title>
      <link>https://community.checkpoint.com/t5/Scripts/GAIA-Easy-execute-CLI-commands-from-management-on-gateways/m-p/50826#M459</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/1702"&gt;@JozkoMrkvicka&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;TCP 18208 (FW1_CPRID) is always included in inplied rules between management and gateway&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Heiko&lt;/P&gt;</description>
      <pubDate>Sat, 13 Apr 2019 13:44:03 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/GAIA-Easy-execute-CLI-commands-from-management-on-gateways/m-p/50826#M459</guid>
      <dc:creator>HeikoAnkenbrand</dc:creator>
      <dc:date>2019-04-13T13:44:03Z</dc:date>
    </item>
    <item>
      <title>Re: NEW - Easy execute commands from management on gateways!</title>
      <link>https://community.checkpoint.com/t5/Scripts/GAIA-Easy-execute-CLI-commands-from-management-on-gateways/m-p/50827#M460</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/1702"&gt;@JozkoMrkvicka&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;More infos to implied rules can you found here in a other article from me:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.checkpoint.com/t5/Enterprise-Appliances-and-Gaia/R80-x-Ports-Used-for-Communication-by-Various-Check-Point/td-p/38153" target="_self"&gt;R80.x Ports Used for Communication by Various Check Point Modules&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Heiko&lt;/P&gt;</description>
      <pubDate>Sat, 13 Apr 2019 13:49:00 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/GAIA-Easy-execute-CLI-commands-from-management-on-gateways/m-p/50827#M460</guid>
      <dc:creator>HeikoAnkenbrand</dc:creator>
      <dc:date>2019-04-13T13:49:00Z</dc:date>
    </item>
    <item>
      <title>Re: NEW - Easy execute commands from management on gateways!</title>
      <link>https://community.checkpoint.com/t5/Scripts/GAIA-Easy-execute-CLI-commands-from-management-on-gateways/m-p/50828#M461</link>
      <description>&lt;P&gt;I just tested it in a vsx environment. Works also&lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;!&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;# g_bash 1.1.1.1 vsenv3; cphaprob stat&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 13 Apr 2019 13:56:20 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/GAIA-Easy-execute-CLI-commands-from-management-on-gateways/m-p/50828#M461</guid>
      <dc:creator>HeikoAnkenbrand</dc:creator>
      <dc:date>2019-04-13T13:56:20Z</dc:date>
    </item>
    <item>
      <title>Re: NEW - Easy execute CLI commands from management on gateways!</title>
      <link>https://community.checkpoint.com/t5/Scripts/GAIA-Easy-execute-CLI-commands-from-management-on-gateways/m-p/50833#M462</link>
      <description>&lt;P&gt;I changed it.&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Heiko&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 13 Apr 2019 16:44:56 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/GAIA-Easy-execute-CLI-commands-from-management-on-gateways/m-p/50833#M462</guid>
      <dc:creator>HeikoAnkenbrand</dc:creator>
      <dc:date>2019-04-13T16:44:56Z</dc:date>
    </item>
    <item>
      <title>Re: NEW - Easy execute CLI commands from management on gateways!</title>
      <link>https://community.checkpoint.com/t5/Scripts/GAIA-Easy-execute-CLI-commands-from-management-on-gateways/m-p/50844#M463</link>
      <description>&lt;P&gt;If I execute this command I become a NULL.&lt;/P&gt;</description>
      <pubDate>Sun, 14 Apr 2019 06:45:47 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/GAIA-Easy-execute-CLI-commands-from-management-on-gateways/m-p/50844#M463</guid>
      <dc:creator>Werner_Oberbaue</dc:creator>
      <dc:date>2019-04-14T06:45:47Z</dc:date>
    </item>
    <item>
      <title>Re: NEW - Easy execute CLI commands from management on gateways!</title>
      <link>https://community.checkpoint.com/t5/Scripts/GAIA-Easy-execute-CLI-commands-from-management-on-gateways/m-p/50849#M464</link>
      <description>&lt;P&gt;If you become a NULL it is not a valid gateway IP address.&lt;/P&gt;</description>
      <pubDate>Sun, 14 Apr 2019 10:40:31 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/GAIA-Easy-execute-CLI-commands-from-management-on-gateways/m-p/50849#M464</guid>
      <dc:creator>HeikoAnkenbrand</dc:creator>
      <dc:date>2019-04-14T10:40:31Z</dc:date>
    </item>
    <item>
      <title>Re: NEW - Easy execute CLI commands from management on gateways!</title>
      <link>https://community.checkpoint.com/t5/Scripts/GAIA-Easy-execute-CLI-commands-from-management-on-gateways/m-p/50859#M465</link>
      <description>&lt;P&gt;Maybe in future updates, you can include checks if provided IP is valid IP of any of managed gateways ?&lt;/P&gt;
&lt;P&gt;The original script can be slightly modified, but the core logic can be found:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://supportcenter.checkpoint.com/supportcenter/portal?action=portlets.SearchResultMainAction&amp;amp;eventSubmit_doGoviewsolutiondetails=&amp;amp;solutionid=sk85621" target="_blank" rel="noopener"&gt;How to get a list of all managed Security Gateways from Multi-Domain Management Server&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;For SMS, it can be a little bit tricky, as there is only a tool "query" with no option to print the needed parameters (like IP).&lt;/P&gt;</description>
      <pubDate>Sun, 14 Apr 2019 11:00:16 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/GAIA-Easy-execute-CLI-commands-from-management-on-gateways/m-p/50859#M465</guid>
      <dc:creator>JozkoMrkvicka</dc:creator>
      <dc:date>2019-04-14T11:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: NEW - Easy execute CLI commands from management on gateways!</title>
      <link>https://community.checkpoint.com/t5/Scripts/GAIA-Easy-execute-CLI-commands-from-management-on-gateways/m-p/50869#M466</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/1702"&gt;@JozkoMrkvicka&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Yes,&amp;nbsp;I still have some ideas what you can change in this script.&lt;/P&gt;
&lt;P&gt;- Check gateway IP's&lt;/P&gt;
&lt;P&gt;- Copy files to and from all gateways. For example copy all "/var/log/messages" to the management server.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;I still have some crazy ideas. They will follow in the next days.&lt;/P&gt;</description>
      <pubDate>Sun, 14 Apr 2019 11:57:46 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/GAIA-Easy-execute-CLI-commands-from-management-on-gateways/m-p/50869#M466</guid>
      <dc:creator>HeikoAnkenbrand</dc:creator>
      <dc:date>2019-04-14T11:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: NEW - Easy execute CLI commands from management on gateways!</title>
      <link>https://community.checkpoint.com/t5/Scripts/GAIA-Easy-execute-CLI-commands-from-management-on-gateways/m-p/50870#M467</link>
      <description>&lt;P&gt;I also used $FWDIR here so it would work under all versions.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;echo "more $FWDIR/conf/objects.C |grep -B 30  "sic_name" |grep ipaddr |sed 's/^ \t//' |sed s/:ipaddr/'Gateway IP: '/ | sed s/\(// | sed s/\)//" &amp;gt; /usr/local/bin/g_show
chmod 777 /usr/local/bin/g_show&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 14 Apr 2019 12:01:36 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/GAIA-Easy-execute-CLI-commands-from-management-on-gateways/m-p/50870#M467</guid>
      <dc:creator>HeikoAnkenbrand</dc:creator>
      <dc:date>2019-04-14T12:01:36Z</dc:date>
    </item>
  </channel>
</rss>

