Acronis Backup Cloud: mass update of Acronis Agents
Scenario
Using Acronis web console, you can update Acronis Agent on a remote machine or on up to 10 remote machines in one step.
If you need to update Acronis Agents on a large number of machines or/and do not want to use the web interface, use the script provided in this article.
Solution
The mass update script runs recursively through the hierarchy under the specified partner/customer/unit group, lists installed agents and
- updates agents marked for update (if "justreporting" option is not used)
- collects information about installed agents to ".csv" report file (if "justreporting" option is used)
Prerequisites
- Install Python 3.6 or newer ( https://www.python.org/downloads/ )
- Install requests module for Rest API call:
python -m pip install requests
Usage
- Download the script .
- Open Command Prompt.
- Navigate to the folder where you have downloaded the script. Use the cd command.
- Run the script:
python agent_update.py --username <username> --password <password> --hostname <hostname> --group <group ID> --justreport
Shor form |
Long form |
Required/Optional |
Value passed |
Description |
---|---|---|---|---|
-u |
--username |
required |
USERNAME of the authorized account (Partner administrator) |
|
-p |
--password |
required |
PASSWORD for the authorized account (Partner administrator) |
|
-hn |
--hostname |
optional |
HOSTNAME of the DC where authorized account is located |
May be omitted if account is located at Acronis DC |
-g |
--group |
optional |
GROUPID, id of the group to be processed (partner/customer/unit) |
May be omitted, home group of the authorized account will be used as an entry point |
-jr |
--justreport |
optional |
<empty>, no value is passed |
Information about all installed agents and their version will be collected and stored to CSV report file; no update sequence will be initiated |
-h |
--help |
|
|
Manual |
Limitations: script does not update agent on offline machines. If amount of agents to update is large (>100), the script pauses for 1 hour after each 100 updated agents.