01-31-2013 07:50 AM
Hello,
i wasn't able to get the exceptions of a Job via the BemCLI like I see them in the GUI of BackupExec 2012 under "Job Log"/"Exceptions".
Has anyone an idea how to get a list of the exception during the runtime of a job?
Kind regards
Solved! Go to Solution.
01-31-2013 04:37 PM
I am not aware of any BEMCLI cmdlet which will give you the list of exceptions whether while the job is running or after the job. After the job completes, you can get the job log with BEMCLI and examine it. The exceptions would be in the joblog.
01-31-2013 11:04 AM
can you post both the job logs and what command are you running to get this result.
01-31-2013 04:37 PM
I am not aware of any BEMCLI cmdlet which will give you the list of exceptions whether while the job is running or after the job. After the job completes, you can get the job log with BEMCLI and examine it. The exceptions would be in the joblog.
02-01-2013 12:59 AM
Hello,
thanks for your reply.
Get-BEJobHistory "<JobName>" | Get-BEJobLog
did the trick. The output format can be controlled with the parameter -OutputStyle
I want to parse a part of the output and use it in our monitoring script in Microsoft Powershell. The output in txt and html format isn't easy to parse. Isn't there a more reliable and more easy to parse possibility to get the job log?
02-01-2013 06:42 PM
One of the parameters in the Get-BEJobHistory output is the JobLogFilePath. You can use this to get the joblog in XML format and then use the XML parser in Powershell to parse the file for easier extraction and analysis.