Skip to main content
Solved

Fully automating client installs - assign storage policy & client group

  • 29 September 2022
  • 4 replies
  • 549 views

Forum|alt.badge.img+2

Hello all! 

I am trying to simplify installing agents for DBA’s and other app teams. I have created custom packages that can run silently, but by default I cannot assign things like storage policy to the specific agent. For example, an MSSQL custom package will install but no storage policy is assigned. 

What I’d like to do: 

  • DBA takes a custom package, runs the installer in “silent install” mode, server registers to the commserve. 
  • Storage policy is assigned to the discovered DB instances
  • Client computer group is assigned (which has a schedule connected to it)
  • Ideally run a first full backup after install completes (that’s a low priority)
  • Pulls latest client updates - maybe executes a workflow on itself? (I know I’m dreaming)

Is there a way to customize the install.xml file in the installer? Has someone done this post-install with a qscript or other means?

I am running 11.26.41 - and it seems some custom package options have gone away. 

Sorry, haven’t migrated to plans yet - but if this can be done in that world you’ll make me give that higher priority ;-)
 

Thanks in advance for your thoughts. 

Joel Bates

Best answer by Mike Struening RETIRED

Sure can!

Use an answer file in the custom package to set everything as needed:

https://documentation.commvault.com/2022e/expert/57500_customizing_answer_file_of_windows_custom_package.html

storagePolicyToUse

 

storagePolicyID

The ID of the storage policy that you want to assign to the default subclient.

storagePolicyName

The name of the storage policy that you want to assign to the default subclient of your client.

/CVInstallManager_ClientSetup/clientComposition/components/commonInfo/subclientPlanToUse/@planName

View original
Did this answer your question?

4 replies

Mike Struening
Vaulter
Forum|alt.badge.img+23
  • Vaulter
  • 4998 replies
  • Answer
  • September 29, 2022

Sure can!

Use an answer file in the custom package to set everything as needed:

https://documentation.commvault.com/2022e/expert/57500_customizing_answer_file_of_windows_custom_package.html

storagePolicyToUse

 

storagePolicyID

The ID of the storage policy that you want to assign to the default subclient.

storagePolicyName

The name of the storage policy that you want to assign to the default subclient of your client.

/CVInstallManager_ClientSetup/clientComposition/components/commonInfo/subclientPlanToUse/@planName


Forum|alt.badge.img+2
  • Author
  • Byte
  • 7 replies
  • September 30, 2022

Thank you Mike! That got me out of my hole.
I figured out how to retrieve the storagePolicyID from the API sandbox console. Is there a means to get the storagePolicyID using Powershell or another way? Or in the webconsole/java GUI? 

For those of us who are “API Noobs” like me, here’s how I got a dump of my storage policies and ID’s: 

  • go to https://[commserve-hostname]/webconsole/sandbox/ 
  • Log in from the Webservice APIs section on the left, enter username/pwd on the right. 
  • Go back to the left column and choose Webservice APIs > Storage Policy > Get a listing of all storage policies
  • In the center column, choose “Invoke” and observe the output in the “Response Body” field. 
  • To log out choose “Logout” from the left column and click “Invoke”. 

Look here for more documentation: 

https://documentation.commvault.com/v11/essential/45545_rest_api_test_environment.html

Thank you again Mr. Mike. :-)


Onno van den Berg
Commvault Certified Expert
Forum|alt.badge.img+19
  • Commvault Certified Expert
  • 1192 replies
  • September 30, 2022

Hi @Joel Bates!

I would like to bring a new 2022E capability to the feature called plan rules which allows you to dynamically assign clients to plans.
 

This gives a lot of flexibility and it is easy to setup.

Onno

 

 


Forum|alt.badge.img+2
  • Author
  • Byte
  • 7 replies
  • October 6, 2022

Updating this post, I also mentioned that I wanted to assign specific Client Groups to the install. After missing a typo error, I found the entry in the page Mike linked (https://documentation.commvault.com/2022e/expert/57500_customizing_answer_file_of_windows_custom_package.html). 

Quick instructions: 

Edit your install.xml file or add it to the sample_install_win.xml template. 

Locate the “<clientInfo>” section

Add the following code to your install.xml file:

<clientGroups clientGroupName=”Group1” />

Adding more than one group? Do this: 
<clientGroups clientGroupName=”Group1” />

<clientGroups clientGroupName=”Group2” />

<clientGroups clientGroupName=”Group3” />

etc…

When running the silent install, if it bombs out, take a look at the install.log file. It’ll be in one of these places: 

C:\ProgramData\Commvault Systems\Galaxy\LogFiles\Install.log  (hidden directory, file’s always there)

C:\Program Files\Commvault\ContentStore\Log Files\Install.log (usually later in the install process)

Thanks for the info I’ve gleaned from this forum overall. 

Joel


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings