Video Screencast Help
Give us your opinion and win with Symantec! Please help us by taking this survey to tell us about your experience with Symantec Connect, so that we can continue to grow and improve.  Take the survey.

BEMCLI Wait-BEJob Query

Created: 30 Jun 2013 | 3 comments

Hi,

Currently using BE2012 v14.0 rev1798 on Windows Server 2008 R2.  We have 4 jobs backing up our file server.  Each job is quite large, 2-3 TB each direct to tape.  Each job is configured to enable Checkpoint Restart which comes in handy as we often get a job failure due to:

Final error: 0xe00084f8 - The network connection to the Backup Exec Remote Agent has been lost. Check for network errors.

I'm reading up on using bemcli to chain jobs and have a couple of questions regarding its usage:

1.  If the backup job has checkpoint restart enabled and wait-bejob is part of the command like this ...

Start-BEJob -In "Job1" -Confirm:$False | Wait-BEJob
Start-BEJob -In "Job2" -Confirm:$False | Wait-BEJob
Start-BEJob -In "Job3" -Confirm:$False | Wait-BEJob
Start-BEJob -In "Job4" -Confirm:$False | Wait-BEJob
 
... then lets say Job1 fails midway, does wait-bejob sees it as Job1 completed and starts Job2?
 
2a.  If Job2 doesn't start, does Job1 still resumes where it left off?  And Job2 only starts once Job1 is fully completed?
 
2b.  If Job2 starts, what happens to Job1?  Does it still resume where it left off (which means I now have 2 concurrent jobs running)?
 
Thanks.
Operating Systems:

Comments 3 CommentsJump to latest comment

pkh's picture

1. I have not have a job failure, but I believe the answer to your question is yes.

2b. You have to manually restart Job1.  It does not restart automatically.

terencewklau's picture

Hi pkh,

The job failure is not due to bemcli.  Its just something inherent in our backup jobs using the GUI.

So I was wondering how that will affect us using bemcli to run the job instead.  I'm assuming if the job fails, the bemcli command won't resume the job unlike running it from the GUI.  Which you have also agreed.

Any command in bemcli that takes into account a job failure and resumes where it left off?  I couldn't find any in "get-command -module bemcli".

Thanks.

pkh's picture

Any command in bemcli that takes into account a job failure and resumes where it left off?

There is no such cmdlet.  If you want to restart the failed job, You would have to manually restart the job.  Start-BEJob should do it.

Using BEMCLI to start the job does not change the behaviour of BE when it comes to handling job failures.  It would be like starting a job using the GUI.