Hi @christopherlecky,
I just sent you a private message with a link to download a qscript that you can use to achieve your goal. Typically we would suggest a Support Incident to be open to share qscripts, but we’ve worked together enough times that I know you are a very capable power user :)
The script I shared is called ‘ChangeDefaultSubclient.sqle’. I shared some examples of its usage in my private message, but to include here as well :
- Copy the script file to the location it will be executed from
- Perform a ‘qlogin’ to the command line interface
- Execute the script with the following syntax :
qscript -f ChangeDefaultSubclient.sqle -i "c=Client_Name" "a=Agent_Name" "i=Instance_Name" "b=BackupSet_Name" "s=New_Default_Subclient_Name"
For the Agent Name, we must refer to the following documentation to get the correct values for each of the supported agents :
https://documentation.commvault.com/2022e/expert/45467_command_line_faq.html
For example, a File System agent would be defined as Q_FILESYSTEM, Microsoft SQL Server would be Q_MSSQL, etc.
Additionally, the i=Instance_Name can be omitted for agents that don’t leverage an Instance (such as File System). This input is only needed for Database Agents, and any other agents that have the concept of an Instance.
Please let me know if you have any questions or run into snags, but this should give you what you need.
-Brian Bruno