🚀 (Updated) Proactive Advisory: Upcoming Microsoft Transition from Exchange Web Services (EWS) to G...
Discuss REST APIs, Workflows, PowerShell, scripting, customization, and more!
Recently active
Creating a Global Non-Deduplication Enabled Storage PolicyOnce you create a global non-deduplication policy, you can use it to enable global non-deduplication for any storage policy.Download the SP_creation.xml file and save it on the computer from where the command will be executed. Before running the command, review the Available Parameters for Storage Policy Configuration. Execute the following command from the software_installation_directory**/Base folder after substituting the parameter values. qoperation execute -af <downloaded location>\sp_copycreation.xml -storagePolicyName 'xxxxx' useGlobalStoragePolicy 1 -useGlobalPolicy/storagePolicyName "xxxxx" -retainArchiverDataForDays xx -retainBackupDataForCycles xx -retainBackupDataForDays xx -copyName 'xxxxx' For example, to create a global non-deduplication enabled storage policy, with name SP1, that is using SP_GDSP as a global non-deduplication policy, execute following command: Here it is creating a stroge policy using
Where do we get Description of columns for cf_SurveyLibraryThroughput table under CVCloud Database.What is the formula to get avg throughput per day from these parameters in the table[cf_SurveyLibraryThroughput ]?
I have created s3 cloud library , now I need to share the mount path to another MA agent.https://documentation.commvault.com/2022e/expert/adding_new_mediaagent_to_cloud_storage_device.htmlBy Using Device IDhttps://documentation.commvault.com/2023e/expert/files/products/media_agent/xml/ShareMountpath.xmlYou can use the device ID to share a mount path with one or more MediaAgents Here I can see sharing mount path using device IDs, I need the same using names, not IDs I can see xml parameter for Disklibrary , need xml file for cloud lbrary – mount path sharing.
I have the following function setup in a script : JSONObject getVmwareApiOutput(String apiUrl, String vCenterSessionToken){ ExecuteSuperProcess getVmwareApi = new ExecuteSuperProcess(); getVmwareApi.processBlock = WorkflowElement.parse("<processBlock>pbGetVmwareApi</processBlock>"); getVmwareApi.inputs = WorkflowElement.parse("<inputs><url>" + apiUrl + "</url><vmware-api-session-id>" + vCenterSessionToken + "</vmware-api-session-id></inputs>"); getVmwareApi.execute(workflow); JSONObject vmWareApiOutput = new JSONObject(xpath:{/workflow/variables/restCallOutPut}.replace("[","").replace("]",""));return vmWareApiOutput;} This works fine the first time I call the script.But subsequents calls result in the following: 9908 ExecuteSuperProcess : [Search vCenters for Virtual Machines (scrSearchForVirtualMachine)] process block for super process id [9321], has already completed9908 ExecuteSuperProcess : [Search v
Hello everyone, please help me understand if there is such an opportunity in the api? There is such a method - according to the cat, I can get a request from the developers of Commvault - GET <webservice>/Client HTTP/1.1 Yes, it returns a list of all objects, but there is not complete information about the object and there is a method for obtaining complete information - GET <webservice>/Client/{ClientID} HTTP/1.1 The question is that I have a list of unique IDs or Names and I want to upload full information on them right away, but there is no way in Python to do this. Is it possible to do this at all, or will you have to cycle through all the IDs and unload them piece by piece and slowly?
Every once in a while my Java session will crash and leave a workflow “locked” By me, and it won’t allow me to make modifications. I know that restarting the workflow services will unlock it, but there is a way that doesnt require cycling services?
The following imports:import commvault.cte.workflow.activities.HttpClient;import commvault.cte.workflow.types.WebRequest;import commvault.cte.workflow.types.NameValue;import commvault.cte.workflow.types.WebMethod;Produces the following:Script1.groovy: 8: unable to resolve class commvault.cte.workflow.types.WebRequest @ line 8, column 1. import commvault.cte.workflow.types.WebRequest; ^Script1.groovy: 9: unable to resolve class commvault.cte.workflow.types.NameValue @ line 9, column 1. import commvault.cte.workflow.types.NameValue; ^Script1.groovy: 10: unable to resolve class commvault.cte.workflow.types.WebMethod @ line 10, column 1. import commvault.cte.workflow.types.WebMethod; ^
Hello, I'm trying to use the API for virtual machine backup. When I run the Go Lang API sample, the API call works, but the JSON response appears to be not in correct format, as shown in the example below.}7101"d":2706,"jobIds":[I tried changing the "Accept" and "Content-Type" headers to XML to see if I could receive the response in XML, but this does not work for this API, despite working for a few other APIs.However, when I do this API call using POSTMAN, I get a JSON response in format.{ "taskId": 2655, "jobIds": [ "7045" ]}What seems to be the issue here? I need to make the call using Go Lang.API : Backup virtual machines | Commvault®
I have to remove/Delete the VM from commvault using the Rest APIhttps://api.commvault.com/docs/api/cv/OpenAPI3/delete-virtual-machine I have tried test running the api using python and I got the below mentioned error:C:\Users\Ansible_user\Downloads>python vmdel.py WIN-C6TBRLJG6IM <commandcenter username> <commandcenter passwordimport requestsimport urllib#proxies={ #'http':'http://10.***.***.***:8080', #'https':'http://10.***.***.***:8080'#}url = "https://win-c6tbrljg6im/commandcenter/api/V4/VirtualMachines/:<VM UUID>"payload={}headers = { 'Accept': 'application/json', 'Authtoken': '*******'}response = requests.request("GET", url, headers=headers, data=payload, proxies=urllib.request.getproxies())print(response.text)>Traceback (most recent call last): File "C:\Users\Ansible_user\AppData\Local\Programs\Python\Python312\Lib\site-packages\urllib3\connectionpool.py", line 779, in urlopen self._prepare_proxy(conn) File "C:\Users\Ansible_user\AppData\Local\Program
HII working with rest api I have a process for checking daily backupsThe process works fine!I need help running a backup check between dateFeb 01, 2024 12:00 AM and Feb 29, 2024 11:59 PMThis is for example part of a URL that I access to get a daily reporturlrest = "/webconsole/api/Job?jobFilter=Backup&jobCategory=all&completedJobLookupTime=86400&limit=500"; // 24 hoursAny help will be appreciated
I am looking to use the vmname to get the details of a vm without having to generate a subclient.Essentially I need the API equivalent of this : When I click preview it searches vcenter, I want the query generated and the output of that search. Thanks.
how to integrate the active directory user in CommVault CommCell console.is there any LDAP configuration require or any other process. (Actually I have a created normal user in CommCell and assigned the role also, it is working. )
I'm curious to learn if there are other Commvault customers who are looking for data protection for Jira Cloud or currently have a point solution running to protect the data that resides in Jira Cloud.
Hi,We are trying to configure Alerts for failed backups. Tested a few scenarios out and it seems there is no way to get notified about failed backup via the access nodes.The access nodes(proxies) are carrying out backup jobs for multiple instances and hoped we would be able to set up only 1 alert definitions for those instances instead of creating individual alerts for all our instances. (plus we hope to be future proof with this, so if any new instances are being onboarded, then we don’t need to amend/create any alerts).Could you confirm that failed backup alerts cannot be configured via access nodes in such way?Is there any alternative that allows us to automatically add newly onboarded instances to alerts to check for failed backups?
Edit:Removed Question, turns out just using the assignment operator works.
I want to automate deletion of client which is already retired, please assist with correct article.I used below , <App_DeleteClientRequest><association><entity> <clientName>xpath:{/workflow/ProcessBlock_6/pb_client}</clientName></entity></association></App_DeleteClientRequest> but gets below error. Delete client automation , automatically evokes DeleteClientAuthorization, not sure what to do here. Error Code: [19:857]Description: startup failed: Script1.groovy: 7: Unexpected input: '{ timeout = v_26695f15_7028_414d_a7c7_a074e9e7358f * 1440*60; //Convert timeout in days to unix time workflow.setVariable("VAR_TIMEOUT",timeout); } else { workflow.setVariable("VAR_TIMEOUT",14400*60); //If timeout is not set in configuration, set default timeout as 10 days and converting it to unix time }' @ line 7, column 371. d converting it to unix time } ^ 1 errorSource: ap1smacvcmc002, Process: Workflow
Does anyone have a quick rundown on what methods to use to set the httpclient methods and execute?I know it goes something like so : import commvault.cte.workflow.activities.HttpClient;def httpclient = new HttpClient(); But then what next? How do I set the http method, headers and, and url?
Hi,I’d like to enable parallel backup config for PostgreSQL databases. I can see I can modify the parallel dump based back up set config to enable parallel backups, but wondering if the default dump based backup set config can have this feature enabled by default?I don’t find any related article about it.For reference, this is the attribute I’d like to get enabled by default:https://documentation.commvault.com/2024/essential/using_parallel_jobs_to_dump_postgresql_database.html Thanks,
I am working on a code to fetch all jobs for a spesific client group and count each job status so that I can preprare a report to display all jobs status for the last 24 hours. But “lookup_time” is not working as expected, less job fetched. Even changed the time for the lookup_time with different hours but the output is alwasy the same. I think lookup_time is not working as it should. Do you have any idea why it is not working ? jobs_last24hours = job.finished_jobs(client, lookup_time=24)
I am working on automation which installs SQL iDataAgent on new clients and also creates AG (Availability Group) Instance.I have found this API endpoint to push install the MSSQL iData Agent on the servers but I can’t find an example of creating AG Instance via API.
All,I’m looking for some guidance. There is a report that can be installed from the CV Store that claims to show “Active Jobs” and it does so, but only backup type jobs. Is anyone aware of a report like this but that shows Administrative type jobs as well? Essentially what I’d like to do is create a custom dashboard that would show any jobs that would be running in the job controller plus some other data/metrics. I want all this data to come from the Metrics Server’s CVCloud database. The table is there for the Admin jobs, so I know the data is there. I unfortunately don’t know anything about the report builder and/or MS SQL to build a customer report. It would be nice if this came as a canned report, but I haven’t found one. Thank you in advance for any and all guidance/input. Adam Davenport
Hello All,Does Commvault have integration with Humio? Thanks in advance Regards
Hi Team, I'm very new to the Rest API, but I was only able to create an authtoken :) As far as I learned, when the authtoken is created, the max. It can be used for 30 days. After this period, it is necessary to create a new authtoken and use the new authtoken. We are thinking something like this, Is it possible to do this?We are trying to create a powershell script, this script will create a new authtoken every time it runs and will automatically use the new authtoken, then we will be able to GET the information we want from Commvault. Rest
Hello Vaulters, I have been to automate schedule policy delete using by calling the API using the syntax on the document but I keep facing error, does any one have an already executed script or guide and how to achieve this?
Hi! I am trying to add a VM Filter via API for the Backup Set - how to achieve this via API?
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.