QHASM.CRG_CONFIGURATION_OBJECTS table function

The CRG_CONFIGURATION_OBJECTS table function returns details about configuration objects managed by a cluster resource group.

Authorization

The authorization ID of the statement must include the following privileges:

  • Authorization as required by PowerHA product functionality.

  • Input/output system configuration (*IOSYSCFG) special authority.

  • Allows access to the object attributes and use of the object(*USE) to the CRG object.

Parameters

QHASM.CRG_CONFIGURATION_OBJECTS ( CLUSTER_RESOURCE_GROUP => cluster-resource-group-name )

The schema is QHASM.

cluster-resource-group-name

Specifies the name of the cluster resource group.

Result Table

The result of the function is a table containing a row for each configuration object in the CRG with the format shown in the following table. This is only valid for device CRGs. An empty table is returned for other CRG types.

Column Name

Data Type

Description

Column Name

Data Type

Description

CLUSTER_RESOURCE_GROUP

VARCHAR(10)

The name of the cluster resource group

CONSISTENT_INFORMATION

VARCHAR(3)

Indicates whether or not the displayed information is consistent with other nodes in the cluster.

YES

The information is consistent for all active nodes in the cluster.

NO

The information retrieved from the node running the command may not be consistent with all the active nodes in the cluster. In order to obtain consistent information run the command on an active node, or start this node and run the command again.

CONFIGURATION_OBJECT

VARCHAR(10)

The configuration object name for a device entry. An example of this would be the auxiliary storage pool device description name.

OBJECT_TYPE

VARCHAR(10)

The type of configuration object specified with configuration object name.

*DEVD

A device description. The DEVICE_TYPE column indicates the type of device description.

*IPA

IP Address.

DEVICE_TYPE

VARCHAR(10)

Nullable

The type of device description.

ASP

An auxiliary storage pool device.

Contains the null value if there is no device type or if the OBJECT_TYPE is not of type *DEVD.

DEVICE_SUBTYPE

VARCHAR(10)

Nullable

UNKNOWN

The subtype cannot be determined because hardware configuration is not complete.

UDFS

UDFS independent auxiliary storage pool.

SECONDARY

Secondary independent auxiliary storage pool.

PRIMARY

Primary independent auxiliary storage pool.

Contains the null value if the device type does not have a subtype.

VARY_ONLINE

VARCHAR(10)

Indicates what configuration action to take when the cluster resource group is switched over or failed over to a backup node. Switchover and failover completion may be delayed if the varyon of devices takes a long time.

*OFFLINE

Remains varied off and leaves the server takeover IP address inactive

*CURRENT

For a configuration object of type *DEVD, preserves the VARY status of the configuration object and the status of the server takeover IP address. If the configuration object was online prior to the switchover or failover, the configuration object will vary on after the switchover of failover completes and will start the server takeover IP address. If the configuration object was offline prior to the switchover or failover, the configuration object will not vary on after the switchover or failover completes and will not start the server takeover IP address.

*ONLINE

Is varied on and starts the server takeover IP address.

For a configuration object of type *IPA, the IP address is also started when the cluster resource group is started, and ended when the cluster resource group is ended.

*PRIMARY

For a configuration object of type *DEVD, same as the associated primary auxiliary storage pool

SERVER_TAKEOVER_IP_ADDRESS

VARCHAR(45)Nullable

This is a takeover IP address for servers associated with the relational database name in the device description for an auxiliary storage pool, or the IP address for a configuration object with type *IPA. The address may be an IPv4 address or IPv6 address.

Contains the null value if no server takeover IP address is defined.

Examples

Example 1 - Get the list of configuration objects in a device CRG

The following example gets the list of configuration objects in the CRG named MYCRG.

SELECT CONFIGURATION_OBJECT, VARY_ONLINE, SERVER_TAKEOVER_IP_ADDRESS FROM TABLE(QHASM.CRG_CONFIGURATION_OBJECTS(CLUSTER_RESOURCE_GROUP => 'MYCRG'));

Example 1 - Sample Output

CONFIGURATION_OBJECT

VARY_ONLINE

SERVER_TAKEOVER_IP_ADDRESS

CONFIGURATION_OBJECT

VARY_ONLINE

SERVER_TAKEOVER_IP_ADDRESS

PRODIASP

*ONLINE

192.0.2.10

ARCHIVEASP

*PRIMARY

-

Example 2 - Get the list of IASP devices not in a cluster resource group

This example finds the list of IASP devices on the local system that are not in a cluster resource group.

SELECT ASPINFO.DEVICE_DESCRIPTION_NAME FROM QSYS2.ASP_INFO ASPINFO WHERE NOT EXISTS ( SELECT CONFIGURATION_OBJECT FROM (SELECT CLUSTER_RESOURCE_GROUP FROM QHASM.CRG_LIST WHERE CRG_TYPE = '*DEV') AS CRGLIST, TABLE(QHASM.CRG_CONFIGURATION_OBJECTS(CLUSTER_RESOURCE_GROUP => CRGLIST.CLUSTER_RESOURCE_GROUP)) CFGOBJ WHERE ASPINFO.DEVICE_DESCRIPTION_NAME = CFGOBJ.CONFIGURATION_OBJECT);

Example 2 - Sample Output

DEVICE_DESCRIPTION_NAME

DEVICE_DESCRIPTION_NAME

MYIASP

SQLSTATE Values

Errors and warnings returned by this function are returned as SQL state values. Possible SQLSTATE values returned by this view are:

SQLSTATE

Message

SQLSTATE

Message

22023

INVALID VALUE SPECIFIED FOR PARAMETER &1: &2

42501

NOT AUTHORIZED TO LIBRARY &1

42501

NOT AUTHORIZED TO OBJECT &1 IN &2

42502

CURRENT USER DOES NOT HAVE *IOSYSCFG SPECIAL AUTHORITY

42704

CLUSTER DOES NOT EXIST

42704

CLUSTER RESOURCE GROUP &1 DOES NOT EXIST

55019

THIS REQUEST IS NOT VALID FOR CLUSTER RESOURCE GROUP &1. THE REQUEST IS VALID ONLY FOR A DEVICE CLUSTER RESOURCE GROUP

560CR

NO VALID LICENSE FOR IBM POWERHA FOR I FOUND

560CR

POWERHA FOR I ENTERPRISE EDITION NOT INSTALLED ON NODE &1

560CR

GRACE PERIOD EXPIRED FOR POWERHA FOR I ENTERPRISE EDITION ON NODE &1

560CR

USAGE LIMIT EXCEEDED FOR POWERHA FOR I ENTERPRISE EDITION ON NODE &1

560CR

POWERHA FOR I STANDARD EDITION NOT INSTALLED ON NODE &1

560CR

GRACE PERIOD EXPIRED FOR POWERHA FOR I STANDARD EDITION ON NODE &1

560CR

USAGE LIMIT EXCEEDED FOR POWERHA FOR I STANDARD EDITION ON NODE &1

560CR

POWERHA FOR I STANDARD EXPRESS NOT INSTALLED ON NODE &1

560CR

GRACE PERIOD EXPIRED FOR POWERHA FOR I STANDARD EXPRESS ON NODE &1

560CR

USAGE LIMIT EXCEEDED FOR POWERHA FOR I STANDARD EXPRESS ON NODE &1

57012

CLUSTER RESOURCE SERVICES NOT ACTIVE OR NOT RESPONDING

57012

INFORMATION FOR CLUSTER RESOURCE GROUP &1 NOT AVAILABLE

58004

AN UNEXPECTED ERROR OCCURRED. SEE JOBLOG FOR MORE INFORMATION

Privacy Policy | Cookie Policy | Impressum
From time to time, this website may contain technical inaccuracies and we do not warrant the accuracy of any posted information.
Copyright © Fortra, LLC and its group of companies. All trademarks and registered trademarks are the property of their respective owners.