cancel
Showing results for 
Search instead for 
Did you mean: 

BEMCMD Hangs

mabryant
Level 2

I am trying to submit a restore job using BEMCMD so I can test the latest backup job for compliance purposes.

I have stripped almost everything out of my script, but it still won't submit.  I figured I'd put the harder bits back in after I got a simple one working.

 

My script looks like this:

=========================================

[General]
JOB_TYPE=Restore
JOB_PRIORITY=Medium

[Restore_Options]
RESTORE_EXISTING=1

[Selections]
SELECTION1=\\SRVR01\E:\REPORTS\SALES\WklyQuotes.pdf

[Schedule]
RUN_IMMEDIATE=YES

 

=========================================

 

The results are:

 

 

=========================================

C:\Program Files\Symantec\Backup Exec>bemcmd -o90 -v -f:c:\scripts\restorefile\template.txt

Backup Exec Command Line Applet version 13.0.2896.
Copyright (c) 2009 Symantec Corporation.  All rights reserved.

Connecting to local media server...
Connected.
Reading script file...
Getting new job name...
Success.
Inserting schedule...
Inserting job...

=========================================

 

 

It just hangs there at the Inserting job.... step.  It never finishes.

 

What am I doing wrong?

 

 

Mark

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

mabryant
Level 2

Ok finally got it to submit.  It was an omission on my part.

In case anyone else has this problem, I had to fully qualify my server using the following

 

\\server.domain.com\Drive:\path\file

 

Once I did that, everything worked.

 

Thanks.

 

Mark

View solution in original post

4 REPLIES 4

pkh
Moderator
Moderator
   VIP    Certified

 

When the job is running, is there any outstanding alerts?  Also, look at the BE console and see whether the job is waiting for some resource.

You should also check the job log to see what is generated by your script.

mabryant
Level 2

That's just it, I've got nothing in the Alerts or Job Monitor.  It just sits there at Inserting Job doing nothing.

mabryant
Level 2

I let it sit there while I went out and helped someone and after 30 minutes or so it finally came back with an error.

 

=============================

C:\Documents and Settings\Administrator.PACIFIC-BEARING>"C:\Program Files\Symantec\Backup Exec\bemcmd" -o90 -v -f:c:\scripts\restorefile\template.txt

Backup Exec Command Line Applet version 13.0.2896.
Copyright (c) 2009 Symantec Corporation.  All rights reserved.

Connecting to local media server...
Connected.
Reading script file...
Getting new job name...
Success.
Inserting schedule...
Inserting job...
ERROR CODE: 1168
ERROR: Element not found.

Disconnecting from server...
Disconnected.
RETURN VALUE: -1

mabryant
Level 2

Ok finally got it to submit.  It was an omission on my part.

In case anyone else has this problem, I had to fully qualify my server using the following

 

\\server.domain.com\Drive:\path\file

 

Once I did that, everything worked.

 

Thanks.

 

Mark