cancel
Showing results for 
Search instead for 
Did you mean: 

Automate vmchange

MikeM11
Level 4

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

1 ACCEPTED SOLUTION

Accepted Solutions

MikeM11
Level 4

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

View solution in original post

6 REPLIES 6

Anonymous
Not applicable

Remove the -w

 

 

 -multi_inject
      used with the -res option to initiate the multiple inject loop in the
      specified robot's robotic control daemon. Use a -w option for interactive
      multiple inject, use the -verify_eject and -continue_ie/-abort_ie
      options otherwise.

MikeM11
Level 4

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

Will_Restore
Level 6

(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. 

MikeM11
Level 4

Bill,

My apologies, I could not see for looking.  It is there and I obviously missed it (NetBackup_Commands.PDF, p.696).

Mike

RonCaplinger
Level 6

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.

MikeM11
Level 4

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