61049: Acronis Backup Cloud: mass update of Acronis Agents

use Google Translate

Applies to: 

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

  1. Install Python 3.6 or newer (https://www.python.org/downloads/)
  2. Install requests module for Rest API call:
    python -m pip install requests

Usage

  1. Download the script.
  2. Open Command Prompt.
  3. Navigate to the folder where you have downloaded the script. Use the cd command.
  4. 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.

You are reporting a typo in the following text:
Simply click the "Send typo report" button to complete the report. You can also include a comment.
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.
1 + 7 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.