<?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: Serviceguard A.11.19 and external script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/serviceguard-a-11-19-and-external-script/m-p/4644681#M666155</link>
    <description>Dear Stephen,&lt;BR /&gt;&lt;BR /&gt;all I need is to start/stop Oracle/Database when package start/stop, so it is only one command with su - oracle? do I really need to do all this? &lt;BR /&gt;&lt;BR /&gt;Ahmed</description>
    <pubDate>Thu, 10 Jun 2010 03:37:29 GMT</pubDate>
    <dc:creator>Ahmed_58</dc:creator>
    <dc:date>2010-06-10T03:37:29Z</dc:date>
    <item>
      <title>Serviceguard A.11.19 and external script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/serviceguard-a-11-19-and-external-script/m-p/4644679#M666152</link>
      <description>Dears,&lt;BR /&gt;&lt;BR /&gt;we have new OS 11.23 installation, with "ServiceGuard A.11.19", a failover package created, now I need to add start/stop for Oracle with package start/stop.&lt;BR /&gt;&lt;BR /&gt;I can see a "external_script.template" in ./examples directory, but don't now how to configure/call the command, all I need is to add oracle start/stop command with the package, as this version do not have a pkg control file.&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;Ahmed&lt;BR /&gt;</description>
      <pubDate>Wed, 09 Jun 2010 04:52:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/serviceguard-a-11-19-and-external-script/m-p/4644679#M666152</guid>
      <dc:creator>Ahmed_58</dc:creator>
      <dc:date>2010-06-09T04:52:31Z</dc:date>
    </item>
    <item>
      <title>Re: Serviceguard A.11.19 and external script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/serviceguard-a-11-19-and-external-script/m-p/4644680#M666153</link>
      <description>Hello Ahmed,&lt;BR /&gt;&lt;BR /&gt;Version B.05.00 of T1909BA - the Enterprise Cluster Master Toolkit (ECMT), is the first version of the toolkit product that enables the administrator to create an Oracle package with the modular package configuration file.   It supports A.11.18 (with patches) and A.11.19.&lt;BR /&gt;&lt;BR /&gt;When installed, the product loads /etc/cmcluster/scripts and ../modules with files that are linked to the package configuration file when you create the package configuration file thus:&lt;BR /&gt;$ cmmakepkg -m ecmt/oracle/oracle pkg.conf&lt;BR /&gt;&lt;BR /&gt;Along with standard package parameters, you also customize the following parameters (as needed) that are included in the package configuration file:&lt;BR /&gt; ecmt/oracle/oracle/TKIT_DIR&lt;BR /&gt; ecmt/oracle/oracle/INSTANCE_TYPE&lt;BR /&gt; #ecmt/oracle/oracle/ORACLE_HOME&lt;BR /&gt; ecmt/oracle/oracle/ORACLE_ADMIN&lt;BR /&gt; #ecmt/oracle/oracle/SID_NAME&lt;BR /&gt; ecmt/oracle/oracle/ASM&lt;BR /&gt; #ecmt/oracle/oracle/ASM_DISKGROUP&lt;BR /&gt; #ecmt/oracle/oracle/ASM_VOLUME_GROUP&lt;BR /&gt; #ecmt/oracle/oracle/ASM_HOME&lt;BR /&gt; ecmt/oracle/oracle/ASM_USER&lt;BR /&gt; #ecmt/oracle/oracle/ASM_SID&lt;BR /&gt; ecmt/oracle/oracle/LISTENER&lt;BR /&gt; #ecmt/oracle/oracle/LISTENER_NAME&lt;BR /&gt; #ecmt/oracle/oracle/LISTENER_PASS&lt;BR /&gt; ecmt/oracle/oracle/PFILE&lt;BR /&gt; ecmt/oracle/oracle/MONITOR_PROCESSES&lt;BR /&gt; ecmt/oracle/oracle/MAINTENANCE_FLAG&lt;BR /&gt; ecmt/oracle/oracle/MONITOR_INTERVAL&lt;BR /&gt; ecmt/oracle/oracle/TIME_OUT&lt;BR /&gt; ecmt/oracle/oracle/PARENT_ENVIRONMENT&lt;BR /&gt; ecmt/oracle/oracle/CLEANUP_BEFORE_STARTUP&lt;BR /&gt; ecmt/oracle/oracle/USER_SHUTDOWN_MODE&lt;BR /&gt; ecmt/oracle/oracle/KILL_ASM_FOREGROUNDS&lt;BR /&gt;&lt;BR /&gt;Then you copy the /opt/cmcluster/toolkit/oracle/&amp;lt;scripts&amp;gt; to the TKIT directory specified in the ecmt/oracle/oracle/TKIT_DIR parameter above and perform cmapplyconf on the package configuration file.  This loads the cluster binary file with pointers to the Oracle toolkit scripts that will be used when the package is started or stopped.&lt;BR /&gt;&lt;BR /&gt;Homework assignment:&lt;BR /&gt;Read&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/ha.html" target="_blank"&gt;http://docs.hp.com/en/ha.html&lt;/A&gt; -&amp;gt; HP Enterprise Cluster Master Toolkit  -&amp;gt;&lt;BR /&gt;Modular Package support in Serviceguard for Linux and ECM Toolkits&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/ha.html" target="_blank"&gt;http://docs.hp.com/en/ha.html&lt;/A&gt; -&amp;gt; Serviceguard -&amp;gt;&lt;BR /&gt;Migrating Packages from Legacy to Modular Style, October 2007&lt;BR /&gt;&lt;BR /&gt;/opt/cmcluster/toolkit/oracle/README  (exists if you installed the ECMT product)&lt;BR /&gt;</description>
      <pubDate>Wed, 09 Jun 2010 10:58:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/serviceguard-a-11-19-and-external-script/m-p/4644680#M666153</guid>
      <dc:creator>Stephen Doud</dc:creator>
      <dc:date>2010-06-09T10:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: Serviceguard A.11.19 and external script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/serviceguard-a-11-19-and-external-script/m-p/4644681#M666155</link>
      <description>Dear Stephen,&lt;BR /&gt;&lt;BR /&gt;all I need is to start/stop Oracle/Database when package start/stop, so it is only one command with su - oracle? do I really need to do all this? &lt;BR /&gt;&lt;BR /&gt;Ahmed</description>
      <pubDate>Thu, 10 Jun 2010 03:37:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/serviceguard-a-11-19-and-external-script/m-p/4644681#M666155</guid>
      <dc:creator>Ahmed_58</dc:creator>
      <dc:date>2010-06-10T03:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: Serviceguard A.11.19 and external script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/serviceguard-a-11-19-and-external-script/m-p/4644682#M666156</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Modify "script control package":&lt;BR /&gt;&lt;BR /&gt;customer_defined_halt_cmds:&lt;BR /&gt;&lt;BR /&gt;su - oracle -c /etc/cmcluster/examples/script_to_stop_oracle&lt;BR /&gt;&lt;BR /&gt;customer_defined_run_cmds:&lt;BR /&gt;&lt;BR /&gt;su - oracle -c /etc/cmcluster/examples/script_to_start_oracle&lt;BR /&gt;&lt;BR /&gt;Copy "script control package" to other nodes of cluster.&lt;BR /&gt;&lt;BR /&gt;rgs,&lt;BR /&gt;&lt;BR /&gt;rgs,&lt;BR /&gt;</description>
      <pubDate>Thu, 10 Jun 2010 10:35:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/serviceguard-a-11-19-and-external-script/m-p/4644682#M666156</guid>
      <dc:creator>rariasn</dc:creator>
      <dc:date>2010-06-10T10:35:54Z</dc:date>
    </item>
    <item>
      <title>Re: Serviceguard A.11.19 and external script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/serviceguard-a-11-19-and-external-script/m-p/4644683#M666158</link>
      <description>There are two ways to configure a package - the 'legacy' method, which rariasn alluded to, and the new modular package, which you alluded to when you called out "external_script.template". &lt;BR /&gt;&lt;BR /&gt;You need to decide which method suits you best.  First, learn how to implement either by reading the Managing Serviceguard manual located at &lt;A href="http://docs.hp.com/en/ha.html" target="_blank"&gt;http://docs.hp.com/en/ha.html&lt;/A&gt; -&amp;gt; Serviceguard -&amp;gt; User Guide&lt;BR /&gt;&lt;BR /&gt;Also, if the Enterprise Cluster Master toolkit is installed, use the /opt/cmcluster/toolkit/oracle/README document for guidance.  &lt;BR /&gt;&lt;BR /&gt;If ECMT is not installed, you have to decide how to provide the control mechanism to start/stop and monitor the Oracle instance from custom scripts called from either the customer_defined_run/halt_cmds (legacy package control script) or from external_scripts (modular package configuration file).</description>
      <pubDate>Thu, 10 Jun 2010 11:28:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/serviceguard-a-11-19-and-external-script/m-p/4644683#M666158</guid>
      <dc:creator>Stephen Doud</dc:creator>
      <dc:date>2010-06-10T11:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: Serviceguard A.11.19 and external script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/serviceguard-a-11-19-and-external-script/m-p/4644684#M666160</link>
      <description>thanks Stephen,&lt;BR /&gt;as i'm using version 11.19 therefore we must use the modular script "external_script.template" , but don't how/where to use it, and how to call the script.&lt;BR /&gt;&lt;BR /&gt;Ahmed</description>
      <pubDate>Mon, 14 Jun 2010 06:50:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/serviceguard-a-11-19-and-external-script/m-p/4644684#M666160</guid>
      <dc:creator>Ahmed_58</dc:creator>
      <dc:date>2010-06-14T06:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: Serviceguard A.11.19 and external script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/serviceguard-a-11-19-and-external-script/m-p/4644685#M666163</link>
      <description>The script location is configured in the modular-style package configuration file using the keyword:&lt;BR /&gt;&lt;BR /&gt;external_script /path/to/script&lt;BR /&gt;&lt;BR /&gt;When the above line is added to package configuration, Serviceguard does three things:&lt;BR /&gt;&lt;BR /&gt;1.) when starting the package, Serviceguard will run the script using command line "/path/to/script start".&lt;BR /&gt;&lt;BR /&gt;2.) when halting the package Serviceguard will run the script using "/path/to/script stop".&lt;BR /&gt;&lt;BR /&gt;3.) when running cmcheckconf/cmapplyconf, Serviceguard will run the script with command line "/path/to/script verify". If the script returns a non-zero error code (e.g. script terminates with "exit 1"), the cmcheckconf/cmapplyconf operation will fail.&lt;BR /&gt;&lt;BR /&gt;You cannot place the external_script to the package filesystem: the script must be available even if the package is down, on all the cluster nodes.&lt;BR /&gt;&lt;BR /&gt;MK</description>
      <pubDate>Mon, 14 Jun 2010 09:15:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/serviceguard-a-11-19-and-external-script/m-p/4644685#M666163</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2010-06-14T09:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: Serviceguard A.11.19 and external script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/serviceguard-a-11-19-and-external-script/m-p/4644686#M666164</link>
      <description>Dear Matti,&lt;BR /&gt;I can't find the external_script location in my pkg config file? or any where says to put the path for external script!?&lt;BR /&gt;&lt;BR /&gt;Ahmed&lt;BR /&gt;</description>
      <pubDate>Mon, 14 Jun 2010 09:36:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/serviceguard-a-11-19-and-external-script/m-p/4644686#M666164</guid>
      <dc:creator>Ahmed_58</dc:creator>
      <dc:date>2010-06-14T09:36:34Z</dc:date>
    </item>
    <item>
      <title>Re: Serviceguard A.11.19 and external script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/serviceguard-a-11-19-and-external-script/m-p/4644687#M666165</link>
      <description>Ahmed,&lt;BR /&gt;&lt;BR /&gt;On a system installed with A.11.19, I just did this:&lt;BR /&gt;# cmmakepkg modularPkg.config&lt;BR /&gt;Package template is created.&lt;BR /&gt;This file must be edited before it can be used.&lt;BR /&gt;# grep ^#external modularPkg.config&lt;BR /&gt;#external_pre_script&lt;BR /&gt;#external_script&lt;BR /&gt;&lt;BR /&gt;If you don't find these references, it may be because you used switches (options) with cmmakepkg that restricted the modules loaded into the package configuration file.&lt;BR /&gt;Use my technique to create a new package configuration file and use that file for your package.</description>
      <pubDate>Mon, 14 Jun 2010 11:14:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/serviceguard-a-11-19-and-external-script/m-p/4644687#M666165</guid>
      <dc:creator>Stephen Doud</dc:creator>
      <dc:date>2010-06-14T11:14:33Z</dc:date>
    </item>
  </channel>
</rss>

