Forum Discussion

mabryant's avatar
mabryant
Level 2
14 years ago
Solved

BEMCMD Hangs

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

 

 

 

  • 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

  •  

    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.

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

  • 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

  • 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