GenericObject - getResultCountByPropertyCondition

GenericObject - getResultCountByPropertyCondition

Description :

This command retrieves a count of the class instances that match the condition specified by the conditionKey. You can create a conditionKey by using using the Condition : createPropertyConditionCLI command.

Return type : Integer

Command Input :

Variable Name

Variable Type

Description

conditionKey

DBKey

DBKey of the condition to be used.

Example

The following example shows you how to retrieve a count of the servers that match the condition specified by the conditionKey argument.

Script





CONDITION_DBKEY=`blcli Condition createPropertyConditionCLI "Class://SystemObject/Server" "DESCRIPTION" "does not equal" ""` 

GenericObject getResultCountByPropertyCondition $CONDITION_DBKEY 



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

Comments