Skip to main content
Answer

Need an API or CLI commands to update the path of the index cache in media agent.

  • March 15, 2021
  • 6 replies
  • 170 views

Forum|alt.badge.img+1

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

Best answer by Gseibak

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

6 replies

Forum|alt.badge.img+11
  • Vaulter
  • Answer
  • March 15, 2021

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


Forum|alt.badge.img+15

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


Forum|alt.badge.img+1
  • Author
  • March 17, 2021

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


neuwiesener
Byte
Forum|alt.badge.img+7

Hi Arun you could also use change_index_cache(old_index_cache_pathnew_index_cache_path) on


Forum|alt.badge.img+1
  • Author
  • March 18, 2021

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

 


neuwiesener
Byte
Forum|alt.badge.img+7