Oracle® Solaris Cluster Geographic Edition Reference Manual

Exit Print View

Updated: July 2014, E39677-01
 
 

scgeo_partnership_get (1HA )

Name

scgeo_partnership_get - get information about a Geographic Edition partnership

Synopsis

scgeo_partnership_get -P partnership -p property [–d]

Description

The scgeo_partnership_get command accesses information about an Oracle Solaris Cluster Geographic Edition 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 (1HA) 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.

Options

The following options are supported:

–d

Specifies debug mode.

–P partnership

Indicates the partnership information to be accessed.

–p property

Specifies the name of a partnership property. See the geops(1M) 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.

Examples

Example 1 Using the scgeo_partnership_get Command to Query the clusterNamePartner1 Value of a Partnership

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
paris
Example 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

Exit Status

The following exit values are returned:

0

The command completed successfully.

1

A general usage error occurred.

100

An error occurred.

Failure error codes are described scha_calls (3HA) .

Files

/etc/cluster/ccr/global/pts_partnership-name

Contains CCR configuration information about the partnership-name partnership.

Attributes

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

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Availability
ha-cluster/geo/geo-framework
Interface Stability
Stable

See also

awk (1) , scha_cmds (1HA) , geops(1M), scha_calls (3HA) , attributes (5)