Video Screencast Help
Scheduled Maintenance: Symantec Connect is scheduled to be down Saturday, April 19 from 10am to 2pm Pacific Standard Time (GMT: 5pm to 9pm) for server migration and upgrades.
Please accept our apologies in advance for any inconvenience this might cause.

BEMCMD Hangs

Created: 11 Apr 2011 • Updated: 12 Apr 2011 | 4 comments
This issue has been solved. See solution.

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

 

 

 

Comments 4 CommentsJump to latest comment

pkh's picture

 

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's picture

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

mabryant's picture

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's picture

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

SOLUTION