Operating System - HP-UX
1752661 Members
5448 Online
108788 Solutions
New Discussion юеВ

Identify cluster ip and Active node

 
MD.IMTEYAZUL HASSAN
Contributor

Identify cluster ip and Active node

Scenerio:
i have two Active/Active cluster node.each node running two seperate applications.
how can i identify the cluster ip and Active node.
can any body help me....
4 REPLIES 4
Amit Parui
Valued Contributor

Re: Identify cluster ip and Active node

Firstly do a cmviewcl -v, you will get the node status

Then check the /etc/cmlcuster/cluster config file and check the ip address of the cluster

otherwise you might also get it in the /etc/hosts file
If Life gives u a ROCK, its upto u to build a BRIDGE or a WALL !!!
Steven E. Protter
Exalted Contributor

Re: Identify cluster ip and Active node

Shalom,

I would use some version of the cmviewcl command.

You might also try traceroute and try and get the MAC address of the ip address assigned to float.

The question is whether you need to determine this from the outside or can log in to both nodes and use cmviewcl or other Service Guard Tools.

Knowing what IP address to connect to, is something you have to get from the package configuration file. It has to be hard coded there.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Jeeshan
Honored Contributor

Re: Identify cluster ip and Active node

apply command "cmviewcl", the out will show you the node name. and then ping that node name will show you the IP address.
a warrior never quits
G V R Shankar
Valued Contributor

Re: Identify cluster ip and Active node

Hi,

To start with there is nothing called cluster IP. I believe you are refering to package IP.

cmviewcl -v -p

The above will give you primary node and secondary node of the package.

Take the subnet from the above o/p

netstat -ni|grep -i

The interface which has lanX:1 is the package IP.

X is the PPA of LAN interface.

Second way

Check the package config file to see the primary and secondary node. Check the package control file for package IP.

Package config and control file are in /etc/cmcluster//

Cheers,
Ravi.