Please login or register. June 21, 2018, 04:03:29 AM

Author Topic: Finding the currently active node name.  (Read 9662 times)

0 Members and 1 Guest are viewing this topic.

gz3xzf

  • Jr. Member
  • **
  • Posts: 13
  • Karma: +0/-0
Finding the currently active node name.
« on: April 23, 2008, 04: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  :)

gz3xzf

  • Jr. Member
  • **
  • Posts: 13
  • Karma: +0/-0
Re: Finding the currently active node name.
« Reply #1 on: April 24, 2008, 02: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