<?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: Central Script to run command on multiple gateways in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Central-Script-to-run-command-on-multiple-gateways/m-p/38949#M2384</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please refer to the following SK article:&lt;/P&gt;&lt;P&gt;&lt;A href="https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&amp;amp;solutionid=sk101047"&gt;sk101047 - How to manage Security Gateway using the "cprid_util" tool&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Sep 2017 14:41:59 GMT</pubDate>
    <dc:creator>Sergei_Shir</dc:creator>
    <dc:date>2017-09-11T14:41:59Z</dc:date>
    <item>
      <title>Central Script to run command on multiple gateways</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Central-Script-to-run-command-on-multiple-gateways/m-p/38948#M2383</link>
      <description>&lt;P&gt;Hi Everyone&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This script can be very useful for enterprise customer where administrator has to perform some common gateway changes on multiple gateways . Like configuring NTP , syslog ,SNMP ,This can also be used to copy a file on multiple gateway in one go . or might be admin needs to know out of 1000 gateways which all gateway is running on &amp;nbsp;which version .&lt;/P&gt;
&lt;P&gt;*********below is the script *************&lt;BR /&gt;[Expert@Management:0]# cat rcommand.sh&lt;BR /&gt;#!/bin/bash&lt;BR /&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;BR /&gt;cprid_util -server $dest -verbose rexec -rcmd /bin/$shell -c "$input"&lt;BR /&gt;done&lt;BR /&gt;[Expert@Management:0]#&lt;/P&gt;
&lt;P&gt;*************************************************************&lt;/P&gt;
&lt;P&gt;For step by step procedure refer the attached document .&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-9uampnaDE6FkIA0eym0qsmROFYHILGXlw1080h720r509" class="lia-video-brightcove-player-container"&gt;&lt;video-js data-video-id="6065296458001" 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-9uampnaDE6FkIA0eym0qsmROFYHILGXlw1080h720r509');  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/9uampnaDE6FkIA0eym0qsmROFYHILGXl"&gt;(view in My Videos)&lt;/a&gt;&lt;/div&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2019 02:43:40 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Central-Script-to-run-command-on-multiple-gateways/m-p/38948#M2383</guid>
      <dc:creator>Harshpal_Bhati</dc:creator>
      <dc:date>2019-03-18T02:43:40Z</dc:date>
    </item>
    <item>
      <title>Re: Central Script to run command on multiple gateways</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Central-Script-to-run-command-on-multiple-gateways/m-p/38949#M2384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please refer to the following SK article:&lt;/P&gt;&lt;P&gt;&lt;A href="https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&amp;amp;solutionid=sk101047"&gt;sk101047 - How to manage Security Gateway using the "cprid_util" tool&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Sep 2017 14:41:59 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Central-Script-to-run-command-on-multiple-gateways/m-p/38949#M2384</guid>
      <dc:creator>Sergei_Shir</dc:creator>
      <dc:date>2017-09-11T14:41:59Z</dc:date>
    </item>
  </channel>
</rss>

