Mark_Eades
13 years agoLevel 3
BEMCLI -WAIT for jobs !!
I am on that uphill struggle to adsorbe the syntax of powershell and I am having dubious success in trying to enable a -WAIT option for commandlets. With the sample below, on invoking successfully an...
- 13 years ago
Use Wait-BEJob to wait for your job to complete. Your script should look like
Get-BETapeDriveDevice -Name "TAPE" | Submit-BEInventoryJob | Wait-BEJob | Write-Host
The Write-Host cmdlet is to write the job history to the console. This will show the sucess/failure of the job. There is no need for the loop. If you put your import-module statement in your profile, then this statement is all that is needed. See my articlehttps://www-secure.symantec.com/connect/articles/preparing-your-powershell-environment-run-bemcli-and-scriptsAlso, there are a couple of other things that you can do with BEMCLIhttps://www-secure.symantec.com/connect/articles/using-bemcli-speed-taskshttps://www-secure.symantec.com/connect/articles/use-bemcli-chain-jobs