How to run robotic inventory from command line for NetBackup.

Article: 100029578
Last Published: 2008-01-21
Ratings: 1 1
Product(s): NetBackup & Alta Data Protection

Problem

How to run robotic inventory from command line for NetBackup.

Solution

Environment:NetBackup 5.X and later with robotic library and barcode reader.

Change:Physically added and/or removed media from library.

Note:You can omit -h and -rh if you are running the command locally on thathost.  This applies to both the vmcheckxxx and vmupdatecommands too.

A) To showlibrary contents use the vmcheckxxx command:
Windows: C:\Program Files\Veritas\Volmgr\bin\vmcheckxxx -rt<robot_type> -rn <robot_number> -h <volume_database_host orEMM_host> -rh <robot_control_mediaserver>
UNIX: /usr/openv/volmgr/bin/vmcheckxxx -rt<robot_type> -rn <robot_number> -h <volume_database_host orEMM_host> -rh <robot_control_mediaserver>
Example:
vmcheckxxx-rt tld -rn 0 -h mymaster.mycompany.com -rhmymaster.mycompany.com

B) To updateNetBackup's Volume database configuration use the vmupdatecommand:
Windows: C:\Program Files\Veritas\Volmgr\bin\vmupdate -rt<robot_type> -rn <robot_number> -h <volume_database_host orEMM_host> -rh <robot_control_mediaserver>-use_barcode_rules
UNIX: /usr/openv/volmgr/bin/vmupdate -rt<robot_type> -rn <robot_number> -h <volume_database_host orEMM_host> -rh <robot_control_mediaserver>-use_barcode_rules

Note:To empty map after updating, add the switch: -empty_map.   Some libraries do notsupport -empty_map switch when MAP slotsare empty resulting in a robotic error.  When this happens the inventorywill not take place. For these libraries simply omit the -empty_map switch when MAP isempty.

Examples:
vmupdate-rt tld -rn 0 -h mymaster.mycompany.com -rh mymaster.mycompany.com-use_barcode_rules -empty_map
vmupdate-rt acs -rn 1 -use_barcode_rules -empty_map
vmupdate-rt tl8 -rn 2 -rh mymediaserver.mycompany.com-use_barcode_rules
vmupdate-rt tlh -rn 3 -h mymaster.mycompany.com -rh mymediaserver2.mycompany.com-use_barcode_rules


Was this content helpful?