I recently deployed Veeam Availability Suite One ver. 8 in our environment, but I’m having trouble getting a simple test script to run when a VM is powered off. I’m using the ‘VM power status’ alarm to monitor a test vm which should kick off a simple script.
My automate goal is to automate the failover of a highly-critical vm to a replica.
Vitaliy S. wrote:Does Veeam ONE service account have access to the location of the script? Can you trigger that script manually using our service account?
The service account has local admin rights and can manually run the script. This is a simple tasks that should run with no problems. The alarm is monitoring the vm because the 'Repeat Count' is increasing every time it’s powered on/off. I just don't know why the 'Action' is not being performed.
jtweath wrote:The service account has local admin rights and can manually run the script.
Try to explicitly add read write access to the folder with scripts, so that account used for Veeam ONE service can execute them. If it doesn't help, then please open a support case with our team and let me know your case ID.
I explicitly added the veeam service account, but it still didn't work. Also, one of our consultants was unsuccessful in getting it to work in their lab as well.
Hi Antonio,
Yes, the case mentioned above has been resolved via support by installing the private patch and the last update.
What product version are you at?
Thanks!
1. Update to patch No. 2 (KB1927) - already done
2. check Set-Execution Policy if on Unrestricted level - already done. Powershell scripts are running and generating results. I'm using a simple batch file in my testing. It runs as standalone, but not as post script in Veeam.
3. Add Veeam One account to the Windows Administrators group - already done adding the service account for Veeam on the local administrators group of the Veeam server.
Script is still not working after doing the steps above.
I also installed one Veeam server with V8 and latest update (Version 8.0.0.1669), and still postscript is not working on this version.
Seems I'm not doing it right.
Can you tell me how to make this work on V8?
We tested one script he provided and it did work.
The sample script runs calc.exe when an alarm was triggered.
It did generate lots of calc instances in the Task Manager (both V7 and V8).
Seems script runs in hidden mode on Veeam One server.
However, my goal was to run a .wav file every time an alarm is triggered.
He provided me another script (I really appreciate the support) which plays .wav file.
The script runs as standalone program but not as post script from Veeam server which is a Hyper-V VM by the way.
He's testing this on lab and has yet to get back to me.
Hope he can nail it and make the .wav file play once an alarm is triggered.
I didn't see any errors generated on the eventlog related to non-execution of script.
Where can I find the script execution log?
Even if I point the PSexec to the Veeam host (local) server itself, the script runs successfully as a standalone program when run on same Veeam server.
But as a post-alarm script in Veeam seems it doesn't run because no audible alarm is played when triggered.
Tony, it's either in VeeamDCS.log or somewhere else, our technical team should know for sure. Can you share your observations with your engineer while I'm trying to reproduce this in my lab?