Platform Release Webinars (July 2026): Commvault Cloud SaaS and LTS 11.44
Discuss REST APIs, Workflows, PowerShell, scripting, customization, and more!
Recently active
I have a workflow that can be run by hand or called by another workflow.I need to be able to determine how the workflow was called. Does anyone know how to determine this?Thanks.
for me application json works ok but xml is returning, I’m using example from api.commvault], [ "System.Xml.XmlWhitespace", "System.Xml.XmlElement", "System.Xml.XmlWhitespace", "System.Xml.XmlElement", "System.Xml.XmlWhitespace"https://api.commvault.com/#89226552-b05f-423f-b951-79d8592a390b
Just to verify.The subjected workflow only exports settings for a stg policy but no action is done on the source commcell. Hence all backups etc.continues to work as before?//Henke
Is there a way to create a roport using powershell that includes the backup size. I've tried pulling information but all I see is application size, size on disk etc. I need to do this for physical and virtual machines.
Good morning. Our SQL administrators save their DB’s via a tool to produce flatfile backups to a share. We then backup that share using CV. I am wondering if there isn’t a canned script or set of regular expression “filters” we can have CV use to only grab the files that have been created or modified during a certain amount of time, say 72 hours for an example. That way when we run a full, or synthetic full, against that share our capacity license impact will be reduced.
Hello With Indexing v1 VSA clients, we cannot run multiple backup jobs on the same VMGroup. Is there a way that we can submit multiple backup jobs at the same time and each starts as soon as the other finishes. Maybe through RESTAPI? I tried looking at the BackupTask template but there is no field where we can specify DependsOn kind of field. Once one of the backup job is submitted the subsequent submissions can have this field and get triggered as soon as first job finishes. Is there any other way we can achieve this? Thanks
Hi All, I would like to ask for some better ideas than mine..In particular I need information if client has it’s backup activity enabled/disabled on client level and if so, collect it’s commcell name as we have 2 commcells in our environment. Also, client shouldn’t be deleted (greyed out in Java GUI).Here is the snippet of code to get the general idea for what I need. def check_config_on_client_level(self, cloud_vms): """This method will check if disabled for backups in cloud2 vm has backup enabled on client level in commvault""" bad_client_level_config_vms = [] for api in self.cs_url: api['headers']['Content-Type'] = 'application/json' for vm in cloud_vms: request = api['url'] + f"Client/byName(clientName='{vm['vm_name']}')" response = requests.get(request, headers=api['headers']) if response.status_code == 200: client_details = response.json() for vm_client
Hello So I am trying to access the api explorer.I have tried clicking the link in the command center however all I get is a certificate error and a white screen.I can however access the sandbox just fine.Any ideas as to what the issue may be? And could this be why I am unable to get a authentication token from the api?When running the python script for authentication it returns with login failed.I am master and system admin so there should not be any permissions missing regarding my user. Hopefully someone has any ideasThanks.
Hello, When I access the REST API via http://<<server>>:81/SearchSvc/CVWebService.svc/ it is working with all API commands, now I started to use REST API reports, like: http://<<server>>:81//webconsole/api/crreportsplusengine/datasets/ now I get a SSL error ssl.SSLError: [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1129)I send my requests via python 3.9 with ”requests.get(service, headers=headers)”commvault version 11.20.55any idea what is going wrong?thanksregards Jürgen
Hello,I need for a automation project get the last successful backup job of a subclient. I found last job of a client, but when we have SQL server with some instances the list of jobs are very long and exceed the limit 10000 as the list is not from newest to oldest, so I need all jobs to find the last JOB number. Any ID how I can get simply the last jobid of subclient?we have commcell with 11.20.55 running thanks for any help.regards Juergen
Hi! I was trying to create a script using python for VM and FS clients that are configured on our Commvault software.I’ve used several references (below is a sample) and used the sandbox APIhttps://documentation.commvault.com/11.24/essential/45898_rest_api_get_client_properties.html But, unfortunately, I can’t seem to find a more granular result. Like for example, I’ve used Get /Client/VMPseudoClient API, Get VMBrowse (but unable to find PseudoClientId and inventoryPath) ang Get ClientID (but I am also getting clients that were unlicensed already) but all operations does not give me the information I need. I need to get the VM subclients under active VSA Agent and also FS clients that are currently licensed and being backed up. Do you guys have any sample that I can refer to? Thanks a bunch!
Hi All,I tried to move 330 client with file system agent from one plan to another one associated with another gridstor.i tried not to do this manually, i have found the REST API PUT plan clients Commvault Rest API - Public that can update associations for one client.it is possible to use this API for a computer group ? Kind regards,Christophe
Hello al, i’m wondering how to add more of these green Squares to a connector for better formating.can you tell me how?Thanks and GreetingsJacob
Hello,I am new to CVPySDK and Ansible.I made successfuly a playbook which installation Agent on Linux machines.Now I try to update agent (push) from the commcell.I use the push_servicepack_and_hotfix method but it it returns an error 101 Response was not success.How could I have more detail to debug this error ? TASK [Push Service Packs and Hotfixes] ********************************************************************************************************************************************************************************An exception occurred during task execution. To see the full traceback, use -vvv. The error was: cvpysdk.exception.SDKException: Response was not successfatal: [localhost]: FAILED! => {"changed": false, "module_stderr": "Traceback (most recent call last):\n File \"/root/.ansible/tmp/ansible-tmp-1634128027.0540986-7125-68037601934166/AnsiballZ_commvault.py\", line 102, in <module>\n _ansiballz_main()\n File \"/root/.ansible/tmp/ansible-tmp-1634128027.0
What’s the proper way to inform Dev of a REST API call I’d like them to implement? Are CMRs the way to go, or is there a different channel? The reason I hope for a different channel is that my former TAM assured me Dev wants to know what REST API calls we want/need since they’re trying to wean us from calling SQL database tables directly, so I hope they’re showing their support for with with a specific way of asking. (If you’re wondering: I want ways to list subclients that, for example, are of a specific agent type. For that matter, I want a REST API call to show me the agent types in use in a CommCell. Both of these are in support of being to allow users to ask about backups of agent types they support.)
Hi All, Qscript in the link here started to fail randomly since yesterday for me..in both of our commcells..Could not understand why I have this issue, for fun sake I tried to copy paste from CV’s documentation, from -help section of qcommand - maybe after 5 months of succesfull everyday use somehow script decided for himself to mistype the command...lol - laughing through tears here when example in -help section in itself is faulty :) Same goes for API call, response code is ‘200’ - but in the response is one of CV generic resp codes, which is ‘2’. def get_commvault_clients(self): """This method returns all servers with backups in past 24 hours from DK1 and DK2 commcells""" job_history = [] for api in self.api_url: jobs_request = api["url"] + "ExecuteQCommand" jobs_response = requests.post( jobs_request, headers=api["headers"], timeout=3600, data="command=qoperation execscript -s
I had have read all CommVault documentation, made a lot of test/API requests as well, but I did not found way/module/API REST how to get information about Backup Job Attempts (only via reports)... I found curl -X GET "https://server/webconsole/api/Events?jobId=14285647" -H "accept: application/json", but all items are regarding Events Details. And I am still looking for any information about full backups attemps, can you advice me which PS module's part or API request is it ? regards,Juraj
Hi, Is it possible to bulk move tapes from one library to another? I know it’s possible to right click one tape at a time and select “Options → Move to Library” and then select the new library but it would be nice to be able to do this with more than one tape a time.The reason for this is that we would like to decom an old tape library that we are not using anymore - we have bought a smaller library with just one tape drive so we can restore from all of the tapes used in the old library - but if I de-configure the old library all the tapes will be put in to “Orphaned Media” it would be nice to just have them moved to the new library before de-configuring the old.Maybe it’s just for cosmetics as I guess we can still import a tape (to the new library) that has been moved to “Orphaned Media” and restore the content from it?
I’m using this example PS command from https://api.commvault.com/#432b936c-631e-da74-0678-5626f95dc944 to retrieve QSDK token I’m getting this error
We're running Commserver 11.22.9.I have a couple of quick question regarding the Restore-CVSQLDatabase PowerShell module.The command I'm testing is as follows (with parameters provided by caller)...$RestoreObject = Get-CVSQLDatabase –ClientName $SourceClient -InstanceName $SourceInstance -Name $SourceDBName | Restore-CVSQLDatabase -OutofPlace –OverwriteExisting -DestClientName $DestClient -DestInstanceName $DestInstance -DestDatabaseName $DestDBName -DataFilePath $DestDatafilePath -LogFilePath $DestLogFilePath -ForceIs documentation available that covers all available parameters? The doc site does not cover most of the parameters above. Is there a parameter providing for changing the physical datafile name and the physical logfile name? This functionality is available through the CV Command Center.Thanks for any help.
Hello Guys,i’m looking for a way to determine how much storage is in use by some of my clients, but i can’t find it.I found the Top 5 biggest servers by using the Command Center Dashboard so the information must be there. Can anyone give me a hint where to look?
Hi,i’m searching for an REST API to do a preview of a subclient (vmware) when a vmware tag or folder are added to the content configuration.When executing the API GET {{ServerUrl}}/v2/vsa/vmgroups/15521the result is :"planEntity": {}, "content": { "children": [ { "equalsOrNotEquals": true, "displayName": "OFF", "allOrAnyChildren": true, "type": 5, "path": "OFF", "name": "/Nd1/host/OFF" } even with the vmware tag *OFF* i get nothing.i would like to have the list of VM like the preview option.Please adviceKind regards,Christophe
how to automate items listed in file browse at the moment we have a tapeout process which puts some imoprtant files to tape every month end; when a new file is added; we have to manually verify what files went into the job by manually browsing the items; If there a way to run some sort of api/script to get this information on an excel sheet. Idea is to automate this check; rather than having to check 10 different jobs and see what files are in the tape via browse option; I want to run an api to get the list of files that were in the tape job
Hello,I want to rename a client via API, but it doesn’t want to work, I use following:http://testcommcell.xxx.com:81/SearchSvc/CVWebService.svc/Client/<ClientID>XML file looks like :<association> <entity> <clientName> "<cname>" </clientName> </entity> </association> <clientProperties> <clientEntity> <clientName> "<cname>_decom_07.10.2021" </clientName> </clientEntity> </clientProperties></App_SetClientPropertiesRequest>error : <Api_GenericResp errorMessage="Failed to set Client properties." errorCode="1" />Environment: V11SP20.55Any idea what I do wrong?regards Juergen
Hi Team,Is there any qcommands/scripts available to automatically raise the priority of the ndmp jobs of a filer?We have around 470 volumes that are being backed up for a site which are mostly long running backups. The schedule kicks in on every Tuesday and Friday and our operations team has to ensure that the previous week jobs complete before the new jobs kick in. In this case, they have to manually sort the jobs from previous week and increase the priority.Is there any way this can be automated or a workflow can be created to identify the previous weeks job for that filer and increase the priority?
Already have an account? Login
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.