Skip to main content

Hello everyone, 

I am looking for an API call or CLI commands to update the path of the index cache in media agent. 

I am trying to write an Ansible playbook to update the index cache on commvault.  Any help is much appreciated. 

Thanks in advance. 

Arun KT

Hi ArunKT,

we have a workflow for updating IC path - https://documentation.commvault.com/commvault/v11/article?p=93278_1.htm

if you wanted to call taht workflow via API you can do that as well - https://docs.commvault.com/commvault/v11/article?p=49452.htm


Hi @ArunKT 

Moving an Index Cache path shouldn’t be undertaken lightly, but reviewing the documentation on making this change:

Changing the Location of the Index Cache Directory

This change is performed by running the running the Change Index Cache Configuration workflow, which could itself be triggered by command line or REST API:

Command Line - Workflows

REST API - Workflow Operations

Thanks,

Stuart


Thank you everyone for taking time to answer my query. Much appreciated. The information helped me to progress with my automation work. By the way, I could also find this API which I am currently testing with:

http://<host fqdn >/webconsole/api/V2/MediaAgents/<media agent id>

 

Kind Regards, 

Arun Kumar KT


Hi Arun you could also use change_index_cache(old_index_cache_pathnew_index_cache_path) on


Hi Ashuthosh, 

Thanks for taking time to respond. 

Are you refering to an API  to change the path? 

Where do I find this option? “ change_index_cache(old_index_cache_pathnew_index_cache_path) on”

Thanks in advance, 

Arun KT

 


Hi Arun check this out: https://commvault.github.io/cvpysdk/source/cvpysdk.html?highlight=index%20cache#cvpysdk.storage.MediaAgent.change_index_cache


Reply