Question: Can I upgrade remote agents using a job?
5
gravatar for Resilio Bot
11 months ago by
Resilio Bot100
San Francisco
Resilio Bot100 wrote:

Can I upgrade remote agents using a job? I don't want to use another soft for this.

job upgrade agent • 515 views
ADD COMMENTlink modified 10 months ago by sancho0 • written 11 months ago by Resilio Bot100
5
gravatar for Resilio Connect
11 months ago by
Resilio Connect ♦♦ 750
San Francisco, USA
Resilio Connect ♦♦ 750 wrote:

Yes, you can.

In case of numerous agents in your environment you can use Connect's Distribution job to deliver new agent to your desktops as well as do actual upgrade.

Follow the steps:

  • Ensure that your target OSes meet the prerequisites (specific for each OS, see below)

  • Create Distribution job.

  • Source path should contain at least 2 files for each OS you plan to upgrade: a script and a binary. See particular OS below, files section.

  • OS and actual path on source do not matter. Path on target computer also does not matter.

  • Ensure to enable one of triggers "Run script when agent completes download" or "Run script when all agents complete download".

  • Get the OS-specific command and put it into relevant OS script box.

  • Ensure that job only runs manually

  • Run the job once ready.

Important: It is strongly recommended to test your upgrade on a small group of computers first.

Windows

Prerequisites. Please ensure your Agents on windows run under SYSTEM or admin account. If they run under Local Service account, automatic upgrade is not possible due to security subsystem limitations.

To adopt instruction for x86 version of Windows, change scripts and filenames accordingly.

Files. These files must be delivered to your Windows destination: Resilio-Connect-Agent_x64.exe agent_update_win.cmd

Command. Put the command in "Windows" section of the trigger: start cmd /c "agent_update_win.cmd"

Output. Agent will be updated and reconnect to Console. Fetch the script logs from job details dialog to see if anything went wrong.

OS X

Prerequisites. Resilio Connect Agent app must be installed in system's global /Applications folder. Please ensure that user with admin privileges logged in during the upgrade. The script will prompt for admin password during upgrade to actually replace application bundles.

Files. These files must be delivered to your OS X destination: Resilio-Connect-Agent.dmg agent_update_mac

Command. Put next commands in "Mac" section of the trigger: chmod +x agent_update_mac nohup ./agent_update_mac &

Output. The script will show system notifications once starting upgrade and once done. Also, script will ask for admin password, so minor user interaction required. Output log file update-<date>.log will spawn in each Agent's storage folder. Use it to debug any issues that arise during upgrade.

Linux

As Agent runs under rslagent or local user account, update cannot be triggered by Agent itself due to Linux security model.

Use your Linux packet manager to update your packages. When installed via Resilio official repository Agent will update automatically with next system update.

Remote updating of NAS is not possible. For NAS devices use new NAS packages to update Agents.

ADD COMMENTlink written 11 months ago by Resilio Connect ♦♦ 750
0
gravatar for sancho
10 months ago by
sancho0
sancho0 wrote:

I think it is better to add to Resilio some feature to automatize this process.

ADD COMMENTlink written 10 months ago by sancho0

We plan to add this feature in future releases, but for now it's recommended to use the described above technique.

ADD REPLYlink written 10 months ago by roman50
Please log in to add an answer.

Content

Properties

Miscellaneous

Powered by Biostar 16.09
Bug report artem@resilio.com
Traffic: 2 users visited in the last hour