2
I have in my environment Arcserve Backup, which is the tape backup program we use, in it we have a program called ca_qmgr that manages the queues of backup Tvs, with a parameter via CMD so that it returns me the status of current Tvs as in the figure below :
the script I used to return this output is as follows :
strCMD = ("""C:\Program Files (x86)\CA\ARCserve Backup\ca_qmgr.exe"" -list")
strResultado = CreateObject("WScript.Shell").Exec(strCMD).StdOut.ReadAll
wscript.echo strResultado
What I need now is the following, take the value of the field LAST-RESULT and if any of the Jobs is in the status "FAILED" return me the value numeric 1, and if all are ok return me the value numeric 0, I tried but could not anyone have any idea ?