Operating System - HP-UX
1829586 Members
1906 Online
109992 Solutions
New Discussion

Re: SG failover package /Edit the control script

 
liubaoju
New Member

SG failover package /Edit the control script

I am a little new to MC/SG,We are going to setup a failover package that the control script to monitor a certain service.

I have created two file(*.cntl and *.conf) for my package,But when i tried to edit the control script i found i must write three SHELL script which monitor/run/halt my appointed service,Is that right?

It is high appreciated if you can shared those sample to me!
6 REPLIES 6
liubaoju
New Member

Re: SG failover package /Edit the control script

Or anyone can tell me how to write a monitoring script?

Thanks
Analyst
Trusted Contributor

Re: SG failover package /Edit the control script

Hi liubaoju

The purpose of package control script.package_name.cntl to take advantage of MetroCluster with Continuous Access XP .

kindly go thro'the link.

http://docs.hp.com/en/B7660-90001/ch03s04.html


Thanks,
Analyst.
Analyst
Trusted Contributor

Re: SG failover package /Edit the control script

liubaoju

>Serviceguard failover packages monitoring script

Already one thread is there.
plz close the thread.

Thanks,
Analyst.
liubaoju
New Member

Re: SG failover package /Edit the control script

Thanks for your reminder,Analyst.
But i am confused how can i write a monitor a appointed service.Can anyone give me some advise please?

Thanks in advance!
john123
Trusted Contributor

Re: SG failover package /Edit the control script

Here s one simple example;

#!/usr/bin/sh
PROCESS="process name"
POLL_INT=45
while
true
do
if
ps -ef | grep -v grep | grep "$PROCESS" >
/dev/null
then
sleep $POLL_INT
else
echo "process not running"
exit 1
fi
done
liubaoju
New Member

Re: SG failover package /Edit the control script

Thanks for all your help
Tread can be closed