<?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 serviceguard scripting in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/serviceguard-scripting/m-p/4696077#M659086</link>
    <description>hi all&lt;BR /&gt;&lt;BR /&gt;i have a script in cron (cant put it into the package yet) that i need to run that checks if the package actually failed over then does what it has to do.  it supposed to look for a filesystem, then go into action.  im having a problem with the mechanics there.  has anyone done that?&lt;BR /&gt;&lt;BR /&gt;thx in advance&lt;BR /&gt;</description>
    <pubDate>Wed, 06 Oct 2010 16:53:39 GMT</pubDate>
    <dc:creator>p7</dc:creator>
    <dc:date>2010-10-06T16:53:39Z</dc:date>
    <item>
      <title>serviceguard scripting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/serviceguard-scripting/m-p/4696077#M659086</link>
      <description>hi all&lt;BR /&gt;&lt;BR /&gt;i have a script in cron (cant put it into the package yet) that i need to run that checks if the package actually failed over then does what it has to do.  it supposed to look for a filesystem, then go into action.  im having a problem with the mechanics there.  has anyone done that?&lt;BR /&gt;&lt;BR /&gt;thx in advance&lt;BR /&gt;</description>
      <pubDate>Wed, 06 Oct 2010 16:53:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/serviceguard-scripting/m-p/4696077#M659086</guid>
      <dc:creator>p7</dc:creator>
      <dc:date>2010-10-06T16:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: serviceguard scripting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/serviceguard-scripting/m-p/4696078#M659087</link>
      <description>&lt;!--!*#--&gt;You could check if the package filesystem is listed in the output of the "mount" command, or simply check for the existence of a file or directory you *know* exists within the package filesystem.&lt;BR /&gt;&lt;BR /&gt;Check for filesystem:&lt;BR /&gt;&lt;BR /&gt;if mount | grep -q "/packagemountpoint"; then&lt;BR /&gt;    echo "the package is here, can proceed"&lt;BR /&gt;    # add commands to do here&lt;BR /&gt;else&lt;BR /&gt;    echo "the package is not active on this node"&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;Check for a directory inside the filesystem:&lt;BR /&gt;&lt;BR /&gt;if [ -d /packagemountpoint/somedirectory ]; then&lt;BR /&gt;    echo "the package is here, can proceed"&lt;BR /&gt;    # add commands to do here&lt;BR /&gt;else&lt;BR /&gt;    echo "the package is not active on this node"&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;MK</description>
      <pubDate>Thu, 07 Oct 2010 05:42:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/serviceguard-scripting/m-p/4696078#M659087</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2010-10-07T05:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: serviceguard scripting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/serviceguard-scripting/m-p/4696079#M659088</link>
      <description>thx i put it in cron on the adoptive node, works perfeclty.&lt;BR /&gt;&lt;BR /&gt;one problem:  &lt;BR /&gt;&lt;BR /&gt;i put it for every 5mins, so it sees the filesystem and brings the services up and down (every 5mins).  is there a way to say if u see this filesystem, do this one time&lt;BR /&gt;and stop?&lt;BR /&gt;&lt;BR /&gt;thx again&lt;BR /&gt;</description>
      <pubDate>Fri, 08 Oct 2010 11:53:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/serviceguard-scripting/m-p/4696079#M659088</guid>
      <dc:creator>p7</dc:creator>
      <dc:date>2010-10-08T11:53:05Z</dc:date>
    </item>
    <item>
      <title>Re: serviceguard scripting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/serviceguard-scripting/m-p/4696080#M659089</link>
      <description>&lt;BR /&gt;Use a flagfile to determine if you need to run.  When you start on the primary node, remove the flag file.  Check on adoptive node if the directory is mounted, and the file doesn't exist, touch the file and do what you  need.&lt;BR /&gt;&lt;BR /&gt;if [ -d /pkgmount/pkgdir ] ; then&lt;BR /&gt;   if [ ! -f /pkgmount/pkgdir/flagfile ] ; then&lt;BR /&gt;     touch /pkgmount/pkgdir/flagfile&lt;BR /&gt;     domythang&lt;BR /&gt;   fi&lt;BR /&gt;fi</description>
      <pubDate>Fri, 08 Oct 2010 12:24:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/serviceguard-scripting/m-p/4696080#M659089</guid>
      <dc:creator>Earl_Crowder</dc:creator>
      <dc:date>2010-10-08T12:24:05Z</dc:date>
    </item>
  </channel>
</rss>

