|
The scha_resource_get command accesses information
about a resource that is under the control of the Resource Group Manager (RGM) cluster facility. The resource information that can be accessed
includes properties of the resource's type.
scha_resource_get is intended to be used in shell
script implementations of the callback methods for resource types that represent
services controlled by the cluster's RGM. It provides the same information
as the scha_resource_get(3HA)
C function.
Information is output by the command to stdout in
formatted strings as described in scha_cmds(1HA).
Output is a string or several strings output on separate lines. The output
can be stored in shell variables and parsed using shell facilities or awk(1) for further
use by the script.
You need solaris.cluster.resource.read RBAC authorization
to use this command. See rbac(5).
You must also be able to assume a role to which the Sun Cluster Commands
rights profile has been assigned to use this command. Authorized users can
issue privileged Sun 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 Sun Cluster commands that are assigned to the Sun Cluster Commands
rights profile. A profile shell is launched when you run su(1m) to assume a role. You can
also use pfexec(1)
to issue privileged Sun Cluster commands.
|