<?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: selecting a node to run checks from a row in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/selecting-a-node-to-run-checks-from-a-row/m-p/5013862#M96575</link>
    <description>Well we have a winner . .&lt;BR /&gt;Dennis, thanks for the smart thinking.&lt;BR /&gt;Indeed after the first succesfull response from a host in the list, the status of the packages of that cluster are retreived and the main checkscript continues with other checks as i want it to be.&lt;BR /&gt;&lt;BR /&gt;Now this results in the fact that the first available clusternode gives me the status of the packages even if one node is down.&lt;BR /&gt;That was what i wanted.&lt;BR /&gt;&lt;BR /&gt;Klaas</description>
    <pubDate>Tue, 14 Nov 2006 06:47:38 GMT</pubDate>
    <dc:creator>Klaas D. Eenkhoorn</dc:creator>
    <dc:date>2006-11-14T06:47:38Z</dc:date>
    <item>
      <title>selecting a node to run checks from a row</title>
      <link>https://community.hpe.com/t5/operating-system-linux/selecting-a-node-to-run-checks-from-a-row/m-p/5013857#M96570</link>
      <description>All,&lt;BR /&gt;&lt;BR /&gt;KSH scripting question:&lt;BR /&gt;I whant to run a checkscript on a mc/sg node to check the status of the packages of the cluster. I have a list of nodes in my script in an environment variable like 'NODES="hp1 hp2 hp3' and i like to check these nodes for availability to execute my checkscript with remsh.&lt;BR /&gt;&lt;BR /&gt;What would be the code to do this selection process, first availible in line is fine with me.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance,&lt;BR /&gt;&lt;BR /&gt;Klaas Eenkhoorn</description>
      <pubDate>Tue, 14 Nov 2006 03:03:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/selecting-a-node-to-run-checks-from-a-row/m-p/5013857#M96570</guid>
      <dc:creator>Klaas D. Eenkhoorn</dc:creator>
      <dc:date>2006-11-14T03:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: selecting a node to run checks from a row</title>
      <link>https://community.hpe.com/t5/operating-system-linux/selecting-a-node-to-run-checks-from-a-row/m-p/5013858#M96571</link>
      <description>&lt;!--!*#--&gt;I'm not quite sure I understand what you want.  If you have: NODES="hp1 hp2 hp3"&lt;BR /&gt;You can do:&lt;BR /&gt;   for node in $NODES; do&lt;BR /&gt;      checkscript ...&lt;BR /&gt;   done&lt;BR /&gt;&lt;BR /&gt;Or do you want something to check if the node is ok enough to do remsh?</description>
      <pubDate>Tue, 14 Nov 2006 03:15:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/selecting-a-node-to-run-checks-from-a-row/m-p/5013858#M96571</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2006-11-14T03:15:21Z</dc:date>
    </item>
    <item>
      <title>Re: selecting a node to run checks from a row</title>
      <link>https://community.hpe.com/t5/operating-system-linux/selecting-a-node-to-run-checks-from-a-row/m-p/5013859#M96572</link>
      <description>Yes, one of the nodes that responds is OK enough to do remsh.&lt;BR /&gt;It is not my intension to run the script on all the nodes. The first one availible is fine.&lt;BR /&gt;&lt;BR /&gt;Kl@@s</description>
      <pubDate>Tue, 14 Nov 2006 03:18:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/selecting-a-node-to-run-checks-from-a-row/m-p/5013859#M96572</guid>
      <dc:creator>Klaas D. Eenkhoorn</dc:creator>
      <dc:date>2006-11-14T03:18:02Z</dc:date>
    </item>
    <item>
      <title>Re: selecting a node to run checks from a row</title>
      <link>https://community.hpe.com/t5/operating-system-linux/selecting-a-node-to-run-checks-from-a-row/m-p/5013860#M96573</link>
      <description>&lt;!--!*#--&gt;&amp;gt;The first one availible is fine.&lt;BR /&gt;&lt;BR /&gt;for node in $NODES; do&lt;BR /&gt;   checkscript ...&lt;BR /&gt;   if [ $? -eq 0 ]; then&lt;BR /&gt;      remsh $node ...&lt;BR /&gt;      break&lt;BR /&gt;   fi&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;Basically you will have add some code to detect if the machine is up.  (One possible check is to do remsh $node -n uname -a.)&lt;BR /&gt;&lt;BR /&gt;If it is, you can do the real remsh and the break.</description>
      <pubDate>Tue, 14 Nov 2006 03:26:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/selecting-a-node-to-run-checks-from-a-row/m-p/5013860#M96573</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2006-11-14T03:26:36Z</dc:date>
    </item>
    <item>
      <title>Re: selecting a node to run checks from a row</title>
      <link>https://community.hpe.com/t5/operating-system-linux/selecting-a-node-to-run-checks-from-a-row/m-p/5013861#M96574</link>
      <description>Klaas,&lt;BR /&gt;you can do:&lt;BR /&gt;#!/usr/bin/ksh&lt;BR /&gt;NODES="hp1 hp2 hp3"&lt;BR /&gt;for node in $NODES; do&lt;BR /&gt;   remsh $node -l userid -n "ls" 2&amp;gt; /dev/null&lt;BR /&gt;   ret=$?&lt;BR /&gt;   if [ $ret -eq 0 ]&lt;BR /&gt;   then&lt;BR /&gt;   echo "$node ok"&lt;BR /&gt;   exit&lt;BR /&gt;   else&lt;BR /&gt;   echo "$node failed"&lt;BR /&gt;   fi&lt;BR /&gt;done</description>
      <pubDate>Tue, 14 Nov 2006 03:38:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/selecting-a-node-to-run-checks-from-a-row/m-p/5013861#M96574</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2006-11-14T03:38:26Z</dc:date>
    </item>
    <item>
      <title>Re: selecting a node to run checks from a row</title>
      <link>https://community.hpe.com/t5/operating-system-linux/selecting-a-node-to-run-checks-from-a-row/m-p/5013862#M96575</link>
      <description>Well we have a winner . .&lt;BR /&gt;Dennis, thanks for the smart thinking.&lt;BR /&gt;Indeed after the first succesfull response from a host in the list, the status of the packages of that cluster are retreived and the main checkscript continues with other checks as i want it to be.&lt;BR /&gt;&lt;BR /&gt;Now this results in the fact that the first available clusternode gives me the status of the packages even if one node is down.&lt;BR /&gt;That was what i wanted.&lt;BR /&gt;&lt;BR /&gt;Klaas</description>
      <pubDate>Tue, 14 Nov 2006 06:47:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/selecting-a-node-to-run-checks-from-a-row/m-p/5013862#M96575</guid>
      <dc:creator>Klaas D. Eenkhoorn</dc:creator>
      <dc:date>2006-11-14T06:47:38Z</dc:date>
    </item>
  </channel>
</rss>

