<?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: swinstall is stuck because client gets hang in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/swinstall-is-stuck-because-client-gets-hang/m-p/3867409#M98585</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;This (untested) script will launch 10 instances of swinstall in the bg, sleep for 10 seconds, and launch 10 more until ${hostlist} is exhausted:&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;typeset -i batchsize=10&lt;BR /&gt;typeset -i zzz=10&lt;BR /&gt;#set other vars here&lt;BR /&gt;typeset -i i=0&lt;BR /&gt;for host in $(cat hostlist)&lt;BR /&gt;do&lt;BR /&gt;  swinstall -x job_title=${host}_secu_refresh -Q ${day},${time} -S ${swoptionsfile} -s${depot} ${product} @ ${host} 2&amp;gt;&amp;amp;1 &amp;amp;&lt;BR /&gt;  i=$((i + 1))&lt;BR /&gt;  if [[ ${i} -eq ${batchsize} ]]&lt;BR /&gt;  then&lt;BR /&gt;    sleep ${zzz}&lt;BR /&gt;    i=1&lt;BR /&gt;  fi&lt;BR /&gt;done&lt;BR /&gt;exit&lt;BR /&gt;  &lt;BR /&gt;PCS</description>
    <pubDate>Thu, 21 Sep 2006 12:38:40 GMT</pubDate>
    <dc:creator>spex</dc:creator>
    <dc:date>2006-09-21T12:38:40Z</dc:date>
    <item>
      <title>swinstall is stuck because client gets hang</title>
      <link>https://community.hpe.com/t5/operating-system-linux/swinstall-is-stuck-because-client-gets-hang/m-p/3867405#M98581</link>
      <description>Hi All, &lt;BR /&gt;&lt;BR /&gt;Please help. I have a script called sched.sh. This script is for distributing a product to around 200 clients using swinstall command from depot server. &lt;BR /&gt;&lt;BR /&gt;I have an issue when one of the clients get hang, so swinstall will be stuck on that server and can not proceed to the next server. This is causing the script sched.sh will fail. &lt;BR /&gt;&lt;BR /&gt;Is there any way to make the script more intelligent if a client get hang, so the swinstall will skip that client and proceed to the next server?&lt;BR /&gt;&lt;BR /&gt;[root@DEPOT:]&lt;BR /&gt;# more secu005_create_acf.sh  &lt;BR /&gt;.&lt;BR /&gt;swinstall -x job_title=${host}_secu_refresh -Q $day,$time -S $swoptionsfile -s$depot $product @ $host 2&amp;gt;&amp;amp;1 &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 21 Sep 2006 11:49:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/swinstall-is-stuck-because-client-gets-hang/m-p/3867405#M98581</guid>
      <dc:creator>Dewa Negara_4</dc:creator>
      <dc:date>2006-09-21T11:49:12Z</dc:date>
    </item>
    <item>
      <title>Re: swinstall is stuck because client gets hang</title>
      <link>https://community.hpe.com/t5/operating-system-linux/swinstall-is-stuck-because-client-gets-hang/m-p/3867406#M98582</link>
      <description>see the link &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/bizsupport/questionanswer.do?threadId=1061399" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/bizsupport/questionanswer.do?threadId=1061399&lt;/A&gt;</description>
      <pubDate>Thu, 21 Sep 2006 12:03:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/swinstall-is-stuck-because-client-gets-hang/m-p/3867406#M98582</guid>
      <dc:creator>IT_2007</dc:creator>
      <dc:date>2006-09-21T12:03:25Z</dc:date>
    </item>
    <item>
      <title>Re: swinstall is stuck because client gets hang</title>
      <link>https://community.hpe.com/t5/operating-system-linux/swinstall-is-stuck-because-client-gets-hang/m-p/3867407#M98583</link>
      <description>Thanks. But when the client gets hang, swinstall won't give any value for $?.</description>
      <pubDate>Thu, 21 Sep 2006 12:31:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/swinstall-is-stuck-because-client-gets-hang/m-p/3867407#M98583</guid>
      <dc:creator>Dewa Negara_4</dc:creator>
      <dc:date>2006-09-21T12:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: swinstall is stuck because client gets hang</title>
      <link>https://community.hpe.com/t5/operating-system-linux/swinstall-is-stuck-because-client-gets-hang/m-p/3867408#M98584</link>
      <description>no it won't. You have to write a script that checks if the client is pingable and running swagentd then run swinstall command.</description>
      <pubDate>Thu, 21 Sep 2006 12:35:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/swinstall-is-stuck-because-client-gets-hang/m-p/3867408#M98584</guid>
      <dc:creator>IT_2007</dc:creator>
      <dc:date>2006-09-21T12:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: swinstall is stuck because client gets hang</title>
      <link>https://community.hpe.com/t5/operating-system-linux/swinstall-is-stuck-because-client-gets-hang/m-p/3867409#M98585</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;This (untested) script will launch 10 instances of swinstall in the bg, sleep for 10 seconds, and launch 10 more until ${hostlist} is exhausted:&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;typeset -i batchsize=10&lt;BR /&gt;typeset -i zzz=10&lt;BR /&gt;#set other vars here&lt;BR /&gt;typeset -i i=0&lt;BR /&gt;for host in $(cat hostlist)&lt;BR /&gt;do&lt;BR /&gt;  swinstall -x job_title=${host}_secu_refresh -Q ${day},${time} -S ${swoptionsfile} -s${depot} ${product} @ ${host} 2&amp;gt;&amp;amp;1 &amp;amp;&lt;BR /&gt;  i=$((i + 1))&lt;BR /&gt;  if [[ ${i} -eq ${batchsize} ]]&lt;BR /&gt;  then&lt;BR /&gt;    sleep ${zzz}&lt;BR /&gt;    i=1&lt;BR /&gt;  fi&lt;BR /&gt;done&lt;BR /&gt;exit&lt;BR /&gt;  &lt;BR /&gt;PCS</description>
      <pubDate>Thu, 21 Sep 2006 12:38:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/swinstall-is-stuck-because-client-gets-hang/m-p/3867409#M98585</guid>
      <dc:creator>spex</dc:creator>
      <dc:date>2006-09-21T12:38:40Z</dc:date>
    </item>
    <item>
      <title>Re: swinstall is stuck because client gets hang</title>
      <link>https://community.hpe.com/t5/operating-system-linux/swinstall-is-stuck-because-client-gets-hang/m-p/3867410#M98586</link>
      <description>Thanks PCS,&lt;BR /&gt;&lt;BR /&gt;It looks to me that this is a great idea. Hope the script can skip the hang client and proceed with the next. I will test this script. Any other ideas are welcome. Thanks.</description>
      <pubDate>Thu, 21 Sep 2006 21:06:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/swinstall-is-stuck-because-client-gets-hang/m-p/3867410#M98586</guid>
      <dc:creator>Dewa Negara_4</dc:creator>
      <dc:date>2006-09-21T21:06:33Z</dc:date>
    </item>
  </channel>
</rss>

