It is sometimes useful to know how many Systems Management Server resources are contained in a collection or query. This article demonstrates how to find out.
Steps to Determine the Number of Resources Within a Collection
- Open the SMS Administrator console and navigate to the Collections folder.
- Right-click a collection.
- Select All Tasks, and then select Update Collection Membership. Wait for the membership update to finish updating.
- Right-click the same collection, and then click Show Count.
The Show Count dialog box should appear and display the following message:
Total Number of resources in collection is <I>[x]</I>
Steps to Determine the Number of Resources Within a Query
In order to determine the number of resources within a query, you must first turn the query into a collection. To turn a query into a collection, follow these steps:
- Right-click the Collections folder, point to New, and then click Collection.
- Type a name for the collection.
- On the Membership Rules tab, click Query Rules Property to add a query to the membership rules.
- In the Query Rule Properties dialog box, click Browse, and then select the query for which you want to get a count.
- Click OK three times to complete creation of the new collection.
- Perform the steps that are listed in the first procedure in this section to determine the number of resources that are in your new collection.