start application server regarding node on hacmp..

let me see if I explain better..;)

I have  powerha 6.1 clusterwith  node1 and node2 on site A... and node3 on siteB...my application server has two scripts (start and stop) as you can see:

                                                                Change/Show Application Server

Type or select values in entry fields.
Press Enter AFTER making all desired changes.

                                                        [Entry Fields]
  Server Name                                         app
  New Server Name                                    [app]
  Start Script                                       [/tools/scripts/sc1.sh start]
  Stop Script                                        [/tools/scripts/sc1.sh stop]

Open in new window


So.. I want to change these start/stop scripts regarding the node and site... I mean:

If I have the resource group on node1 and node2 (site A) use the above application server, but If the resource group is sent to node3 (site B) I would like to use a new application server with two new start/stop scripts...

is this possible in hacmp?
sminfoAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

sjm_eeCommented:
The scripts have to be the same on each node but if you really want you could have the script check what node it is executing on and do something different in each case.
0
sminfoAuthor Commented:
but, the change would be only when the RG change from one site to another... I've searched ibm but could found a way to do this from powerha...
0
woolmilkporcCommented:
Hi,

you can well have several application servers per resource group, but as far as I know there is no method built into HACMP 5/6 to start just selected application servers depending on the current node.

As sjm_ee wrote, you can modify the start scripts to test for the current node/site

/usr/es/sbin/cluster/utilities/cllsnode

shows the executing node, and

/usr/es/sbin/cluster/utilities/cllssite

shows the site.

So you could create two application servers, each with its own set of scripts, and you could add some logic using the above command(s) to terminate the respective script (i.e. to avoid starting the application) on an undesired node.

[[ $(/usr/es/sbin/cluster/utilities/cllsnode) != "mynode" ]] && exit

in the first line of the respective start/stop script.

Please note that the resource group must contain all resources to allow successful starting of all configured application servers.


wmp
0
Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

woolmilkporcCommented:
>> I've searched ibm but could found a way to do this from powerha..<<
What exactly did you find?

I fear you're talking about configuring resource groups (this can indeed be done in node-specific way) but not about application servers.
0
sminfoAuthor Commented:
hi.. sorry the delay.... got the idea sjm_ee and wmp... I have an idea how I'm going to change our start/stop scripts depending the node/site he is... just curious wmp.. cllsnode shows in my case the 3 nodes:

NODE node1:
        Interfaces to network net_XD_data_01
                Communication Interface: Name node1data, Attribute public, IP address 172.17.36.73
        Interfaces to network net_ether_01
                Communication Interface: Name node1, Attribute public, IP address 172.17.32.101
                Communication Interface: Name sitearans, Attribute public, IP address 172.17.32.105
                Communication Interface: Name siter37, Attribute public, IP address 172.16.32.105

NODE node2:
        Interfaces to network net_XD_data_01
                Communication Interface: Name node2data, Attribute public, IP address 172.17.36.74
        Interfaces to network net_ether_01
                Communication Interface: Name node2, Attribute public, IP address 172.17.32.102
                Communication Interface: Name sitearans, Attribute public, IP address 172.17.32.105
                Communication Interface: Name siter37, Attribute public, IP address 172.16.32.105

NODE node3:
        Interfaces to network net_XD_data_01
                Communication Interface: Name node3data, Attribute public, IP address 172.16.36.73
        Interfaces to network net_ether_01
                Communication Interface: Name node3, Attribute public, IP address 172.16.32.101
                Communication Interface: Name sitearans, Attribute public, IP address 172.17.32.105
                Communication Interface: Name siter37, Attribute public, IP address 172.16.32.105

Open in new window


We have powerha with 3 nodes, 2 nodes on siteA and 1 node on siteB.  this output of cllsnode is what you see on your side?
0
sminfoAuthor Commented:
>> I've searched ibm but could found a way to do this from powerha..<<
What exactly did you find?

I thought powerha had something to change application servers, but I see it does not..

But teh answer has been answer, you both have gave me the idea to achieve my goal on our application server.. ;)
0
woolmilkporcCommented:
Hi again,

you're right, of course - I must have been quite brainless when suggesting "cllsnode", sorry!

The right command is

/usr/es/sbin/cluster/utilities/get_local_nodename

Sorry again!

wmp
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
sminfoAuthor Commented:
No, no problem at all wmp... what's important is the idea and not the commands to do it... ;)
Thanks again..

Thanks sjm_ee..
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.