Agent Install via Rest

Last post 09-23-2020, 11:18 AM by garken. 2 replies.
Sort Posts: Previous Next
  • Agent Install via Rest
    Posted: 07-27-2020, 12:09 PM

    Is it just me, or is there no way to use Rest to push out a client agent?  Seems like you have to go it via the gui, or a custom install package.

     

    I want to add it to our build process for Machines.  be able to make a rest call, passing all the required variables, so that the client gets installed, and registered.  I haven't been able to find anything via powershell (seems to be a frontend to Rest) or any other automation method.  THe goal is to keep people out of the webconsole/Console, and have it part of our automation stack.

     

    The only way I can think of doing it, is to create a package, and run a remote powershell on the endpoint, that will install/register, but would rather not.

     

     

    Any insight in to a better way to install? 

  • Re: Agent Install via Rest
    Posted: 07-29-2020, 1:58 AM

    Hi Bryan

    Try out Workflows, they can do pretty much everything the GUIs can and more, and they can be triggered via /wapi Endpoint using REST.

    We automated adding/removing VM and FS Backups and enabling/disabling Clients using that method. 

    Regards,

    Stefan

  • Re: Agent Install via Rest
    Posted: 09-23-2020, 11:18 AM

    you can do this through the CreateTask API or through InstallClient

    https://api.commvault.com/?version=latest#1fb3fec7-ef98-4bff-8f1c-48c6f1968aebhttps://api.commvault.com/?version=latest#1fb3fec7-ef98-4bff-8f1c-48c6f1968aeb

    Unfortunately, the booksonline api reference does not appear to have all apis listed, but the api.commvault.com has more info.

    Here is a sample XML for CreateTask - I am still working on details, but have gotten the SQL Agent and File System Agent installed on a raw server.

     

     

     

    {
    "taskInfo": {
    "associations": [
    {
    "commCellId": 2
    }
    ],
    "task": {
    "taskType": 1,
    "initiatedFrom": 1,
    "taskFlags": {
    "disabled": false
    }
    },
    "subTasks": [
    {
    "subTask": {
    "subTaskType": 1,
    "operationType": 4026
    },
    "options": {
    "adminOpts": {
    "clientInstallOption": {
    "reuseADCredentials": false,
    "installOSType": 0,
    "discoveryType": 0,
    "installerOption": {
    "requestType": 0,
    "Operationtype": 0,
    "CommServeHostName": "",
    "RemoteClient": false,
    "installFlags": {
    "allowMultipleInstances": true,
    "restoreOnlyAgents": false,
    "killBrowserProcesses": true,
    "install32Base": false,
    "disableOSFirewall": false,
    "stopOracleServices": false,
    "skipClientsOfCS": false,
    "addToFirewallExclusion": true,
    "ignoreJobsRunning": false,
    "forceReboot": false,
    "overrideClientInfo": true,
    "firewallInstall": {
    "enableFirewallConfig": false,
    "firewallConnectionType": 0,
    "portNumber": 0
    }
    },
    "User": {
    "userName": "admin",
    "userId": 1
    },
    "clientComposition": [
    {
    "packageDeliveryOption": 0,
    "overrideSoftwareCache": false,
    "components": {
    "commonInfo": {
    "globalFilters": 2
    },
    "fileSystem": {
    "configureForLaptopBackups": false
    },
    "componentInfo": [
    {
    "osType": "Windows",
    "ComponentId": 702
    },
    {
    "osType": "Windows",
    "ComponentId": 353
    }
    ]
    },
    "clientInfo": {
    "client": {
    "evmgrcPort": 0,
    "cvdPort": 0,
    "installDirectory": ""
    }
    }
    }
    ]
    },
    "clientDetails": [
    {
    "clientEntity": {
    "clientName": "",
    "commCellName": ""
    }
    }

    ],
    "clientAuthForJob": {
    "password": "",
    "userName": ""
    }
    },
    "updateOption": {
    "rebootClient": false
    }
    }
    }
    }
    ]
    }
    }
The content of the forums, threads and posts reflects the thoughts and opinions of each author, and does not represent the thoughts, opinions, plans or strategies of Commvault Systems, Inc. ("Commvault") and Commvault undertakes no obligation to update, correct or modify any statements made in this forum. Any and all third party links, statements, comments, or feedback posted to, or otherwise provided by this forum, thread or post are not affiliated with, nor endorsed by, Commvault.
Commvault, Commvault and logo, the “CV” logo, Commvault Systems, Solving Forward, SIM, Singular Information Management, Simpana, Commvault Galaxy, Unified Data Management, QiNetix, Quick Recovery, QR, CommNet, GridStor, Vault Tracker, InnerVault, QuickSnap, QSnap, Recovery Director, CommServe, CommCell, SnapProtect, ROMS, and CommValue, are trademarks or registered trademarks of Commvault Systems, Inc. All other third party brands, products, service names, trademarks, or registered service marks are the property of and used to identify the products or services of their respective owners. All specifications are subject to change without notice.
Close
Copyright © 2020 Commvault | All Rights Reserved. | Legal | Privacy Policy