How to bulk update vRA Data collection interval and Enable/Disable data collection
search cancel

How to bulk update vRA Data collection interval and Enable/Disable data collection

book

Article ID: 336722

calendar_today

Updated On:

Products

VMware Aria Suite

Issue/Introduction

This KB article provides a process to bulk update the data collection interval using a stored procedure against the IaaS SQL database. Use this procedure if you want to update the data collection frequency in vRA for large number of compute resources.

Environment

VMware vRealize Automation 7.x

Resolution

To bulk update the data collection interval:
  1. Download the attached stored procedure, 53119_vRA_bulk_update_collection.sql.
  2. Launch SQL Management Studio and connect to the vRA IaaS database
  3. Open 53119_vRA_bulk_update_collection.sql and execute to create the stored procedure, vmware_utility_vRA_bulk_update_collection_frequency.
  4. Execute the stored procedure with the below query and options.
    • exec [dbo].[vmware_utility_vRA_bulk_update_collection_frequency]

      Run this without any options to display help for the stored procedure.
       
    • Additional arguments
      • @ComputeResourceLike - Use this input parameter to specify the compute resources you wish to change the collection frequency for. You can use SQL wildcards used with LIKE where clause

        Example: @ComputeResourceLike = '%abc%' --will update all compute resources with abc somewhere in the name.

        @ComputeResourceLike = 'abc%'  --will update all compute resources that start with abc in the name.

        @ComputeResourceLike = 'abc' --will update all compute resources named exactly abc.
         
      • @DataCollectionType = '<type>' --must be one of these three types: Inventory, State, or Performance.
         
      • @FrequencyMinutes = '<frequency_in_minutes>' --frequency in minutes. Note that for Inventory and Performance collection types this must be in multiples of 60. 60 = 1 hour, 120 = 2 hours, and so on.

        Note: To set the Frequency to the Default value pass -1 as <frequency_in_minutes>. Set to NULL or do not pass the parameter to not change and leave collection frequency as currently set.
    • @CommitChanges = '<value>' --set this value to 1 to actually make the changes. For any other value the changes will not be made, but rather the procedure will output the "Current" values

      Note: Only change this value to '1' after a dry run has been performed and updated values have been confirmed.
  5. @EnableDisableCollection - Set this value to 1 to Enable, 0 to Disable. Set to NULL or do not pass the parameter to not change and leave collection enable/disable as currently set.


Additional Information

Impact/Risks:
When directly modifying the database, there is always a chance for data loss. Ensure to take a backup of the IaaS SQL database before making any modifications.

Attachments

53119_vRA_bulk_update_collection_V2.sql get_app