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 subclient job that runs ever night at 11pm. The job completes at different times the next day. Anywhere from 8am to 4pm depending on other backup jobs.I have a job summary report I built to show the files that were backed up. I need this report to launch after the specific subclient job has completed each day. I tried using the subclient post job script but because its a job summary report it does not show the files just backed up because the job is still open. Need suggestion or direction how to get Commvault to check and notice when the backup has completed and run report. Thank you
I am working on a workflow that will, among other pieces, suspend all running jobs and then execute a command on each CV infrastructure server. However, I’m having trouble with two aspects of this. First: I have been unable to force the script to wait until all jobs have actually suspended before continuing on to the next steps. It executes the command, and all jobs suspend, but the next step still happens even while there are jobs in “Suspend Pending” status. How can I force the workflow to pause/hold until all jobs are suspended?Second: I have a Client Computer Group created that contains all of the servers on which I’m wanting to execute the script. How do I program into the workflow to automatically choose that group?
Hi All,I imported the “Client monthly growth report” from store in command center. When I opened the report, then it says that no records\data available. In settings I’m keeping client metadata for 84 days. It should show me the comparison for 2-3 months of each client. Any suggestions?
Hi Community, This is for the workflow guys. I’m trying to implement something to automate a VM power on/off, the VM is VMware based (ESXi) and is an MA.I want my scenario to be something like this, when the VM is powered OFF :Check readiness of the VM. If the VM is powered off, then power it on. Execute my aux copy When job finished successfully, power off the VM.Some needed workflows required some inputs, that I struggle where I can find them, like the ones below :Any help or recommendation on how to implement this would be appreciated. Regards
For example:I have a SQL Server, were I want the File system backups to go to policy a, the sql data to policy b, and the sql logs to policy c.This obviously cannot be done in the QUI, but can it done via rest? Thanks.Chris.
Hello, Would anybody know how to troubleshoot 403 forbidden API error? I am trying to acquire QSDK token, well basically to login, to continue my queries, but it straight away gives out 403 error. I don’t even see the attempt in webserver.log of commcell to which I query for QSDK token..Ports 80,443 are open and working correctly, all firewalls are allowed.. I am not even sure where to check. auth[‘url] variable is: http://ipaddressofcommcell/webconsole/api/self.cs_login_url variable is: '<DM2ContentIndexing_CheckCredentialReq mode="Webconsole" username="<<username>>" password="<<password>>" />' Does not matter what credentials I use, I’ve tried admin account of commcell, I’ve tried my own domain account, with all of them I can login to JAVA GUI with no issues. Any ideas where to start looking?
Hello community, I found an article in the documentation - but I can't find the workflow described in this documentation to download.Does anyone know where to download it? https://documentation.commvault.com/hitachivantara/v11/expert/117000_verifying_archived_files_using_workflows.htmlDorothy
Pretty straightforward I am attempting to run a Powershell script from workflows using the ExecuteScript activity The issue is that it simply halts when it gets to the script.No error, nothing in the logs it just halts.any ideas? Batch files work just fine, and the executable path for Powershell is set
Hi Team,I need an API which can give real time information about the VMs which are added in VMgroup/sub client for all vmgroups and VMware centers configured in CommCell console.Let me know if this is possible.Regards,Mohit
Hi guys,there is no workflow for “deleting sub-client authorization”I have already configuredDelete Client AuthorizationDelete Backup Set AuthorizationDelete Storage Policy Authorization but I wanted to protect the sub-client . Thanks Andrea
Hello Team I was trying to get the running jobs for a specific VM. I have below code but it is returning zero results. function Get-CVVMJobStatus { param ( $VMName ) $vmGuid = ($Global:CVVMData.vmStatusInfoList | Where-Object name -eq $VMName).strGUID $headers = New-Object "System.Collections.Generic.Dictionary[[String],[String]]" $headers.Add("Accept", "application/json") $headers.Add("Authtoken", $Global:cvToken) $URI = "http://xxxx/webconsole/api/v2/vsa/vm/$vmGuid/Jobs?completedJobLookupTime=3600&jobTypeList=backup&showAgedJobs=true&backupLevel=Full,Incremental" $response = Invoke-RestMethod $URI -Method 'GET' -Headers $headers $JobsData return $response}
Is there a rest call to manage credentials in the credentail manager?The ability to retrieve credentials, update credential name etc. ThanksChris.
Is there a way to “Refresh” a token once it has expired? The default time a token lasts is 30 minutes, you can change that but is it possible to simply refresh a token that is expiring? Really just a yes or no question. Thanks.
Good Day,we are facing strange behaviour when trying to disassociate a subclient from a schedule policy using rest-api.One client with multiple filesystem Subclients can be associated to different schedulepolicies. However, when trying to remove the association of just one Subclient for one client we see that to this particular Schedule-Policy is then associated to ALL File-System subclients on this client where we performend the Rest-PUT on.$removeTask = @{"taskInfo"=@{"taskOperation"="5";"associations"=@{"clientName"="$client";"backupsetName"="defaultBackupSet";"appName"="file system"},@{"clientName"="$client";"subclientName"="$subclientname";"backupsetName"="defaultBackupSet";"appName"="file system";"flags"=@{"exclude"=$true}};"task"=@{"task"=@{"taskName"="$schdulepolicy"}}}} | ConvertTo-Json -Depth 5Invoke-RestMethod "$commserver/webconsole/api/Task" -Method Put -Headers $headers -Body $removeTask -ContentType "application/json"Does someone face the same issue?Best Regards
Has anyone utlilized vREalize to show any of the commvault dashboard metrics into a custom dashboard in vROPS? Curious to see how everyone is integrating the two of them .
You can refresh data-centers from the GUI, is there an equivalent for the REST api?The api explorer has /v2/vsa/hypervisor/clientID/refresh But that seems to only refresh the actual DC list, rather than the VM list. Basically I want to be able discover a VM that is not currently a part of a subclient. Thanks.Chris.
We have recently started using the “Only Backup files created or modified on and after” option with our subclients. Its a great feature however I can only seem to set it by going to each server one by one. Is there a scrip that I can run with a list of servers to set this option for all subclients on that server along with the time zone and date in one go? We only want to roll this feature out to certain servers in batches, which is why I am hoping there is a scrip to do this. Thank you for any help you can give.
Is there a way to do an LDAP search from within a workflow?I don’t mean using something like powershell. The Commserve can be configured for LDAP authentication, is there any way to use that same LDAP connection to do a query?
Hi Team, Is there a way to have two approvers in the authorization workflows(delete job, delete client, delete storage policy workflows etc.)? Until both did not authorize the approval email, deletion should not happen.
Hello Team,I need to fetch data for schedule policy and using below apis *a* and *b* for thathttps://documentation.commvault.com/v11/essential/48764_rest_api_get_schedule_policy.html. Tried with http://<webservice>/SchedulePolicy on browser but this throws 404 error code.whereas http://<webconsole>/webconsole/api/Schedules?clientId=2 this works fine without any error.Can you please help me with below queries:Are these both a and b api(s) return same data? Need help on why “404 Not found” message while hitting api ‘a’ on browser?
Good Day, I have noticed that when Connecting to the Admin Console it throws me a bunch of errors and it displays this “Unable to load the data from server.” Also when trying to access he Console it gives me this web page “HTTP Error 404. The requested resource is not found.” All services are started and i have rebooted the server aswell.
I’m at a loss here. I was under the impression that the workflow engine uses Groovy to interpret any java code you enter but some operators fail the syntax check. For example if I attempt to create a list using groovy syntax.def clientlist = []; this will cause a syntax error stating that “[“ is unexpected.Fine I can work around that by doing def clientlist = xpath:{/workflow/select/clients} Where the xpath points to a list, but it will not allow me to do something such as clientlist.each{random stuffmore random stuffadditional random stuff} I don’t mind using Javascript but some things are easier in Java and I kind of assumed that I could just follow Groovy syntax to make sure stuff worked. What am I missing?
I have just started getting into understanding how the Commvault REST APIs work and the types of data and control that can be done with them. I imported the collection into Postman, got logged in to the web server OK and can get output from all the basic GET commands, but have not been able to get some POST commands to work yet after trying a few. One that I am interested in working with is POST Testboot (and then also planned and unplanned failovers, so that I may orchestrate multiple failover groups). The response is: “Request body is empty or format is invalid.”Here is an example of my JSON body:{ "taskInfo": { "task": { "taskFlags": { "disabled": 0 }, "taskType": 1, "ownerId": 1, "initiatedFrom": 2, "sequenceNumber": 0, "ownerName": "admin" }, "subTasks": { "subTask": { "subTaskType": 1, "operationType": 4046 },
we have some set of weekend backups which is very important for customer. If any backup failures happen, customer want to send the mobile notification to his mobile. is it possible ??? What options do we have for push notification for backup failure in commvault. is it possible to send to a cell number?
We use RestAPI to get space usage values of our Libraries in Commvault for reporting purposes, especially Total Capacity, Free Space and Used Space.For Disc Libraries this is no problem, but we’re currently doing testing with S3 Storage as Libraries and there we face an issue with that, as these values can’t be extracted.In the Command Center we see the “Size on disk”With QCommands (qlist media -l) we see the “TOTAL DATA(GB)” And with RestAPI (GET Library Details) we see “N/A” Quota on the S3 Bucket has been set, so from my understanding this Quota should act as a “Capacity” value from a Commvault side. How can we extract this data from Commvault?
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.