scha_resourcetype_get -O optag -T type [-Z zone-cluster-name]
The scha_resourcetype_get command accesses information about a resource type that is registered with the Resource Group Manager ( RGM).
Use this command in shell script implementations of the callback methods for resource types that represent services that are controlled by the RGM . This command provides the same information as the scha_resourcetype_get() C function. For more information, see the scha_resourcetype_open(3HA) man page.
Information is output by this command to the standard output (stdout ) in formatted strings, as described in the scha_cmds(8HA) man page. Output is a string or several strings that are output on separate lines. You can store the output in shell variables. You can also parse the output by using the awk(1) command or other shell commands for further use by the script.
You need solaris.cluster.resource.read authorization to use this command. See the rbac(7) man page.
Authorized users can issue privileged Oracle Solaris Cluster commands on the command line from the pfsh(1), pfcsh(1), or pfksh(1) profile shell. A profile shell is a special kind of shell that enables you to access privileged Oracle Solaris Cluster commands that are assigned to the Oracle Solaris Cluster Commands rights profile. A profile shell is launched when you run su(8) to assume a role. You can also use pfexec(1) to issue privileged Oracle Solaris Cluster commands.
The following options are supported:
Indicates the information to be accessed.
The following optag values retrieve the corresponding resource type properties. The value of the named property of the resource's type is output.
API_VERSION BOOT FAILOVER FINI GLOBAL_ZONE INIT INIT_NODES INSTALLED_NODES IS_LOGICAL_HOSTNAME IS_SHARED_ADDRESS MONITOR_CHECK MONITOR_START MONITOR_STOP PKGLIST POSTNET_STOP PRENET_START PROXY RESOURCE_LIST RT_BASEDIR RT_DESCRIPTION RT_SYSTEM RT_VERSION SINGLE_INSTANCE START STOP UPDATE VALIDATE
Is the name of a resource type that is registered for use by the RGM cluster facility.
Specifies the cluster on which you want to operate. This option is applicable when the command is executed in the global zone but needs to operate on a specified zone cluster. It cannot be used within a zone cluster to access a different zone cluster.
Specifies that the query is to be performed in the zone cluster named zone-cluster-name.
If the –Z option is omitted, the query is performed in the cluster in which the command is executed.
The following exit values are returned:
The command completed successfully.
An error occurred.
Failure error codes are described scha_calls(3HA).
See attributes(7) for descriptions of the following attributes: