cancel
Showing results for 
Search instead for 
Did you mean: 

Script to Inventory Robot

jacksors
Level 4
Does anyone know of a way to script inventory operations on a robot?

Thanks.
16 REPLIES 16

Sriram
Level 6
You can but why do want to script it. 

Its just knowing the command and putting them in the shell script. 

If you dont have the command let me know i can provide the same

jacksors
Level 4
Thanks. I'm running on the Windows platform and found that the command is "vmupdate"

I ran this command with the following information

vmupdate -rt TLD -rn 0 -h <media server> -empty_map

and got this error:

robot number and robot host mismatch (61)
robot number and robot host mismatch (61)

Any ideas why?

Will_Restore
Level 6
<installpath>volmgr/bin/vmupdate -rt <robtype> -rn <robnumber>

plenty of options to choose from on top of the basic command.
man vmupdate for details

Will_Restore
Level 6
Resolution:
This is easily resolved by doing the following:

1. Proceed to the Media section in the left pane of the NetBackup Administration Console
2. Identify the media in the right pane that still lists as being in the old robot. Right-click on these media and select Move.
3. Select Standalone from the Robot drop down menu (Figure1). Click OK.

http://seer.entsupport.symantec.com/docs/270028.htm

J_H_Is_gone
Level 6
does your media server 'control' the robot?

-h should be the master server that controls the robot.

Will_Restore
Level 6
-h  emm server or volume database host
-rh  robot control host

Sriram
Level 6

You need to verify the robotic control host and the robot number is correct. 

For example verify if the media server which you have given controls the robot, else give the host which controls the robot.

In our environment master server is the robotic control host for all the robots we have created so when ever we inventory we give the robotic host as master server.

Try these commands also:

Inventory Robot

vmcheckxxx -rt robot_type -rn robot_number -h <media server> -list (where robot_type is tld, acs etc)


Inventory Robot and Update Configuration

vmupdate -rt robot_type -rn robot_number -h <media server> -list (where robot_type is tld, acs, etc)

jacksors
Level 4

That tech not really doesn't apply though. I have not changed the media owner or changed my robot.

All I'm trying to do is simply inventory the robot, but instead of going through the GUI and doing it (which works by the way) I would like to execute the command from the command line.

In the GUI, on the inventory screen under device host, I select my media server which is the control path to the robot. So I would assume that when using the -h command with vmupdate that this is the server I specify as well. Am I wrong on that?

Sriram
Level 6
DID YOU TRIED THIS

You need to verify the robotic control host and the robot number is correct.

For example verify if the media server which you have given controls the robot, else give the host which controls the robot.

In our environment master server is the robotic control host for all the robots we have created so when ever we inventory we give the robotic host as master server.

Try these commands also:

Inventory Robot

vmcheckxxx -rt robot_type -rn robot_number -h <media server> -list (where robot_type is tld, acs etc)

Inventory Robot and Update Configuration

vmupdate -rt robot_type -rn robot_number -h <media server> -list (where robot_type is tld, acs, etc)

jacksors
Level 4

Well in the GUI it shows this "TLD(0)".

I would assume that if I type the following:

vmupdate -rt TLD -rn 0 -h <media server> -empty_map

That I would have correctly Identified the Robot Number and Type, correct?

Also, I have tried the short and FQDN for each of my media servers and my master server for the -h entry, all of them return the same error.

I have one robot that is shared between the two media servers. The library is configured with two control paths so that each one can talk to it.

My question is, if I inventory through the GUI and select my media01 server as the device host when I perform an inventory and it works, why does it not work when I execute the same command from a command line. It makes no sense.

Sriram
Level 6
-h should be your EMM server

try including -rh parameter to it which should be your robot_control_host

see below the usage syntax for better understanding:

Usage: vmupdate -rt <robot_type> -rn <robot_number>
[-rh <robot_control_host>] [-h <EMM_server> | <volume_database_host>]
[[-if <inventory_filter_value>] [-if <inventory_filter_value>] ...]
[-full] [-recommend] [-interactive]
[-involgrp <volume_group>] [-outvolgrp <volume_group>]
[-mt <media_type>] [-p <pool_name>] [-use_barcode_rules]
[-use_seed] [-mp media_id_prefix] [-no_sides]
[-no_format_optical] [-overwrite_labels] [-empty_map]

jacksors
Level 4
Tried it, that helped. vmcheckxxx returned the inventory of the library.

vmupdate returned this:

Unable to obtain server version
authentication failed (187)

Sriram
Level 6
Good job.   Great to hear it worked. 

If you issue is resolved pls mark this post as solved under my reply.

Thanks.

jacksors
Level 4
Can you help me resolve the fact it returns an authentication problem?
Unable to obtain server version
authentication failed (187)

J_H_Is_gone
Level 6

Sriram
Level 6
Jacksors, can you give me the full command you tried for vmupdate while you got the 187 error on it.