Skip to main content
Solved

media agent installation using cvpysdk


Forum|alt.badge.img+1

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.

Best answer by Mike Struening RETIRED

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!

View original
Did this answer your question?

2 replies

Mike Struening
Vaulter
Forum|alt.badge.img+23

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!


christopherlecky
Byte
Forum|alt.badge.img+16

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

 

 


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