Operating System - HP-UX
1827807 Members
2265 Online
109969 Solutions
New Discussion

Re: cluster command questions

 
Steve Horvath
Frequent Advisor

cluster command questions

Hi,

I haven't used service guard in a while, I was wondering if there's a command that returns the floating hostname? I need to
determine if a system is a cluster in a script, for another reason, right now I'm doing:

FNAME=`ls -tr /etc/cmcluster/*/*.cntl | cut -d'/' -f5 | cut -d'.' -f1`

I'd like a more reliable way in case file naming conventions change. Any advice appreciated!

Thanks,
Steve
2 REPLIES 2
Sridhar Bhaskarla
Honored Contributor

Re: cluster command questions

Hi Steve,

I rely on 'cmviewcl' command. For ex., 'cmviewcl -l package' will give the information about packages and their corresponding node information even if the cluster is down. You can also use 'cmgetconf' but it can take a long time.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
A. Clay Stephenson
Acclaimed Contributor

Re: cluster command questions

I would build a filter around the cmviewcl command. For example cmviewcl -n mynode will return a non-zero exit status if mynode is not a cluster member. You can also use it to list packages. Man cmviewcl for details.
If it ain't broke, I can fix that.