Platform Release Webinars (July 2026): Commvault Cloud SaaS and LTS 11.44
Discuss REST APIs, Workflows, PowerShell, scripting, customization, and more!
Recently active
Hi Team,Has anybody used Camunda for workflow/process/task automation and orchestration? As Commvault offers APIs, has anyone tested/implemented Camunda for Commvault?Regards,Shasha
Hello Community , CV references :https://documentation.commvault.com/2022e/essential/45562_rest_api_getting_started_using_python.htmlhttps://documentation.commvault.com/2022e/essential/48793_rest_api_post_schedules_disable.html the above screenshot is CV sample POST request to disable schedule job and I want to be able run this specific POST Request via Python so I can do more personalization on it/more control on it (e.g. run multiple taskid at one shot, output pre/post result, etc...): 1- Issue Description:I'm using this script to make a POST request to the Commvault disable schedule API. in this case, I want to pass the plain text (taskId = 125918) as a variable so I can use it in the script, and can't make the POST request with this plain text that highlighted in the above sample screenshot(taskId= 451).taskId = 0task = {(taskId, 'text/plain') : 125918}r2 = requests.post(DisableSchedule, data = task, headers=headers) 2- what have been tried:#1 " tried below script and gave an err
Hi All,I am trying to automate the commvault setup, configuration and backup/restore procedure in our environment. We have chosen python sdk (cvpysdk) to do automation. I am not able to find any module for media agent installation in cvpysdk. Can anyone please please help me with the workaround? Even a CLI would help for automation. I am doing all the setip on windows client, hence need the cli/module for windows setup/configuration. Thanks in advance.
Hi Guys, Hope everyone is doing good.Is there in windows command to be used on the MA to check if there are any running jobs on that MA ? Kind regards.
We want to add custom tags on each backup object via Python automation.Can you please provide guideline on how to use the REST API to bulk update client entity tags
Please confirm whether we have supported CV plugin for vRA/vRO 8.X, I see the information in the URL - https://documentation.commvault.com/11.25/expert/32458_vrealize_automation_support_for_vmware.html refers to vRA 7.X.
I had enabled the enable reply via email and had updated the Email Approval details in the Workflow as mentioned in https://documentation.commvault.com/2022e/expert/60276_enabling_reply_via_email_for_userinput_activity.html Now the workflow is not sending the approval mail I’m getting the following error : javax.mail.internet.AddressException: Missing final ‘@domain’ in string “Test” As its a predefined workflow , I’m unable to find this Please help me where do we need to make the update Where do i set the Reply to mail id?
So I’m trying to run a REST api call to get all current running jobs. I’m ultimately try to get to the same state that the Command Center shows for it’s active jobs.I can run the following which gets me the active backup jobs, but does not show anything else:curl -ks --location --request GET "https://commserve/webconsole/api/Job?jobCategory=Active&jobFilter="The jobfilter options (https://documentation.commvault.com/v11/essential/105923_jobfilter_parameter_values.html) don’t seem to have an effect. Setting ALLOPS doesn’t get everything (in fact hides running backup jobs). I’ve tried using DDBOPS when there is DDB activity going on and that doesn’t give a response either.Is there something I’m missing here?My end state is just trying to determine at a point in time that there is nothing Running/Waited/Queued/Pending so that I can trip off other tasks (OS level patching), so if there is another way to do that I’m open to that as well.
I cannot use the client list because we have duplicates with the same hostname. I need a query or even a rest api call that can get this information. thanks.Chris.
This is related to this Documentation: Adding a Configuration Value for a Workflow. Workflow Configuration is very useful in the following scenarios (copied from Documentation), Values apply to the workflow the majority of the times that the workflow runs. You do not want to redeploy the workflow when the values change (the workflow version is not updated). Actual use cases, if you're having very simple workflow dedicated to single task, you don't need to use Configuration, instead you can pass all parameters to run the workflow via workflow's Inputs. If you're having workflow for common purpose, like maintain multiple clients with common configuration between them, you should prepare single wofklow with Configuration.
we use the Rest API to retrieve various job information. We used "Job?completedJobLookupTime=86400" to show all backup jobs and AuxCopys for the last 7 days. But since we installed the 11.28.14 update, we don't get any auxcopys informations. Also if we don't set the filter "completedJobLookupTime" we get 2500 results but the past auxcopys are not shown either. We have now also installed the 11.28.19 update, but it did not fix the problem.The permissions for the user have not changed.We can reproduce the problem via API Explorer or Postman. The API documentation refers to a "JobFilter Parameter Values" list where auxcopys are still listed. https://documentation.commvault.com/v11/essential/47608_rest_api_get_job.htmlAre auxcopys no longer displayed via the Job Rest API?
Can someone provide an example of invoking “qoperation execute” via a POST QCOMMAND call to the REST API? I’m trying to build the XML for the “qoperation execute” as a PowerShell variable (in a loop, updating backed on what we’re looping on), but since I’ve never done anything like this, I can’t tell why I’m getting an “internal error” response, apart from, “clearly I don’t know what I’m doing.” If I can see a successful example, I can see how different my attempt looks and hopefully adjust accordingly. Thanks,NickSince someone is likely to ask: $napTime = "<?xml version=`"1.0`" encoding=`"UTF-8`"?><App_SetMediaAgentPropertiesReq> <mediaAgentInfo><mediaAgent mediaAgentName=`"$thisma`"/> <mediaAgentProps markMAOfflineForMaintenance=`"1`" enableMAAfterDelay=`"60`"/></mediaAgentInfo></App_SetMediaAgentPropertiesReq>" $takeNap = "$origin/Qcommand/qoperation%20execute -req $naptime" $a5 = Invoke-RestMethod -Uri $takeNap -Method
Hi, maybe someone has already made a CV workflow to assign client to a schedule policy and are willing to share such workflow? I was looking for any xml option that I could run from client side with qcommands but could not find such thing for schedule policy associations… Thanks!
Hi,I want to work with VMUtilities in Workflows.Therefore, I created a simple workflow to extract the vmGUID using RestAPI. The the first step created 2 Variables, on with the name of the VM and the other for my vShpere-Client: As the first activity I use HttpClient to get the client details including the vmGUID 1. Solution:In the next step I’m using the activity «PowerOn», insert the two variable and try to extract the vmGUID from previous output: To extract the vmGUID, I used the example I found in documentation and changed it to suite my needs.https://documentation.commvault.com/v11/essential/132060_specifying_script_to_retrieve_input_value_for_workflow_activity.html I get the following errors:org.jdom2.input.JDOMParseException: Error on line 2: Element type "vm" must be followed by either attribute specifications, ">" or "/>".VMOperationsHandler : [PowerOn (PowerOn_1)] ERROR: failed to encode xml 2. Solution: Then I thought I could put these lines into the “OnStar
Hello all! I am trying to simplify installing agents for DBA’s and other app teams. I have created custom packages that can run silently, but by default I cannot assign things like storage policy to the specific agent. For example, an MSSQL custom package will install but no storage policy is assigned. What I’d like to do: DBA takes a custom package, runs the installer in “silent install” mode, server registers to the commserve. Storage policy is assigned to the discovered DB instancesClient computer group is assigned (which has a schedule connected to it) Ideally run a first full backup after install completes (that’s a low priority) Pulls latest client updates - maybe executes a workflow on itself? (I know I’m dreaming)Is there a way to customize the install.xml file in the installer? Has someone done this post-install with a qscript or other means?I am running 11.26.41 - and it seems some custom package options have gone away. Sorry, haven’t migrated to plans yet - but if this can b
Hi GuysEach Subclient that gets created has 200+ Parameters and Options, some are set always, some not, new ones get added with every FeatureReleases and Default-Values might change with every other MaintenanceRelease. After couple of years I now have a Zoo full of varying configurations that I need to consolidate to a hand full of standards.Anybody know a convenient way to gather all available Options for a given Subclient-Type? Intention is to gather a giant table to be able to compare f.E. setting up same diskCleanupRules for all FIleSystem Agents.Tried to extract the Data from App_GetSubClientPropertiesResponse xml-Output but couldn’t find a good way to extract all Entity and Attribute Paths as source for a XPath-Query Loop through everything. XPath 3.0 would support something like “//@*/path()” to do that in a one-liner but Commvault Java stack doesn’t seem to support that.Anybody had the same challenge and found a solutionBest RegardsStefan
Is there a canonical way using the Powershelll SDK V2 to tell the Linux media agents from the Windows media agents? (When it comes time each month to apply Windows patches, putting the Linux media agents into maintenance mode just because they’re media agents aggravates my OCD.)
Anyone using CVPySDK and Ansible? I am unable to get it to function. I have pip installed and can run the commcell functions from within the python interpreter.When I attempt to use it in a playbook, I get an error… ERROR! couldn’t resolve module/action ‘commvault’ Ansible 2.10.7python 3.6.8. Ken
Hello,I am new to CommVault and attempting to remotely deploy MediaAgents and Virtual Server Agents using a PowerShell script.I created a custom package selecting the “Virtualization” role (Per this article: https://documentation.commvault.com/2022e/essential/135950_installation_roles_and_packages.html). I did not create a self-extracting executable file because it failed to generate one, so my package files are all contained with a folder.The package successfully installs, but it is only installing the “File System Core” component. Even though my install.xml file explicitly says “ selectedRoles="51,713" “ which I noted are the Media Agent and Virtual Server in WinPackages.xml.Is my install.xml not being read properly?Here is my PowerShell one-liner:(start-process "C:\localpath\Setup.exe" -ArgumentList '/silent /install /authcode XXXXXXXX' -Wait -NoNewWindow -PassThru).ExitCodeI also tried using this command on the local box: Setup.exe /play install.xml /silent /authcode authcodeThe ab
Hello Commvault Community, At the beginning, I will explain the situations that we need to meet with the client. We have a production environment with several TapeLibraries and a few DiskLibraries. The client decided that he would like to use the newly created, dedicated Scratch Pools, but he wants them to be automated. This is to work in such a way that for certain Storage Policy copies LTO-7 tape is to be taken or in the second case LTO-8. This configuration is intended to apply to multiple Storage Policy Copies. We'd rather avoid creating all Storage Policies from scratch. However, we know that the Storage Pool settings define the "Default Scratch Pool" settings, where you cannot select individual ones for each copy and additionally, you cannot change it if the copy is already running and has data saved, but we probably found a workaround for this. When we create a new copy to tapes, for an existing Storage Policy, we can choose a Storage Pool/ or create new one, there other than t
Hello all, is anyone using the Powershell SDK v2? I see it hasn’t been touched since initial commit, is this still a thing? I really like the v1 and wanted to see what else is now available in v2. https://github.com/Commvault/CVPowershellSDKV2 The documentation is scarce at best and CV docs still references SDK v1 which is not the same as v2. From the github page it just says to use Invoke-SetupLogin, which I am able to connect and get a token. But then how do I use the cmdlets at that point? When I run a command afterwards I just get “Unauthorized” In v1 once you run connect-CVServer, you can run any commands against the currently logged in Commcell. I really think this PS module is a great thing and hope it is still being developed. The API is nice but the PS code is much easier to use and less code involved. Thanks for any details!
Hi @Mike Struening ,I am also facing similar issue. I have installed the configured the Commvault Splunk plugin available at: https://splunkbase.splunk.com/app/5718/ and I am trying to get respective data from Commvalut version-11.24.48.I have checked the permissions for the user(not a service account) of Commcell it is same as per your shared screenshot still no luck. Please help me understand the possible reasons it is not accepting the credentials.
Can't get database backup historyPS C:\Windows\system32> Get-CVSQLDatabaseBackupHistory -Name test -ErrorAction SilentlyContinueValidateResponse : Status: ProtocolErrorMessage: The remote server returned an error: (500) Internal Server Error.ErrorMessage: RecommendedAction: At C:\Program Files\WindowsPowerShell\Modules\CVPowershellSDK-master\Modules\Commvault.RESTSession\Commvault.RESTSession.psm1:410 char:17+ ValidateResponse $response $output $ValidateProperty+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,ValidateResponse INFO: Get-CVSQLDatabaseBackupHistory: backup history for database [test] is not availableInitially, using the CVPowershellSDK-master module, the Get-CVSQLDatabaseBackupHistory function worked correctly and returned a list of backups. Can you please tell me if the co
We have deployed the Elasticsearch Backup and Restore workflows and found that the URL references within them are using http://. We prefer to use encryption so is it as simple as changing the (4 in Backup / 13 in Restore) actions from http:// to https:// ?
Hi Team,I am trying to run the workflow using PowerShell and capture the workflow job id output to the text file, that text file will be read by our BigFix tool. Below is the scripts and the error i am gettingPS C:\Users\awilliamtell> $jobid = Start-CVWorkflow -name baas_workflow -Force | select jobidINFO: Start-CVWorkflow: enter inputs for workflow [baas_workflow]PS C:\Users\awilliamtell> qlist job -cs BTEEGVPCSTVW001.forsythehosting.com -j $jobid -waitForJobComplete -waitTimeoutSecs 600 | out-file -filepath c:\test\test.txt -appendjob: Error 0x303: Invalid job Id @{jobId=18850} **************************************************************************************************I tried to print the $jobid and if its giving output as Can't find file @{jobId=18866; processId=18866}PS C:\Windows\system32> $jobid = Start-CVWorkflow -name baas_workflow -ForceINFO: Start-CVWorkflow: enter inputs for workflow [baas_workflow]PS C:\Windows\system32> print ($jobid)Can't find file @{job
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.