How to deploy Avamar Backup Client

This topic was edited by a BMC Contributor and has not been approved.  More information.

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


rpm -iv ??SOURCE??

Uninstall command


rpm -e ??PACKAGENAME??

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


msiexec /I "??SOURCE??" /qn ALLUSERS=1 REBOOT=ReallySuppress

Uninstall command


msiexec /x "??SOURCE??" /qn

After running the command, add an external command to your BLPackage to activate the AVAMAR license, if necessary.

Windows Example

install_avmar_x64


cd C:\tmp
msiexec /qn /i AvamarClient-windows-x86_64-6.0.101-66.msi

register_avmar_1


echo --hostname=??TARGET.FQDN_PRIVATE?? > "C:\Program Files\avs\var\avagent.cmd"

register_avmar_2


net stop "Backup Agent"
cd "C:\Program Files\avs\bin\"
avagent.exe --dpndomain=??TARGET.AVAMAR_DOMAIN?? --quiet --init --mcsaddr=ava-myserver.net
net start "Backup Agent"


$1=TARGET.NAME

add_client_to_group


export PATH=$PATH:/usr/local/avamar/6.0.1-66/bin

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:

  1. Installing Avamar agent onto the target
  2. Activate client to the domain
  3. 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.

Was this page helpful? Yes No Submitting... Thank you

Comments