scgeo_partnership_get -P partnership -p property [–d]
The scgeo_partnership_get command accesses information about an Oracle Solaris Cluster disaster recovery framework partnership.
Use this command in shell script implementations of the callback methods for partnerships.
The property names do not constitute a fixed interface. Some knowledge of the data stored in the Cluster Configuration Repository (CCR) is required, in particular the /etc/cluster/ccr/global/pts_partnership-name file.
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 must be root to use this command.
The following options are supported:
Specifies debug mode.
Indicates the partnership information to be accessed.
Specifies the name of a partnership property. See the geops(8) man page for information about partnership properties.
However, property names do not constitute a fixed interface. Some knowledge of the data stored in the Cluster Configuration Repository (CCR) is required, in particular the /etc/cluster/ccr/global/pts_partnership-name file.
Use the following command to retrieve the name of the primary cluster in the paris-london partnership, which is paris.
# /usr/cluster/lib/geo/lib/scgeo_partnership_get -P paris-london -p clusterNamePartner1 parisExample 2 Using the scgeo_partnership_get Command to Query a Property of a Partnership
Use the following command to retrieve the value of the requestTimeout property of the paris-london partnership.
# /usr/cluster/lib/geo/lib/scgeo_partnership_get -P paris-london -p requestTimeout 30000
The following exit values are returned:
The command completed successfully.
A general usage error occurred.
An error occurred.
Failure error codes are described scha_calls(3HA).
Contains CCR configuration information about the partnership-name partnership.
See attributes(7) for descriptions of the following attributes: