Emailing Deployment Server Task Failures
I have wanted email results from Deployment Server from the first day that I started using it.
I finally got around to setting up my own, simple emailing job for failed jobs.
I use BMAIL.EXE in my setup, but BLAT.EXE could be used as well.
1. Create a new job called "Email Failed Job Result".
2. Create a "Run Script" task that runs the following on the Deployment Server:
echo The job named "%CALLINGJOBNAME%" failed on %COMPNAME% on %DATE% at %TIME% >> "c:\scripts\bmail\altiris_results.txt"
"c:\scripts\bmail\bmail.exe" -s MAILSERVERNAME -t DeploymentNotifications@yourcompany.com -f DeploymentNotifications@yourcompany.com -h -a "Deployment Job Failure Notification" -m "c:\scripts\bmail\altiris_results.txt"
del "c:\scripts\bmail\altiris_results.txt"
3. Be sure that Script Run Location is set to "Locally on the Deployment Server".
4. Now, when you create a task that you want failure notification of, change the Default action of "Stop" to "Select a job" and choose "Email Failed Job Result".
If you can improve on this please let everyone know how. I'm sure that a VBSCRIPT would do better, I just haven't taken the time to make something.