This documentation supports the 9.1 to 9.1 Service Pack 3 version and its patches of BMC Atrium Core. The documentation for version 9.1.04 and its patches is available here.

To view the latest version, select the version from the Product version menu.

CMDBQueryCardinality structure

The CMDBQueryCardinality structure holds the range definition for the relationship to walk in the query. If you require the CMDBQueryByPath function to return all BMC_ComputerSystem CIs that are connected to three or less BMC_DiskDrive CIs, set the minCount member to 1 and the MaxCount member to 3.


typedef struct CMDBQueryCardinality
{
   int minCount;
   int maxCount;
}CMDBQueryCardinality;



The CMDBQueryCardinality structure consists of the following elements:

minCount

.An integer value indicating the minimum number of CI endpoints to match for a given CI in the query. A value of zero for this member indicates that the query qualification will be ignored and only the CI specified in the selection criteria will be returned.

For example, if you require the query to return all BMC_ComputerSystem CIs that are connected to one or less BMC_Printer CIs, set the minCount member to 0.

maxCount

.An integer value indicating the maximum number of CI endpoints to match for a given CI in the query. Specify a value in this member that is greater than minCount.

For example, if you require the query to return all BMC_ComputerSystem CIs that are connected to five or less BMC_Printer CIs, set the maxCount member to 5. If you set maxCount to 0, the query will yield incorrect results.

Was this page helpful? Yes No Submitting... Thank you

Comments