cancel
Showing results for 
Search instead for 
Did you mean: 

BEMCLI and Replication Manager

DiegoMZA
Level 2

Hi all!

I make SQL Snapshots (SS) with Replication Manager (RM) Software from EMC Storages.

Now I want to integrate the SS Job with a Backup Exec 2012 Job, that copy the SS to tape or disk space.

On RM i had the option to run a script after mountin de SS on Backup Host. Lookin for a solution, I found BEMCLI!!!

I write a BAT file  that call a PowerShell (PS) script, that contain the Start-BEJob order.

Everithing works fine, but there is a detail:

RM waits until the BE job finish. I think that RM waits that the BAT file finish, the BAT file wait tha PS finish, and PS waits that BE Job finish. There is any way to force PS scripts launch the job and inmediatly exit???

Scripts:

BAT:

C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe C:\Users\Administrator\Desktop\RM_Mount.ps1
exit

PS1:

import-module "\program files\symantec\backup exec\modules\bemcli\bemcli"

get-bejob -name "RM_Mount-Backup" | start-bejob -confirm:$false

exit
 

Any suggestion??

Thanks!!!

Diego Santoni

Mendoza, Arg.

1 ACCEPTED SOLUTION

Accepted Solutions

pkh
Moderator
Moderator
   VIP    Certified

I think your problem is that your batch file is not running.  Try this instead

C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe "C:\Users\Administrator\Desktop\RM_Mount.ps1"

View solution in original post

1 REPLY 1

pkh
Moderator
Moderator
   VIP    Certified

I think your problem is that your batch file is not running.  Try this instead

C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe "C:\Users\Administrator\Desktop\RM_Mount.ps1"