<?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 script for mwm in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/script-for-mwm/m-p/3590310#M231237</link>
    <description>Need a script for mwm - that monitors and sleep for a few minutes then starts the daemon when it is down.</description>
    <pubDate>Tue, 26 Jul 2005 14:01:33 GMT</pubDate>
    <dc:creator>Earl Rodriguez</dc:creator>
    <dc:date>2005-07-26T14:01:33Z</dc:date>
    <item>
      <title>script for mwm</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-for-mwm/m-p/3590310#M231237</link>
      <description>Need a script for mwm - that monitors and sleep for a few minutes then starts the daemon when it is down.</description>
      <pubDate>Tue, 26 Jul 2005 14:01:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-for-mwm/m-p/3590310#M231237</guid>
      <dc:creator>Earl Rodriguez</dc:creator>
      <dc:date>2005-07-26T14:01:33Z</dc:date>
    </item>
    <item>
      <title>Re: script for mwm</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-for-mwm/m-p/3590311#M231238</link>
      <description>mwa status | grep -e scopeux -e midaemon -e ttd -e alarmgen -e agdbserver -e perflbd -e rep_server &amp;gt; /tmp/checkfile&lt;BR /&gt;cat /tmp/checkfile | while read line&lt;BR /&gt;do&lt;BR /&gt;firstword=`echo $line | awk {'print $1'}`&lt;BR /&gt;if [ "$firstword" != "Running" ]&lt;BR /&gt;then&lt;BR /&gt;mwa restart&lt;BR /&gt;fi&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;you can fire-up this script from cron every so many minutes or you can put it in a &lt;BR /&gt;&lt;BR /&gt;while true&lt;BR /&gt;do&lt;BR /&gt;above_script &lt;BR /&gt;sleep $NUMBER # waits NUMBER seconds&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I prefer cron approach though.&lt;BR /&gt;&lt;BR /&gt;You can go more elaborate and parse the line in the script for the subsystem and if one subsystem fails you can only start or restart that one.&lt;BR /&gt;&lt;BR /&gt;Also keep in mind that these subsystems are specific to one of my servers. Yours may be different. If so, change the "grep -e" phrases on the first line to reflect which subsytems running on your server. You can get that information by simply running &lt;BR /&gt;&lt;BR /&gt;mwa status &lt;BR /&gt;&lt;BR /&gt;command.&lt;BR /&gt;&lt;BR /&gt;Hope this helps</description>
      <pubDate>Tue, 26 Jul 2005 14:15:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-for-mwm/m-p/3590311#M231238</guid>
      <dc:creator>Mel Burslan</dc:creator>
      <dc:date>2005-07-26T14:15:59Z</dc:date>
    </item>
    <item>
      <title>Re: script for mwm</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-for-mwm/m-p/3590312#M231239</link>
      <description>Earl,&lt;BR /&gt;&lt;BR /&gt;Are you having a problem with the MWA processes running ?  In the 10 years running MWA there were only two reasons that I have had issues.  1)  filesystem full 2) corrupt log file usually due to a filesystem full issue.&lt;BR /&gt;&lt;BR /&gt;You may be chasing the tail of some other problem.  Fix the source if it exists.&lt;BR /&gt;</description>
      <pubDate>Tue, 26 Jul 2005 15:00:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-for-mwm/m-p/3590312#M231239</guid>
      <dc:creator>Tim Nelson</dc:creator>
      <dc:date>2005-07-26T15:00:12Z</dc:date>
    </item>
  </channel>
</rss>

