How to mass deploy inSync Client with the deployment tool using MAC script?
This article applies to:
- OS: iOS
- Product edition: inSync Cloud
Overview
This article provides the procedure to mass deploy inSync Client on one or multiple Mac devices using a deployment tool.
The deployment script must be approved through
The SCCM tool must approve the script to be able to perform the deployment for a single or a collection of Mac devices. When started, the execution of the script is launched quickly through a high-priority system that times-out in one hour. The results of the script are returned using a state message system.
Mass deploy inSync Client on Mac devices
Prerequisites: Obtain the inSync mass deployment token from the inSync Management Console and keep it handy when you perform the mass deployment.
The sample script for installation on Mac devices is as follows:
#!/bin/bash
set +x
U='/tmp/inSync_client_activation.log'
user=`ls -l /dev/console | awk '//{print $3}'`
echo "loggedInUser:" $user >> $U 2>&1
echo "Activating inSync" >> $U 2>&1
/Applications/Druva\ inSync/inSync.app/Contents/MacOS/inSync --token "<token>" --master "cloud.druva.com:443" >> $U 2>&1
sleep 10 >> $U 2>&1
echo "Killing inSync" >> $U 2>&1
killall inSync >> $U 2>&1
echo "Launching inSync" >> $U 2>&1
su -l $user -c 'PATH=$PATH:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin/;open /Applications/Druva\ inSync/inSync.app'
exit 0
The single quotation mark (') edited in "textedit" on Mac is replaced by an inverted comma (‘). The deployment script does not accept the inverted comma and fails. Use the Vim editor to edit inSyncConfig.ini as the editor rectifies the inverted comma to the correct quotation mark.
Procedure
To select a collection of deployment devices
- On the configuration manager console, click Assets and Compliance.
- In the Assets and Compliance workspace, click Device Collections.
- In The Device Collections list, click the collection of devices on which you want to run the script.
- Select the device collection to deploy and click Run Script.
- On the Script page of the Run Script wizard, select the script from the list. Only approved scripts are displayed in the list.
- Click Next and complete the wizard.