1844208 Members
2661 Online
110229 Solutions
New Discussion

Re: Packages

 
SOLVED
Go to solution
khilari
Regular Advisor

Packages

Hi people, i just wanted to clear something up. When u make a package its basically just two files.
package configuration
and package contol script ( run/start script)
Now in the configuration template u just specify the packages different policies and all that and in control script u specify how to start a process and how to halt it.
So, when i am making a package for any application i just have to specify only these 2 ?. I mean if i am working with oracle package, i know there are different toolkits that make up the package. But the bottom line is that a package is only monitoring the processes of a particular application, nothing else. Because the data is in the shared volume...
I just want to make sure my understanding is right. Kindly comment on oracle pacakages or any package which needs a special toolkit. Also on my understanding.
Thanks alot.
5 REPLIES 5
Bharat Katkar
Honored Contributor
Solution

Re: Packages

Hi,
This is what this thread talks about.,
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=388526
Hope that helps.
Regards,
You need to know a lot to actually know how little you know
HGN
Honored Contributor

Re: Packages

Geoff Wild
Honored Contributor

Re: Packages

That is correct - of course when you apply the package - some info about it is inserted into the cluster binary file.

The toolkits just provide "canned" control scripts - so you don't have to re-invent the wheel so to speak.

You can also have a third file - a monitoring script - to monitor processess...

For example, I created a LP Spool package.

I have:

iprprt.cfg
iprprt.cntl
lp-script


My customer defined commands:

function customer_defined_run_cmds
{
# ADD customer defined run commands.
: # do nothing instruction, because a function must contain some command.
/etc/cmcluster/IPRPRT/lp-script start
test_return 51
}

function customer_defined_halt_cmds
{
# ADD customer defined halt commands.
: # do nothing instruction, because a function must contain some command.
/etc/cmcluster/IPRPRT/lp-script shut
test_return 52
}



In the cfg file:


SERVICE_NAME iprprtpkg_mon
SERVICE_FAIL_FAST_ENABLED NO
SERVICE_HALT_TIMEOUT 300



Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
khilari
Regular Advisor

Re: Packages

Thanks guys, can any one send me a working package configuration file and a control file. I want to see the different paarameters of something in a working environment.
And if any one could send me all the package files concerning oracle or any other package which has a toolkit that would automatically earn him a 10 :).
U guys are the best, thanks again.
Geoff Wild
Honored Contributor

Re: Packages

Here's a copy of my cntl file whioch starts Oracle/SAP - though it calls a script which is part of a toolkit - which must be purchased - so I can't include that script.

However, if all you want to do is start oracle, just modify the line:

/etc/cmcluster/IPRDBCI/sapdbci.cntl startDBCI IPR

to whatever you need to start oracle - something like:

su - oracle -c "start_all.sh"

Rgds...Geoff


Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.