ROOTVG

AIX => HACMP => Topic started by: gz3xzf on April 23, 2008, 05:45:24 PM



Title: Finding the currently active node name.
Post by: gz3xzf on April 23, 2008, 05:45:24 PM
I need to have a script running on a regular basis that is doing some housekeeping between the nodes in a cluster. The script should only be active on the standby node (i.e. simple two node cluster with IPAT). So I am looking for a command which will return the currently active node.

I know I can get this information from a clstat, but I wondered if there was a simple cluster utility that would return the information without the need to awk, grep and sed it out of a clstat display.

(I have done various searches on the web and this forum and come up with nothing....yet! ???)

Thanks in anticipation  :)


Title: Re: Finding the currently active node name.
Post by: gz3xzf on April 24, 2008, 03:14:40 PM
It's OK, I've found it, I knew it was there somewhere: -

clfindres
-----------------------------------------------------------------------------
Group Name     Group State                  Node
-----------------------------------------------------------------------------
my_rg       ONLINE                       fred1
               OFFLINE                      fred2