I am new to HACMP V5.4 in AIX5.3.Please let me know how to get the virtual IP address configured for a HACMP cluster.
Is this the correct way to identify it?
If i give ifconfig -a the first ip address displayed is the real address of the host.So the other one can be VIP.
I guess you mean IP alias instead of "virtual IP address".
It depends in which state the cluster node is and if RGs are up. Usually production addresses are configured as alias when RGs are started. Else a cluster node has it's boot addresses configured which are usually permanent addresses, no aliases.
To get a glimpse at current active IP configuration, use:
/usr/es/sbin/cluster/clstat -o
Not sure if there is an easier way to distinguish what is an alias and what not, you can check with ifconfig -a, which adapter has more than 1 IP configured, example:
$> odmget -q "name = en5" CuAt
CuAt:
name = "en5"
attribute = "netaddr"
value = "10.10.30.111"
type = "R"
generic = "DU"
rep = "s"
nls_index = 4
CuAt:
name = "en5"
attribute = "netmask"
value = "255.255.255.0"
type = "R"
generic = "DU"
rep = "s"
nls_index = 8
CuAt:
name = "en5"
attribute = "state"
value = "up"
type = "R"
generic = "DU"
rep = "sl"
nls_index = 5
As you can see the address 10.10.29.111 showing up with ifconfig is not in the ODM. So this is the alias which is only configured on this cluster node, when the related RG (Resource Group) is activated.