Skip to main content
Question

Status of IndexCache using CLI/RestAPI/ ... is there a way to get it ?


Forum|alt.badge.img+1

Hello,

I’m looking a manner to get the IndexCache status using Command Line or RestAPI or qscript, qcommand … in order to automate  some maintenance tasks

Commvault version is 11.28.

6 replies

Forum|alt.badge.img+10

Forum|alt.badge.img+1
  • Author
  • Bit
  • 3 replies
  • August 31, 2023

Hello,
Thanks for your answer,  the API call works but it does not give the information I need

part of return about index cache : 

"indexCache": {

        "path": "/opt/commvault/MediaAgent/IndexCache",

        "logsCache": {

            "enabled": true,

            "path": "/var/tmp"

        }

    }

not the status of indexCache but only those of alternate path for Index log directory


Forum|alt.badge.img+10

@mchaussoy 

You can go to health report and go to the index cache location.

Copy the rest API from the report and pull the details.

 


Forum|alt.badge.img+1
  • Author
  • Bit
  • 3 replies
  • September 1, 2023

Hi,

the REST API provides a link on Commvault Cloud :

1/ not usable for a script on a server without web access

2/ the link is about report engine and dataset : not able to extract the information I need from this

https://cloud.commvault.com/webconsole/api/cr/reportsplusengine/datasets/96fe6756-89b7-46dd-84d4-1e173af94188:13a944d9-96b7-4c43-80e3-19622d922829/data/?offset=0&parameter.CommServUniqueId=136568&parameter.GroupId=-1&parameter.UseStoredPrediction=-1&parameter.sys_commcellGroupId=-1&limit=50
 

thanks for your efforts.


Forum|alt.badge.img+10

@mchaussoy 

You can use the report API using your webconsole URL as well. Example if you pull your health report from the Webconsole or Command center then it will redirect to your webconsole URL not to the cloud.commvault.com

https://localhost/webconsole/api/……..

Considering if your CS is acting as a webserver.


Forum|alt.badge.img+1
  • Author
  • Bit
  • 3 replies
  • September 1, 2023

Locally, health report is not the same :

  • no possibility to access REST API
  • not even the ability to view the full list of Media Agents (62  but only 2 printed)

 


Reply


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