How to deploy Avamar Backup Client
Linux
On Linux, the AVAMAR client is an RPM, so you can use the silent install supplied by the RPM. In the Depot, create a new RPM.
Install command
Uninstall command
After running the command, add an external command to your BLPackage to activate the AVAMAR license, if necessary.
Microsoft Windows
On Windows, the AVAMAR client is an MSI; use the same method as RPM (Software MSI package in the Depot).
Install command
Uninstall command
After running the command, add an external command to your BLPackage to activate the AVAMAR license, if necessary.
Windows Example


install_avmar_x64
msiexec /qn /i AvamarClient-windows-x86_64-6.0.101-66.msi
register_avmar_1
register_avmar_2
cd "C:\Program Files\avs\bin\"
avagent.exe --dpndomain=??TARGET.AVAMAR_DOMAIN?? --quiet --init --mcsaddr=ava-myserver.net
net start "Backup Agent"


add_client_to_group
mccli group add --name=/??CUSTOMER_DOMAIN??/??SCHEDULE?? --domain==/??CUSTOMER_DOMAIN?? --enabled=true --schedule=/??SCHEDULE??
mccli group add-client --client-domain=??CUSTOMER_DOMAIN?? --client-name=??SERVER?? --name=/??CUSTOMER_DOMAIN??/??SCHEDULE??
mccli client show --name=??SERVER?? | grep "does not"
if [ $? -ne 0 ]
then
echo "Server was not added to Avamar"
else
echo "Server was successfully added to Avamar"
fi
The above code is:
- Installing Avamar agent onto the target
- Activate client to the domain
- Add client to group
Backup is not explicitly triggered, but schedule is set in “add_client_to_group” BLPackage and so backup is automatically triggered at defined time.