on 04-03-2012 12:08 AM
This Powershell script is a follow-up to my earlier script
Hi...
The script runs and generates the following output:
BEMCLI> .\import-FirstEmptyslot.ps1 "Robotic Library 0001"
Name : Media Request
Severity : Question
Category : MediaIntervention
Date : 18.05.2012 11:45:25
Message : Please insert media into the portal.
Respond OK to acknowledge.
Respond Cancel to cancel the operation.
After this, the script terminates. In BE, there's a running job waiting for a tape in the mailslot.
So script must be run with a tape already in the mailslot. Otherwise, the import job will hold up the library while waiting for the missing tape. This is the same behaviour as in previous versions of BE.
This problem of not having a tape in the mailslot during the automated import can be solved by adding the
switch to the Submit-BEImportMediaJob cmdlet in the script.
This solution is suggested by another user for the other import script
I couldn't find any reference which defined the <TimeSpan> parameter; fixed the import job holding up the library while the importslot was not populated by adding the following lines at the end of import-FirstEmptyslot.ps1 :