Video Screencast Help
Search Video Help Close Back
to help
Not able to make it to Vision this year? Get a sampling in the Best of Vision on Demand group.

Automate vmchange

Updated: 06 Jan 2012 | 6 comments
MikeM11's picture
0 0 Votes
Login to vote
This issue has been solved. See solution.

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

Comments

Stuart Green's picture
04
Jan
2012
0 Votes 0
Login to vote

Remove the

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.

Tip: Get overview/document your NBU environment. Run 'nbsu' and review the output.

• If this provides help, please vote or mark appropriate solution.

MikeM11's picture
06
Jan
2012
0 Votes 0
Login to vote

Solution

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

wr's picture
06
Jan
2012
0 Votes 0
Login to vote

undocumented?

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

good Will backing-up

MikeM11's picture
06
Jan
2012
0 Votes 0
Login to vote

Correction (Cap in hand)...

Bill,

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

Mike

RonCaplinger's picture
09
Jan
2012
0 Votes 0
Login to vote

Did you try AUTO_UPDATE_ROBOT?

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's picture
10
Jan
2012
0 Votes 0
Login to vote

AUTO_UPDATE_ROBOT

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