Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

clu_is_member(3) [osf1 man page]

clu_is_member(3)					     Library Functions Manual						  clu_is_member(3)

NAME
clu_is_member, clu_is_ready - Determine whether the local system is currently a cluster member or has been configured to be a cluster mem- ber LIBRARY
Standard C Library (libc.so, libc.a) SYNOPSIS
#include <sys/clu.h> boolean_t clu_is_member (); boolean_t clu_is_ready (); DESCRIPTION
The clu_is_member function determines whether the local system is currently a cluster member (that is, the TruCluster Server software has been installed and configured, the system has booted a clusterized kernel, and the connection manager has allowed the system to join the cluster membership). The clu_is_ready function determines whether the local system has been configured to run in a cluster (that is, the TruCluster Server soft- ware has been installed and configured, and the system has booted a clusterized kernel). The clu_is_ready function is most useful to code that runs in the boot path before the connection manager establishes the cluster membership. RETURN VALUES
Upon completion, the clu_is_member function returns TRUE if the local system is currently a cluster member, FALSE otherwise. Upon completion, the clu_is_ready function returns TRUE if the local system has booted from a clusterized kernel, FALSE otherwise. RELATED INFORMATION
Functions: versw(3), clu_get_info(3) Commands: versw(8) delim off clu_is_member(3)

Check Out this Related Man Page

versw(3)						     Library Functions Manual							  versw(3)

NAME
versw, VERSW - Check the status of an operating system version switch on a single cluster member to determine whether the calling applica- tion can enable new features that are incompatible with the old version of the operating system LIBRARY
Standard C Library (libc.so, libc.a) SYNOPSIS
#include <sys/versw.h> #include <sys/clu.h> int VERSW(); int versw ( ulong high_vers, ulong low_vers ); PARAMETERS
Most significant ulong of new version ID. Least significant ulong of new version ID. DESCRIPTION
The VERSW() macro and versw() function check the status of a version switch on a single cluster member to determine whether the calling application can enable new features that are incompatible with the old version of the operating system. Applications can use the VERSW() macro to enable new features on cluster members participating in a rolling upgrade. The versw() function examines the versw_transition attribute of the generic subsystem of the member's /etc/sysconfigtab file and compares the specified high_vers and low_vers parameters to the new version of the running kernel. It then compares these parameters to the active version of the running kernel. The VERSW() macro provides a wrapper for the versw() function. Because the VERSW() macro automatically extracts the high and low version values from /usr/sys/conf/version.id, we recommend that you use it rather than call the versw() function directly. RETURN VALUES
Upon completion, the VERSW() macro and versw() function return one of the following values: A version switch is in progress and the speci- fied new version is greater than the active version of the running kernel. The calling application should disable new, incompatible fea- tures and respond to all requests for such features with an error condition. A version switch is in progess and the specified new version is less than or equal to new version of the running kernel, or a version switch is not in progress and the specified new version is less than or equal to the active version of the running kernel. The application can safely enable, and entertain requests for, all new features. A version switch is in progress and the specified new version is greater than the active version of the running kernel. The application should disable new, incompatible features. Although the application should respond to all requests for such features originating on the local member with an error condition, it should be prepared to handle requests for new, incompatible features originating from other clus- ter members with grace and elan. EXAMPLES
#include <stdio.h> #include <sys/versw.h> #include <sys/clu.h> main() { if(VERSW() == VERSW_ENABLE) printf("Enable new features "); else printf("Disable new features "); endif } FILES
Rolling upgrade blocking conditions directory. Version switch header file. High and low version values used by VERSW() macro. RELATED INFORMATION
Functions: clu_is_member(3), clu_get_info(3) Commands: versw(8) delim off versw(3)
Man Page