<?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 Central Script to Perform gateway changes in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Central-Script-to-Perform-gateway-changes/m-p/38655#M2298</link>
    <description>&lt;P&gt;Hi Everyone ,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This could be very useful script for enterprise customer where check point gateways are being managed by MDS or Management server . There are many common changes that needs to be done on individual &amp;nbsp;gateway , For example configuring syslog ,NTP , SNMP . In many of the cases customer needs to get some information from all individual gateway like version ,Hotfix ,what all blades are enabled .&lt;/P&gt;
&lt;P&gt;Script is based on&amp;nbsp;sk85621 and sk101047 .&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below is the bash code for script to run bash / clish command on multiple gateway which has working SIC .&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;gateway_ip_list.txt &amp;nbsp;is located in current directory which has IP of all the gateways&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;****************************************&lt;/P&gt;
&lt;P&gt;[Expert@Management:0]# cat rcommand.sh&lt;BR /&gt;#!/bin/bash&lt;/P&gt;
&lt;P&gt;echo "Do you want to run bash or clish command"&lt;BR /&gt;read shell&lt;BR /&gt;echo "please input the $shell command to run on all the gateway"&lt;BR /&gt;read input&lt;BR /&gt;for dest in $(&amp;lt;gateway_ip_list.txt); do&lt;BR /&gt;echo "running the $shell command $input on $dest "&lt;/P&gt;
&lt;P&gt;cprid_util -server $dest -verbose rexec -rcmd /bin/$shell -c "$input"&lt;BR /&gt;done&lt;/P&gt;
&lt;P&gt;[Expert@Management:0]#&lt;/P&gt;
&lt;P&gt;********************************************&lt;/P&gt;
&lt;P&gt;Please refer the attached pdf .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Watch a demo here :&lt;/P&gt;
&lt;P&gt;&lt;div class="lia-vid-container video-embed-center"&gt;&lt;div id="lia-vid-8wa2pnaDE6sdCowqQz4-96znFsCnmmiLw1080h720r743" class="lia-video-brightcove-player-container"&gt;&lt;video-js data-video-id="6065283496001" 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-8wa2pnaDE6sdCowqQz4-96znFsCnmmiLw1080h720r743');  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/8wa2pnaDE6sdCowqQz4-96znFsCnmmiL"&gt;(view in My Videos)&lt;/a&gt;&lt;/div&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 18 Mar 2019 02:43:47 GMT</pubDate>
    <dc:creator>Harshpal_Bhati</dc:creator>
    <dc:date>2019-03-18T02:43:47Z</dc:date>
    <item>
      <title>Central Script to Perform gateway changes</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Central-Script-to-Perform-gateway-changes/m-p/38655#M2298</link>
      <description>&lt;P&gt;Hi Everyone ,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This could be very useful script for enterprise customer where check point gateways are being managed by MDS or Management server . There are many common changes that needs to be done on individual &amp;nbsp;gateway , For example configuring syslog ,NTP , SNMP . In many of the cases customer needs to get some information from all individual gateway like version ,Hotfix ,what all blades are enabled .&lt;/P&gt;
&lt;P&gt;Script is based on&amp;nbsp;sk85621 and sk101047 .&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below is the bash code for script to run bash / clish command on multiple gateway which has working SIC .&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;gateway_ip_list.txt &amp;nbsp;is located in current directory which has IP of all the gateways&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;****************************************&lt;/P&gt;
&lt;P&gt;[Expert@Management:0]# cat rcommand.sh&lt;BR /&gt;#!/bin/bash&lt;/P&gt;
&lt;P&gt;echo "Do you want to run bash or clish command"&lt;BR /&gt;read shell&lt;BR /&gt;echo "please input the $shell command to run on all the gateway"&lt;BR /&gt;read input&lt;BR /&gt;for dest in $(&amp;lt;gateway_ip_list.txt); do&lt;BR /&gt;echo "running the $shell command $input on $dest "&lt;/P&gt;
&lt;P&gt;cprid_util -server $dest -verbose rexec -rcmd /bin/$shell -c "$input"&lt;BR /&gt;done&lt;/P&gt;
&lt;P&gt;[Expert@Management:0]#&lt;/P&gt;
&lt;P&gt;********************************************&lt;/P&gt;
&lt;P&gt;Please refer the attached pdf .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Watch a demo here :&lt;/P&gt;
&lt;P&gt;&lt;div class="lia-vid-container video-embed-center"&gt;&lt;div id="lia-vid-8wa2pnaDE6sdCowqQz4-96znFsCnmmiLw1080h720r818" class="lia-video-brightcove-player-container"&gt;&lt;video-js data-video-id="6065283496001" 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-8wa2pnaDE6sdCowqQz4-96znFsCnmmiLw1080h720r818');  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/8wa2pnaDE6sdCowqQz4-96znFsCnmmiL"&gt;(view in My Videos)&lt;/a&gt;&lt;/div&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2019 02:43:47 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Central-Script-to-Perform-gateway-changes/m-p/38655#M2298</guid>
      <dc:creator>Harshpal_Bhati</dc:creator>
      <dc:date>2019-03-18T02:43:47Z</dc:date>
    </item>
  </channel>
</rss>

