Operating System - HP-UX
1830939 Members
2883 Online
110017 Solutions
New Discussion

Re: How to edit external.sh for to run customer specific scripts

 
Aji Thomas
Regular Advisor

How to edit external.sh for to run customer specific scripts

Hi Guys,

We have MCGS 11.18 running on two node Hp_UX 11.23 server cluster.

We have oracle 10g database running on top of oracle clusterware.

We are in need to have custom scripts for package A, before halting, and specific scripts to run after starting

Please advice,
Aji
5 REPLIES 5
Turgay Cavdar
Honored Contributor

Re: How to edit external.sh for to run customer specific scripts

In the package control file, define your scripts in customer_defined_run_cmds for startup scripts, define your scripts in customer_defined_halt_cmds for halt scripts.
Stephen Doud
Honored Contributor

Re: How to edit external.sh for to run customer specific scripts

External.sh infers that you configured your packages as modular packages.

at this site:
http://docs.hp.com/en/ha.html
under the section titled "Enterprise Cluster Master Toolkit" is a document titled
"Enterprise Cluster Master Toolkit Version B.05.00 Release Notes"
It indicates support for modular packages (pg 5) as well as
â ¢ Support for Oracle 11g R1
â ¢ Support for Oracle 10g R2 ASM
â ¢ Support for Oracle 11g R1 ASM on Itanium servers.


Also under the section titled: "Serviceguard Extension for Real Application Cluster (ServiceGuard OPS Edition)", there is a doc that discusses the implementation of the toolkit with Clusterware:

"Use of Serviceguard Extension for RAC Toolkit with Oracle RAC 10g Release 2 or later (March 2009)"
Aji Thomas
Regular Advisor

Re: How to edit external.sh for to run customer specific scripts

HI,

Thanks for the updates.
We are having modular package scripts.

Basically we have some custom applications to be started after the cluster packages are up and needs to be shutdown before package halt.

Post of cluster start and pre of cluster stop
we need to run apps_start.sh and apps_stop.sh respectively

Please advice,
Aji
Rita C Workman
Honored Contributor

Re: How to edit external.sh for to run customer specific scripts

Excuse me please, but based on your last comments, why can't you simply put that within the package using the Customer Defined Start/Stop sections?

We kick off our Oracle and any other extraneous software with those sections with no issues. They come up after the mountpoints are up (using Start section & the scripts we have run in order of need) and we halt the software and Oracle (using the Shutdown section & our scripts to stop things) prior to the package dismounting the file systems and halting.

Guess I'm missing something in what your trying to do.....cause the cntl file will do what you seem to need.

Rgrds,
Rita
Aji Thomas
Regular Advisor

Re: How to edit external.sh for to run customer specific scripts

Hi Thanks for the update.

After moving to modalar approach, we dont have the customer defined custom approach, instead we have external scripts called within package modalar control scripts.

Yes, we need to run generic scripts, cud someone give a sample external.sh script file as to how to achieve this.

Please advice,
AJi