1. issue-your-mccli-command > /tmp/check (save the activity-id# to a temp file or to a variable
2. start a while loop
3. mccli activity show $MCS_credentials --verbose=true --id=your-activity-id# (monitor the related activity-id by retrieving the activity status fields)
4. interrogate the activity status values returned and break if it has ended or sleep and continue the loop
5. report on the completion status of the activity
All the batch processings are launched by an external scheduler.
The backup is a part of these processing chains and must also been launched by the external scheduler.
It is idea to use pre and post script to set flags... but I have a lot of server to backup (more than 100), so if I use scripts, I need to move these scripts to all the servers !
If you're going to use mccli for this I would strongly recommend installing mccli on an external system rather than running mccli on the utility node. Running lots of mccli commands on the utility node -- especially concurrently -- may use enough resources to have a negative impact on the operation of the Avamar system (e.g. it could crash or hang the MCS).
mradamk
215 Posts
1374
0
Posted June 13th, 2016 18:00
You need to capture the associated activity id# then establish a loop to query the status of it and take appropriate action accordingly.
Sent from my iPhone