01-04-2012 07:24 AM
Hi,
I am trying to automate the multi inject process without success. I have a script (as below) which I can run as a batch file and works correctly but requires interaction (press Enter to continue). I need to add this as a scheduled task and therefore need to get a script that does not require this interaction:
vmchange -multi_inject -w -res -rt tld -verbose -rn 0 -rh servername.domainname
vmupdate -rt tld -rn 0 -rh servername.domainname -use_barcode_rules
Does anyone have the magical switch that can enable me to automate this?
Thanks, Mike
Solved! Go to Solution.
01-06-2012 01:31 AM
Hi,
Thank you for the suggestion, however removing the -w switch removes the wait function.
I have now solved this by changing the script to the below:
vmupdate -rt tld -rn 0 -rh servername.domain -use_barcode_rules -empty_map
the -empty_map switch appears to be undocumented but works fine. This, added to a batch file and run through a Windows scheduled task is how this has been automated.
Thanks, Mike
01-04-2012 07:39 AM
Remove the -w
01-06-2012 01:31 AM
Hi,
Thank you for the suggestion, however removing the -w switch removes the wait function.
I have now solved this by changing the script to the below:
vmupdate -rt tld -rn 0 -rh servername.domain -use_barcode_rules -empty_map
the -empty_map switch appears to be undocumented but works fine. This, added to a batch file and run through a Windows scheduled task is how this has been automated.
Thanks, Mike
01-06-2012 06:13 AM
(from the manual)
-empty_map
Specifies that volumes in the media access port (map) are moved into the
robot before the robot inventory is started. This option is only valid for TL8,
TLD, or TLM robot types.
01-06-2012 09:25 AM
Bill,
My apologies, I could not see for looking. It is there and I obviously missed it (NetBackup_Commands.PDF, p.696).
Mike
01-09-2012 09:37 AM
Mike,
If your tape library supports/generates the "unit attention message", and if you are not using a partitioned library, you can just add AUTO_UPDATE_ROBOT to your vm.conf file on the robot control host. This causes the library to send a message to the robot control host and auto-inject tapes. From page 31 of the NBU Admin Guide for Windows, Volume 2:
AUTO_UPDATE_ROBOT entry in vm.conf
Use this entry to inject media automatically from the Media Access Port (MAP)
into a TL8 or TLD robot and update the EMM database. Media are injected if the
robot generates a unit attention message.
AUTO_UPDATE_ROBOT
This entry only operates with the TL8 or TLD robots that post a unit attention
when their MAP is opened.
Symantec recommends that this entry not be used with partitioned libraries. Most
robotic libraries with multiple partitions do not post a unit attention when the
MAP is opened.
01-09-2012 11:56 PM
Ron,
I did take a quick look into this option, however our library is partitioned. I have got a working script now that does everything I needed but thanks for the input.
Mike