<?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: runnig shell script on many servers in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/runnig-shell-script-on-many-servers/m-p/3700620#M103404</link>
    <description>clusterssh will perhaps fit your needs;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://clusterssh.sourceforge.net/index.php/Main_Page" target="_blank"&gt;http://clusterssh.sourceforge.net/index.php/Main_Page&lt;/A&gt;</description>
    <pubDate>Mon, 09 Jan 2006 09:38:11 GMT</pubDate>
    <dc:creator>dirk dierickx</dc:creator>
    <dc:date>2006-01-09T09:38:11Z</dc:date>
    <item>
      <title>runnig shell script on many servers</title>
      <link>https://community.hpe.com/t5/operating-system-linux/runnig-shell-script-on-many-servers/m-p/3700610#M103394</link>
      <description>Dear Sirs,&lt;BR /&gt;&lt;BR /&gt;I have a script available on one of the server. Is it possible to run it om many servers by executing on one server ?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Shiv</description>
      <pubDate>Sun, 01 Jan 2006 21:22:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/runnig-shell-script-on-many-servers/m-p/3700610#M103394</guid>
      <dc:creator>Shivkumar</dc:creator>
      <dc:date>2006-01-01T21:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: runnig shell script on many servers</title>
      <link>https://community.hpe.com/t5/operating-system-linux/runnig-shell-script-on-many-servers/m-p/3700611#M103395</link>
      <description>Hi Shiv:&lt;BR /&gt;&lt;BR /&gt;That depends on what your shell script does.  As long as it uses code that exists on the *other* servers, then "yes".&lt;BR /&gt;&lt;BR /&gt;For example, if I wanted to collect the 'uname' information on a number of servers, I could do something like:&lt;BR /&gt;&lt;BR /&gt;# for host in hostA hostB hostC&lt;BR /&gt;&amp;gt; do&lt;BR /&gt;&amp;gt; remsh -n 'uname -a'&lt;BR /&gt;&amp;gt; done&lt;BR /&gt;&lt;BR /&gt;The key is that the 'uname' command is available on each host and is executed there.&lt;BR /&gt;&lt;BR /&gt;If the server isn't setup for 'remsh' then you could substitute 'rexec'.  See the manpages for 'remsh(1)' for more information.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Sun, 01 Jan 2006 22:02:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/runnig-shell-script-on-many-servers/m-p/3700611#M103395</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2006-01-01T22:02:27Z</dc:date>
    </item>
    <item>
      <title>Re: runnig shell script on many servers</title>
      <link>https://community.hpe.com/t5/operating-system-linux/runnig-shell-script-on-many-servers/m-p/3700612#M103396</link>
      <description>Hi Shiv, Yes, It is possible to run script on multiple servers, you can use remsh or any custom methods like, having a centralised server and it pushes scripts to agents which are running in other servers, this can be achieved by Java or C programs. &lt;BR /&gt;&lt;BR /&gt;-Arun</description>
      <pubDate>Sun, 01 Jan 2006 22:28:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/runnig-shell-script-on-many-servers/m-p/3700612#M103396</guid>
      <dc:creator>Arunvijai_4</dc:creator>
      <dc:date>2006-01-01T22:28:26Z</dc:date>
    </item>
    <item>
      <title>Re: runnig shell script on many servers</title>
      <link>https://community.hpe.com/t5/operating-system-linux/runnig-shell-script-on-many-servers/m-p/3700613#M103397</link>
      <description>You can use remsh / rexec commands to execute.&lt;BR /&gt;&lt;BR /&gt;or&lt;BR /&gt;&lt;BR /&gt;ssh command to execute in remote machine&lt;BR /&gt;&lt;BR /&gt;or &lt;BR /&gt;&lt;BR /&gt;using expect script to give password and execute.&lt;BR /&gt;&lt;BR /&gt;or using telnet + piping scripting as,&lt;BR /&gt;&lt;BR /&gt;(&lt;BR /&gt;echo "root"&lt;BR /&gt;sleep 2&lt;BR /&gt;echo "passwd"&lt;BR /&gt;sleep 2&lt;BR /&gt;echo "&lt;COMMAND&gt;"&lt;BR /&gt;sleep 2&lt;BR /&gt;echo "exit"&lt;BR /&gt;) | telnet hostname&lt;BR /&gt;&lt;BR /&gt;-Muthu&lt;/COMMAND&gt;</description>
      <pubDate>Mon, 02 Jan 2006 01:33:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/runnig-shell-script-on-many-servers/m-p/3700613#M103397</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2006-01-02T01:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: runnig shell script on many servers</title>
      <link>https://community.hpe.com/t5/operating-system-linux/runnig-shell-script-on-many-servers/m-p/3700614#M103398</link>
      <description>Hi Shiv, You can use "expect" utility as well to run automated remote execution. &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://expect.nist.gov/" target="_blank"&gt;http://expect.nist.gov/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://hpux.connect.org.uk/hppd/hpux/Tcl/expect-5.43/" target="_blank"&gt;http://hpux.connect.org.uk/hppd/hpux/Tcl/expect-5.43/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;-Arun</description>
      <pubDate>Mon, 02 Jan 2006 01:39:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/runnig-shell-script-on-many-servers/m-p/3700614#M103398</guid>
      <dc:creator>Arunvijai_4</dc:creator>
      <dc:date>2006-01-02T01:39:08Z</dc:date>
    </item>
    <item>
      <title>Re: runnig shell script on many servers</title>
      <link>https://community.hpe.com/t5/operating-system-linux/runnig-shell-script-on-many-servers/m-p/3700615#M103399</link>
      <description>Hi Shiv,&lt;BR /&gt;&lt;BR /&gt;You could distribute and execute the script using SSH:&lt;BR /&gt;&lt;BR /&gt;for HOST in A B C&lt;BR /&gt;do&lt;BR /&gt;  scp myscript username@$HOST:/tmp/myscript&lt;BR /&gt;  ssh $HOST /tmp/myscript&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;You might want to put in checks to make sure that the script is not executed if the transfer fails etc.&lt;BR /&gt;&lt;BR /&gt;If you want to do this without entering passwords, you can setup "public-key authentication" - for more information take a look at this site: &lt;A href="http://www.cvrti.utah.edu/~dustman/no-more-pw-ssh/" target="_blank"&gt;http://www.cvrti.utah.edu/~dustman/no-more-pw-ssh/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Kasper</description>
      <pubDate>Mon, 02 Jan 2006 09:24:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/runnig-shell-script-on-many-servers/m-p/3700615#M103399</guid>
      <dc:creator>Kasper Hedensted</dc:creator>
      <dc:date>2006-01-02T09:24:18Z</dc:date>
    </item>
    <item>
      <title>Re: runnig shell script on many servers</title>
      <link>https://community.hpe.com/t5/operating-system-linux/runnig-shell-script-on-many-servers/m-p/3700616#M103400</link>
      <description>Hi Shiv,&lt;BR /&gt;if on the other server you have the same scripts and the same environment (same path, same aliases ans so on) the answer is yes.&lt;BR /&gt;I do teh same using remsh.&lt;BR /&gt;remeber to load the profile prior to execute your script on remote server.&lt;BR /&gt;man remsh for more info regarding the input/output redirection.&lt;BR /&gt;HTH,&lt;BR /&gt;Art</description>
      <pubDate>Tue, 03 Jan 2006 04:05:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/runnig-shell-script-on-many-servers/m-p/3700616#M103400</guid>
      <dc:creator>Arturo Galbiati</dc:creator>
      <dc:date>2006-01-03T04:05:43Z</dc:date>
    </item>
    <item>
      <title>Re: runnig shell script on many servers</title>
      <link>https://community.hpe.com/t5/operating-system-linux/runnig-shell-script-on-many-servers/m-p/3700617#M103401</link>
      <description>This loop scrcipting is cumbersome and too time consuming if you need to run the same command on, say some hundred nodes.&lt;BR /&gt;The typical environment where this is necessary is usually number crunching clusters.&lt;BR /&gt;That's why those folks already devised a whole bunch of cluster maintenance solutions.&lt;BR /&gt; &lt;BR /&gt;Here are some such&lt;BR /&gt; &lt;BR /&gt;&lt;A href="http://www.llnl.gov/linux/pdsh/pdsh.html" target="_blank"&gt;http://www.llnl.gov/linux/pdsh/pdsh.html&lt;/A&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;A href="http://www.csm.ornl.gov/torc/C3/" target="_blank"&gt;http://www.csm.ornl.gov/torc/C3/&lt;/A&gt;&lt;BR /&gt;  &lt;BR /&gt;&lt;A href="http://sourceforge.net/projects/dcmd/" target="_blank"&gt;http://sourceforge.net/projects/dcmd/&lt;/A&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;A href="http://tentakel.biskalar.de/" target="_blank"&gt;http://tentakel.biskalar.de/&lt;/A&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;A href="http://ganglia.sourceforge.net/" target="_blank"&gt;http://ganglia.sourceforge.net/&lt;/A&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;Most of those can be built with SSH integration.&lt;BR /&gt;I personally find PDSH pretty neat and easy to set up.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 03 Jan 2006 09:25:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/runnig-shell-script-on-many-servers/m-p/3700617#M103401</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2006-01-03T09:25:11Z</dc:date>
    </item>
    <item>
      <title>Re: runnig shell script on many servers</title>
      <link>https://community.hpe.com/t5/operating-system-linux/runnig-shell-script-on-many-servers/m-p/3700618#M103402</link>
      <description>Shiv,&lt;BR /&gt;&lt;BR /&gt;One other way to run a script on many servers is to put the script in a filesystem that is exported to all other systems.  You can then run the script by mounting the filesystem on each of the NFS client machines.&lt;BR /&gt;&lt;BR /&gt;For example, I have a backup script that I run nightly on a variety of servers.  I installed the script on a Network Appliance partition called /backups.  This partition is exported to all the servers at the site.  Thus, I can put something like:&lt;BR /&gt;&lt;BR /&gt;00 30 * * * /backups/backup.sh &lt;BR /&gt;&lt;BR /&gt;in the crontab of each server.  Of cource, you have to make sure that /backups is mounted on the various servers, or you cron job will fail.&lt;BR /&gt;&lt;BR /&gt;Just another method...&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Mark</description>
      <pubDate>Tue, 03 Jan 2006 09:51:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/runnig-shell-script-on-many-servers/m-p/3700618#M103402</guid>
      <dc:creator>Mark Ellzey</dc:creator>
      <dc:date>2006-01-03T09:51:24Z</dc:date>
    </item>
    <item>
      <title>Re: runnig shell script on many servers</title>
      <link>https://community.hpe.com/t5/operating-system-linux/runnig-shell-script-on-many-servers/m-p/3700619#M103403</link>
      <description>Shiv,&lt;BR /&gt;&lt;BR /&gt;Ralph's reply above mentioned "pdsh" or Parallel Distributed&lt;BR /&gt;Shell. This open source tool included as part of the &lt;BR /&gt;Distributed Systems Administration Utility (DSAU) with &lt;BR /&gt;HP=UX 11.23 December 05 release. &lt;BR /&gt;&lt;BR /&gt;pdsh would be a high performance option since it &lt;BR /&gt;would issue the command in parallel to the specified set of &lt;BR /&gt;systems. The target systems can be specified in a file, one&lt;BR /&gt;hostname per line.&lt;BR /&gt;&lt;BR /&gt;You do have to configure rsh or non-interactive ssh for&lt;BR /&gt;pdsh. DSAU supplies the csshsetup tool to simply configuring&lt;BR /&gt;one-way or round-robin trust relationships for ssh. &lt;BR /&gt;&lt;BR /&gt;Two other possible approaches:&lt;BR /&gt;&lt;BR /&gt;- Use Systems Insight Manager. SIM has the Distributed Task&lt;BR /&gt;Facility (mxexec). This is conceptually similar to pdsh but&lt;BR /&gt;allows you to define role-based access control for&lt;BR /&gt;predefined commands/scripts.&lt;BR /&gt;&lt;BR /&gt;- Use cfengine. cfengine is also included with HP-UX 11.23&lt;BR /&gt;  December 05. You can use cfengine to distribute the script&lt;BR /&gt;  to the managed clients and execute it there. &lt;BR /&gt;&lt;BR /&gt;     pete&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;</description>
      <pubDate>Sat, 07 Jan 2006 21:11:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/runnig-shell-script-on-many-servers/m-p/3700619#M103403</guid>
      <dc:creator>PeterWolfe</dc:creator>
      <dc:date>2006-01-07T21:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: runnig shell script on many servers</title>
      <link>https://community.hpe.com/t5/operating-system-linux/runnig-shell-script-on-many-servers/m-p/3700620#M103404</link>
      <description>clusterssh will perhaps fit your needs;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://clusterssh.sourceforge.net/index.php/Main_Page" target="_blank"&gt;http://clusterssh.sourceforge.net/index.php/Main_Page&lt;/A&gt;</description>
      <pubDate>Mon, 09 Jan 2006 09:38:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/runnig-shell-script-on-many-servers/m-p/3700620#M103404</guid>
      <dc:creator>dirk dierickx</dc:creator>
      <dc:date>2006-01-09T09:38:11Z</dc:date>
    </item>
  </channel>
</rss>

