Skip to main content

Hi All,

I am trying to automate the commvault setup, configuration and backup/restore procedure in our environment. We have chosen python sdk (cvpysdk) to do automation. I am not able to find any module for media agent installation in cvpysdk. Can anyone please please help me with the workaround? Even a CLI would help for automation. I am doing all the setip on windows client, hence need the cli/module for windows setup/configuration.

 

Thanks in advance.

Hi @Anjali ,

I’m not seeing anything in the GitHub: https://github.com/Commvault/cvpysdk

However, you can use the Save As Script function to get a handy editable script here:

https://documentation.commvault.com/2022e/expert/45435_save_as_script_overview.html

Let me know if this helps your needs!


The simplest solution is a permutation of what mike suggested. 

Do a save as using your install options, but rather than using the script save the xml, you can then run it using qoperation execute. This makes it agnostic, so you can use whatever tool you want to submit the request to the commserve. 

 

The details are here, but it’s really not all that clear. Just know that the XML needs to be in the body of the request.

https://documentation.commvault.com/2022e/essential/48618_rest_api_post_execute_qcommand.html

 

 


Reply