There are different methods available to do remote, bulk deployment of the agent using scripts for the various tools for each of the supported operating systems.

The following topics are described here:

OS Deployment Scripts

You can use scripts to deploy to devices for each of the supported operating systems. Your access key must be added to a specific section of the script before running the scripts.

Prerequisites: Administrative privileges required.

The deployment tool or target device must have administrator privileges to successfully deploy and install the Automox agent.

Note: You will need your access key for the following scripts. When adding a new device, the Add Devices window provides the access key. From the console you can also retrieve your access key from the Settings → Secrets & Keys tab.

Deploying on macOS

You can deploy the Automox agent on a macOS operating system by using the original command that was required to download the agent installer.

Copying the Agent Installer Command

Follow these steps to copy the curl command:

  1. From the Devices page, click Add Devices.

  2. In the Add Devices dialog window, you can see your access key. You will need this key for the script.

  3. Select macOS from the drop-down menu.

  4. From the install options, click Run Command.

  5. Copy the curl command.

add-device-mac-cmd.png

Editing the Run Command for macOS Bulk Deployment

To bulk deploy the agent on macOS, you must edit the installer command. Add the following code to the deployment command:

launchctl load /Library/LaunchDaemons/com.automox.agent.plist

Note: You must replace accesskey in the following command with your access key. Your key can be found in the Add Devices dialog window.

curl -sS "https://console.automox.com/downloadInstaller?accesskey=Your-Access-Key-Here" | sudo bash
launchctl load /Library/LaunchDaemons/com.automox.agent.plist

Deploying on Windows Using PowerShell

You can deploy the Automox agent using the following Windows PowerShell script. This performs an unattended, silent install of the Automox agent on Windows devices. This script performs the following actions:‌

  1. The script downloads the agent from Automox if it hasn’t already been downloaded.

  2. The script installs the agent on the device if it isn’t already installed.

  3. The script starts the Automox agent service if it is stopped.

Windows PowerShell Script

  1. Download the installer script from this page: Install-AxAgentMsi.ps1.‌
    This script takes the following command line parameters:

    -AccessKey YOUR-ACCESS-KEY-HERE

    ‌ This is a required parameter that associates the device with your Automox zone.‌

  2. Optionally, if you want your device to join a group at the time of installation, you need to specify a destination Group Name and a Parent Group Name.  

  • -GroupName "My Group Name"

  • -ParentGroupName "My Parent Group Name"

Note: Your destination group can either be under a parent group or stand alone. A parent group parameter is only required if the destination group is under a parent group. If you do not specify a parent group, it ignores the group assignment.

See the code examples here:

Example 1: Deploy the Automox agent to your zone inside the group "Accounts Payable", which belongs to a parent group "Finance".

Install-AxAgentMsi.ps1 -AccessKey xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx -GroupName "Accounts Payable" -ParentGroupName "Finance"

Example 2: Deploy the Automox agent to your zone inside the group "Accounts Payable", which does not belong to a parent group.

Install-AxAgentMsi.ps1 -AccessKey xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx -GroupName "Accounts Payable"

Example 3: Deploy the Automox agent for your zone inside the default group.

Install-AxAgentMsi.ps1 -AccessKey xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

Debugging the Installation Process

If you need to debug the installation process performed by this script, you can find logging information in the following file on the device:

$env:TEMP\Install-AxAgentMsi.log

Deploying on Linux

You can deploy the Automox agent on a Linux operating system by using the original command that was required to download the agent installer.

Copying the Agent Installer Command

Follow these steps to copy the curl command.

  1. From the Devices page, click Add Devices.

  2. In the Add Devices dialog window, you can see your access key. You will need this key for the script.

  3. Select Linux from the drop-down list.

  4. Copy the curl command.

add_device_linux.png

Editing the Curl Command for Linux Bulk Deployment‌

To bulk deploy the agent for Linux, you must edit the installer command. Add the following to the deployment command:

service amagent start

Note: You must replace accesskey in the following command with your access key. Your key can be found in Add Devices dialog window.

curl -sS "https://console.automox.com/downloadInstaller?accesskey=Your-ACCESS-Key-Here" | sudo bash service amagent start

Deploying with Ansible

You can distribute the Automox agent with Ansible using the Ansible playbook: get-automox.yml. Contact Automox Support for further assistance.

From the directory where the get-automox.yml file is located, invoke the playbook with the following command, substituting your access key as indicated: 

ansible-playbook get-automox.yml --extra-vars "zone=YOUR-ACCESS-KEY-HERE 

Deploying with JumpCloud

JumpCloud® is a cloud-based Directory-as-a-Service platform that provides authentication, authorization, and management of a company’s employees and the systems and IP resources they need access to. The JumpCloud platform provides a Commands tab that lets you run commands across any number of devices. This makes it possible to quickly and easily automate tasks across a number of servers, launch those tasks based on a number of different types of events, and get full auditing of all command results.

macOS Version

  1. Navigate to the Commands tab of the JumpCloud console and click the + button to create a new command.

  2. Select Mac as the target operating system, provide a name for the command, and in the RUN AS: drop-down list, select root.

  3. Paste the deployment script as specified in Deploying on OS X / Mac into the COMMAND: text field. Select the systems or tags that will receive the Automox agent, and then press save command to create the command on the JumpCloud platform.

  4. Click the Run Now button adjacent to the command you just created to execute the script on all the target devices.

  5. You will see the Exit Code (0 = success) when the command finishes running on each system. Click the details button to view the execution log.

  6. Finally, as the Automox agent registers itself with the Automox platform, you will be able to see the new devices on the Devices page of the Automox console.

Windows Version

  1. Navigate to the Commands tab of the JumpCloud console and click the + button to create a new command.

  2. Select Windows as the target operating system.

  3. Provide a name for the command and select the target devices that will receive the Automox agent.

  4. Select Windows PowerShell and copy and paste the script into the script box.

  5. Click the Save button and you will return to the command tab. Your command will show in the list of available commands that will be run. Click the Run Now button adjacent to the command that you just created to execute the script on all target devices.

  6. Finally, as the Automox agent registers itself with the Automox platform, you will be able to see the new devices on the Devices page of the Automox console.‌

Linux Version

  1. Navigate to the Commands tab of the JumpCloud console and click the + button to create a new command.

  2. Select Linux as the target operating system, provide a name for the command and in the RUN AS: drop-down list, select root.

  3. Paste the deployment script as specified in Deploying on Linux into the COMMAND: text field. Select the systems or tags that will receive the Automox agent, and then press save command to create the command on the JumpCloud platform.

  4. Click the Run Now button adjacent to the command you just created to execute the script on all the target devices.

  5. You will see the Exit Code (0 = success) when the command finishes running on each system. Click the details button to view the execution log.

  6. Finally, as the Automox agent registers itself with the Automox platform, you will be able to see the new devices on the Devices page of the Automox console.

Deploying with Chef

Use this Chef recipe to deploy the Automox agent:

# Note: This will deploy the agent to the Default Group.
# To specify a target Automox group, update the options line with the appropriate
# GROUP = < group name here > 
# see: https://help.automox.com/hc/en-us/articles/5352260844564-Silent-Agent-Deployment-on-Windows

windows_package 'Automox Installer' do
  source 'https://console.automox.com/installers/Automox_Installer-latest.msi'
  retries 2
  installer_type :custom
  options '/qn /norestart ACCESSKEY=insert_your_installer_access_key_here'
  action :install
end

Was this article helpful?
1 out of 2 found this helpful