Export plans from AMS
I try to export a plan from the AMS with the following command:
acrocmd export plan --service=ams --id=<ID> --loc=D:\Temp\test.xml
I ran the cmd with admin privileges.
it shows the following error:
<--
An error occurred while executing the command.
Fehler: 0x1510008
$module = "acrocmd_vsa64_26172"
`anonymous-namespace'::PrintPerformingResult : d:\1089\enterprise\command_line\engine\impl\engine.cpp(65)
{"reason":"wcsOperationForbidden","cause":"Operation \"BackupPlanOperations.export\" is forbidden.","stacktrace":null,"effect":null,"troubleshoot":null,"date":"2021-05-06T14:22:28.761081+00:00","context":{"_internal":"100016:-1:-1","operation_name":"BackupPlanOperations.export"}}
Fehler: 0x1510054
$module = "abr11cli_vsa64_26172"
CommandLine::ExportPlanCommand::GetAndSavePlanAMS : d:\1089\enterprise\command_line\abr11\commands\plan\export_plan_command.cpp(94)
-->
I don't know where to grant a user this operation.
Kind Regards
Lukas


- Log in to post comments

Hello Peter!
Thank you for your response.
Yes: Either i forget to export the plan after i made a change, or i am too lazy to start the web interface.
I do a backup at shutdown. And sometimes i need to reboot the computer without a backup. So i digged in to acrocmd to disable and enable the plan. That works for the machine proper. But there I have a common issue with the behaviour of acrocmd (--service=ams)
Conclusion:
After I applied a change to a plan, I'd like to backup that plan; like saving configuration of a NAS.
-- Lukas
- Log in to post comments

Hello Lukas,
thank you for posting on Acronis forums!
Could you please share with us the exact command output?
I don't know where to grant a user this operation.
This should be the user with access to AMS.
- Log in to post comments

Hello Maria
I welcome that!
Yes. Meanhwile I have worked a little on that. I have the following commands:
a)
acrocmd export plan --service=ams --id=48E3D909-A9D3-4B0A-B251-2C9693624816 --loc=D:\Scripts\Logs\ClientProtection_AMS.xml
Output:
<--
C:\Windows\system32>acrocmd export plan --service=ams --id=48E3D909-A9D3-4B0A-B251-2C9693624816 --loc=D:\Scripts\Logs\ClientProtection_AMS.xml
An error occurred while executing the command.
Fehler: 0x1510008
$module = "acrocmd_vsa64_26981"
`anonymous-namespace'::PrintPerformingResult : d:\1732\enterprise\command_line\engine\impl\engine.cpp(65)
{"effect":null,"troubleshoot":null,"context":{"_internal":"100016:-1:-1","operation_name":"BackupPlanOperations.export"},"date":"2021-05-13T12:20:23.765800+00:00","stacktrace":null,"reason":"wcsOperationForbidden","cause":"Operation \"BackupPlanOperations.export\" is forbidden."}
Fehler: 0x1510054
$module = "abr11cli_vsa64_26981"
CommandLine::ExportPlanCommand::GetAndSavePlanAMS : d:\1732\enterprise\command_line\abr11\commands\plan\export_plan_command.cpp(94)
-->
b)
acrocmd export plan --id=48E3D909-A9D3-4B0A-B251-2C9693624816 --loc=D:\Scripts\Logs\ClientProtection_AMS.xml --credentials=srvc_Acronis_AMS,xh/jPO8NNCde71oQLxFgHNj1MOs3zFX95ZA7jLeIGszzqLnAvvbWW6CJ6KoR2A==,encrypted
Output:
<--
An error occurred while executing the command.
Fehler: 0x1510008
$module = "acrocmd_vsa64_26981"
`anonymous-namespace'::PrintPerformingResult : d:\1732\enterprise\command_line\engine\impl\engine.cpp(65)
{"context":{"$module":"mms_rest_api_vsa64_26981","TraceLevel":"0x4"},"domain":"global","origin":{"code":56,"fields":{"$module":"mms_rest_api_vsa64_26981","TraceLevel":""},"linetag":"0xf0a6525634369ae3","module":252,"suberror":{"code":56,"fields":{"$module":"mms_rest_api_vsa64_26981","TraceLevel":""},"linetag":"0x5b0018a6e6938007, d:\\1684\\enterprise\\common\\dml\\synchronous_data_store.cpp:254, Dml::SynchronousDataStore::ReadSingle","module":252,"suberror":null,"text":"Mit dem nachfolgenden Kriterium kann kein Objekt gefunden werden: ' Root (Composite)\n [Is (Common::String) = Gtob::Dto::ProtectionPlan]\n ID (Common::Guid) = 48E3D909-A9D3-4B0A-B251-2C9693624816\n'."},"text":"Mit dem nachfolgenden Kriterium kann kein Objekt gefunden werden: ' Root (Composite)\n [Is (Common::String) = Gtob::Dto::ProtectionPlan]\n ID (Common::Guid) = 48E3D909-A9D3-4B0A-B251-2C9693624816\n'."},"reason":"internalError","serCode":"0x00fc0038+0x00fc0038"}Fehler: 0x1510054
$module = "abr11cli_vsa64_26981"
CommandLine::ExportPlanCommand::GetAndSavePlanMMS : d:\1732\enterprise\command_line\abr11\commands\plan\export_plan_command.cpp(68)
-->
For getting the plan-ID i use the following command:
acrocmd list plans --service=ams --output=raw
I guess i have here an error, but I had no time for a closer look-up to this error.
So providing the credentials parameter will lead to a different error. But the "list plans" is not working with "--credentials":
acrocmd list plans --service=ams --output=raw --credentials=srvc_Acronis_AMS,xh/jPO8NNCde71oQLxFgHNj1MOs3zFX95ZA7jLeIGszzqLnAvvbWW6CJ6KoR2A==,encrypted
<--
An error occurred while executing the command.
Fehler: 0x1510008
$module = "acrocmd_vsa64_26981"
`anonymous-namespace'::PrintPerformingResult : d:\1732\enterprise\command_line\engine\impl\engine.cpp(65)
Parameter 'credentials' is not recognized or not expected.
Fehler: 0x1510050
$module = "abr11cli_vsa64_26981"
CommandLine::`anonymous-namespace'::UnrecognizedOptionThrower::PrintName : d:\1732\enterprise\command_line\options\impl\option_using_validator.cpp(43)
-->
Kind Regards
Lukas
- Log in to post comments

Hello Lukas.
have you tried the following syntax:
acrocmd export plan --loc=D:\Scripts\Logs\ClientProtection_AMS.xml --output=raw --id=48E3D909-A9D3-4B0A-B251-2C9693624816
It should be run on a server where AMS is installed.
- Log in to post comments