Skip to main content

acrocmd - find out which machines/VMs were saved with a plan - GUID reference missing

Thread needs solution

Hello,
I am using acrocmd in a PS script to create a report of all backup plans which is parseable by a monitoring system.
"acrocmd list plans" gives me the overall state of each plan. This works well and can be monitored fine.

What I want to do now: find out which VMs/Machines were saved within each plan.
I can find the plan GUID in the output of "acrocmd list tasks".
The output table of "acrocmd list activities" contains the column "machine" (what I am searching for) but there does not seem to be any GUID reference to the corresponding task or plan.

I hope, my explanation was halfway understandable ...
Thank you very much for any assistance!

Paul

0 Users found this helpful

Hello Paul!

Are you trying to compile a list of:

  1. Listing the computers belonging to a plan?
  2. Listing successful backups / plan for a particular execution? I.e. something like "TESTPLAN ran at the scheduled 10am finished. 8/10 computers backed up 2/10 failed?

If you can incorporate some SQL, HTTP into your PS you can query a lot more info

If you have an MSSQL store for the AMS these tables can be of interest in your scenario:

  • acronis_backup_manager.dbo.applied_policies - You can find resource(computer)-plan(policy) assignments here
  • acronis_backup_manager.dbo.resources - You can lookup the GUIDs of computers here
  • acronis_backup_manager.dbo.agents - Acronis agents GUIDs in case you need it to correlate machines-agents
  • acronis_vault_manager.dbo.backups
  • acronis_vault_manager.dbo.archives 

to correlate info with activities the place to look for is one of the SQLite dbs on the AMS machine (Can't remember which right now)

to query info about a backups contents you can call Elastic search APIs. Related thread

-- Peter

frestogaslorastaswastavewroviwroclolacorashibushurutraciwrubrishabenichikucrijorejenufrilomuwrigaslowrikejawrachosleratiswurelaseriprouobrunoviswosuthitribrepakotritopislivadrauibretisetewrapenuwrapi
Posts: 0
Comments: 2016

Hello Paul,

welcome to Acronis forums!

There is hardly anything could be added to Peter's solution. 

The output table of "acrocmd list activities" contains the column "machine" (what I am searching for) but there does not seem to be any GUID reference to the corresponding task or plan.

There could be several plans running on the same machine.

If you have a possibility to access Management Console UI, I recommend that you use Acronis Reporting. For example, you can check how the machine names correspond with backup plans in Overview -> Reports -> 1. Summary report/Daily activities or 5. Current status/Protected devices.

Moreover, you can configure your own reports and schedule saving them in the .xlsx format to a specific folder or export it to a .json files for your monitoring system.