Sun Microsystems, Inc.
   www.sun.com docs.sun.com | | |  
   
A  B  C  D  E  F  G  H  I  J  K  L  M  N  O  P  Q  R  S  T  U  V  W  X  Y  Z  
    
 
Sun Cluster Commandsscha_cmds(1HA)


NAME

 scha_cmds - command standard output for scha_cluster_get, scha_control, scha_resource_get, scha_resourcegroup_get, scha_resourcetype_get

SYNOPSIS

  scha_command -O optag ...

DESCRIPTION

 

The Sun Cluster scha_cluster_get(1HA), scha_control(1HA), scha_resource_get(1HA), scha_resourcegroup_get(1HA), and scha_resourcetype_get(1HA), commands are in shell script implementations of the callback methods for resource types. See rt_callbacks(1HA).

Resource types represent services that are controlled by the cluster's Resource Group Manager (RGM) facility. These commands provide a shell interface to the functionality of the scha_calls(3HA) C functions.

The get commands access cluster configuration information and all have the same general interface in that they take an -O optag operand that indicates the information to be accessed and outputs the results to standard output as formatted strings. Additional arguments might be needed depending on the command and optag. For information regarding the format for different optag results, see the Results Format section. The recognition of optag values is case-insensitive for all of the scha commands.

The scha_control(1HA) command also takes an -O optag option that indicates a control operation, but does not produce output to standard output.

Result Formats

 

The format of strings output to standard output by the commands depends on the type of the result indicated by the optag given as the -O argument. Formats for each type are specified in the following table. Format notation is described in formats(5).

Result Typestandard output Format
string"%s\n"
int"%d\n"
unsigned_int"%u\n"
boolean"TRUE\n" or "FALSE\n"
enum"%s\n". The string name of an enum value
string_arrayEach element in the array is output in the format "%s\n". An asterisk, indicating all nodes or resources, can be returned for the INSTALLED_NODES and GLOBAL_RESOURCES_USED properties.
unsigned_int_arrayEach element in the array is output in the format "%u\n"
extension"%s\n". The type attribute of the extension property - one of STRING,INT, BOOLEAN, ENUM, or STRINGARRAY. Following the type inforation, the property value is output according to the formats for each type as follows: STRING as string, INT as int, BOOLEAN as boolean, ENUM as enum, STRINGARRAY as string_array
status"%s\n%s\n". The first string is the status - one of the status enum values: OK, OFFLINE, FAULTED, DEGRADED, or UNKNOWN. The second string is the status message

Optag Result Types

 

The following table specifies the optags for different commands as well as the type of the result that is output according to the formats specified in the previous table.

optags for scha_cluster_get1HA Result Type
NODENAME_LOCALstring
NODENAME_NODEIDstring
ALL_NODENAMESstring_array
NODEID_LOCALunsigned_int
NODEID_NODENAMEunsigned_int
ALL_NODEIDSunsigned_int_array
PRIVATELINK_HOSTNAME_LOCALstring
PRIVATELINK_HOSTNAME_NODEstring
ALL_PRIVATELINK_HOSTNAMESstring_array
NODESTATE_LOCALenum - UP, DOWN
NODESTATE_NODEenum - UP, DOWN
SYSLOG_FACILITYint
ALL_RESOURCEGROUPSstring_array
ALL_RESOURCETYPESstring_array
CLUSTERNAMEstring
optags for scha_control1HA
GIVEOVER
RESTART
CHECK_GIVEOVER
CHECK_RESTART
optags for scha_resource_get1HA Result Type
R_DESCRIPTIONstring
TYPEstring
ON_OFF_SWITCHenum - DISABLED, ENABLED
MONITORED_SWITCHenum - DISABLED, ENABLED
RESOURCE_STATEenum - ONLINE, OFFLINE, START_FAILED, STOP_FAILED. MONITOR_FAILED, ONLINE_NOT_MONITORED
CHEAP_PROBE_INTERVALint
THOROUGH_PROBE_INTERVALint
RETRY_COUNTint
RETRY_INTERVALint
FAILOVER_MODEenum - NONE, HARD, SOFT
RESOURCE_DEPENDENCIESstring_array
RESOURCE_DEPENDENCIES_WEAKstring_array
LOGICAL_HOSTNAMES_USEDstring_array
STATUSstatus
START_TIMEOUTint
STOP_TIMEOUTint
VALIDATE_TIMEOUTint
UPDATE_TIMEOUTint
INIT_TIMEOUTint
FINI_TIMEOUTint
BOOT_TIMEOUTint
MONITOR_START_TIMEOUTint
MONITOR_STOP_TIMEOUTint
MONITOR_CHECK_TIMEOUTint
PRENET_START_TIMEOUTint
POSTNET_STOP_TIMEOUTint
STATUS_NODEstatus
RESOURCE_STATE_NODEenum - see RESOURCE_STATE for values
EXTENSIONextension
ALL_EXTENSIONSstring_array
GROUPstring
optags for scha_resource_get1HA and scha_resourcetype_get1HA Result Type
RT_DESCRIPTIONstring
RT_BASEDIRstring
SINGLE_INSTANCEboolean
INIT_NODESenum - RG_PRIMARIES, RT_INSTALLED_NODES
INSTALLED_NODESstring_array. An asterisk is returned to indicate all nodes.
FAILOVERboolean
API_VERSIONint
RT_VERSIONstring
PKGLISTstring_array
STARTstring
STOPstring
VALIDATEstring
UPDATEstring
INITstring
FINIstring
BOOTstring
MONITOR_STARTstring
MONITOR_STOPstring
MONITOR_CHECKstring
PRENET_STARTstring
POSTNET_STOPstring
IS_LOGICAL_HOSTNAMEboolean
IS_SHARED_ADDRESSboolean
optags for scha_resourcegroup_get1HA Result Type
RG_DESCRIPTIONstring
NODELISTstring_array
MAXIMUM_PRIMARIESint
DESIRED_PRIMARIESint
FAILBACKboolean
RESOURCE_LISTstring_array
RG_STATEenum - UNMANAGED, ONLINE, OFFLINE, PENDING_ONLINE, PENDING_OFFLINE, ERROR_STOP_FAILED
RG_DEPENDENCIESstring_array
GLOBAL_RESOURCES_USEDstring_array. An asterisk is returned to indicate all resources.
LOGICAL_HOSTboolean
PATHPREFIXstring
RG_STATE_NODEenum - see RG_STATE for values

EXIT STATUS

 

There is one set of exit values for all scha commands.

The exit values are the numeric values of the scha_err_t() return codes of the corresponding C functions as described in scha_calls(3HA).


ATTRIBUTES

 

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPEATTRIBUTE VALUE
AvailabilitySUNWscdev
Interface StabilityStable

SEE ALSO

 

awk(1), sh(1), rt_callbacks(1HA), scha_cluster_get(1HA), scha_control(1HA), scha_resource_get(1HA), scha_resourcegroup_get(1HA), scha_resourcetype_get(1HA), scha_calls(3HA), formats(5)



Sun Cluster 3.1Go To TopLast Changed 26 Apr 2002

 
      
      
Copyright 2003 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.