After downloading, from within the cvpysdk directory, execute:
>>> python setup.py install
Thanks,
Stuart
Thanks for the response Stuart!
As I indicated in my initial post, I have already installed using the PIP method and I am am able to run the scripts from the python prompt.
I may be wrong but I thought that the “python setup.py install” command was to be used only if downloading directly. I cannot find “setup.py” in the cvpysdk directory after installing using PIP.
I have just attempted following those steps myself on a default lab Commserve and I’m seeing the same as you - there is no setup.py in the cvpysdk directory.
I’ll follow this up internally to see what the process is here.
From the error message, it looks like the python commvault module isn’t fully registered, which I’m assuming should be performed by the setup script, but as we are both seeing this isn’t present in the directory.
Looks like the commvault ansible module is not detected by ansible. This module is a local module and is not automatically added to the ansible library. You might have to add this to the ANSIBLE_LIBRARY environment variable. For details refer to https://docs.ansible.com/ansible/latest/dev_guide/developing_locally.html
Or you can also clone the commvault ansible module and use it exactly the same way, having library directory in the current working directory. So if your file is cv_backup.yaml then your folder structure should be like
I was able to solve it on my own. I had ended up creating Commvault’s python file and ansible.cfg in ansiblevenv\library folder and voila it worked like a charm!!
Hi Wondering if Commvault has any module in ansible to support Server restore rather than just files restore. Currently below is what I am using to restore a file in ansible.
First and foremost thank you for your continuous community support. With the help of yours as the bare metal restore was done. We would like to start automating backup and restores (on demand) using ansible, so that it can be part of a deployment pipeline as needed.
In this regards, can anyone help to let me know if there is any module for IBM Db2 LUW backup and restore modules?
First and foremost thank you for your continuous community support. With the help of yours as the bare metal restore was done. We would like to start automating backup and restores (on demand) using ansible, so that it can be part of a deployment pipeline as needed.
In this regards, can anyone help to let me know if there is any module for IBM Db2 LUW backup and restore modules?
We use 3 different kinds of cookies. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select. Learn more about our cookies.