MSDI
10 years agoLevel 4
Backup Exec 2015 Post command XML Report
Hi, I am trying to implement a custom "verify job" using a BEMCLI in the "POST COMMAND" config option.
I call it using "powershell c:\bat\myscript.ps1" and it gets called so everything works fine.
The problem I am having is that I need to be able to parse the xml report that is generated during the job
I saw the job ID was set as an environment variable so I read it using
sJobID = $env:BE_JOB_ID
There is also a second environment variable which is
$sXmlFileName = $env:VSR_LOG_FILE_NAME which seems to be the temporary xml report (The name looks like C:\Program Files\Symantec\Backup Exec\Data\VSR_Log_File1.xml"
But I can't find the data I need in the reports.
It seems the report gets saved AFTER the post command is completed so the file BEX_SERVER06_00025.xml (number gets incremented on each run) is not available...
I've been playing with
Get-BEJob -id $sJobID |
Get-BEJobHistory -FromLastJobRun |
Get-BEJobLog
Without success...
Is there a way to retrieve what files were backuped during the post command phase ? I need to return an error if my custom verify finds something invalid so that the job state is switched to "failed".
Any help would be appreciated.
Regards