Forum Discussion

Fabian_Schwarz's avatar
6 years ago

Rescan Inventory in the robotic library

Hi all,

I my job I have a HPE MSL6480 robotic library.
Every day I need insert scratch tapes in this library.
When I insert scratch tapes, I need press a button named "Rescan Inventory" in this library
and then issue the NBU Inventory robot (by the GUI or by the CLI -> vmupdate).

I´m looking for any NBU command line to substitute the "Rescan Inventory" process in the library.


9 Replies

  • There is no issue with the connectivity between the NetBakup RCH and the library, else I presume Fabian would have mentioned it.

    Most libraries, at least will auto inventory themselves when tapes are added, either to the CAP or into the main slots directly.

    NetBackup does NOT run a inventory on the library (despite the term being used) - an NBU inventory is simply the scsi CDB 'read element status' which casues the library to TELL NetBackup what is where.  In order for the library to tell NBU it has to know itself, hence why it has to run it's own inventory.

    You cannot make the library run it's own inventory from NBU, that is, you cannot run 'Rescan Inventory' from NBU.

    What might be possible, is to get the library to automatically inventory itself when one of the doors (or magazines) is opened and closed.  HP should be able to advise if this is possible, but from NBU it cannot be done directly.






    • mph999's avatar
      Level 6

      In fact thinking about this, I'm slightly surprised that the library isn't automatically running it's own inventory without having to press the Rescan Inventory button.  Have you checked the manual to see if there is an option somewhere in the library console.  I don't think I've ever seen a library that doesn't auto inventory itself, although there is usually an option to force an inventory if desired.

  • Fabian_Schwarz what command are you using for this??

    Have you tried empty_map option in your CLI?

    vmupdate -rt tld -rn robot_number -h EMM_server -rh robot_control_host -empty_map -use_barcode_rules

    • mph999's avatar
      Level 6

      The empty map option wont be of anyuse until the robot has completed its own inventory.  When you empty map, the robot tells NBU what is in the MAP /CAP and wha is in the regular slots.  Once NBU has this info it sends move medium scsi commands to move the tape from the MAP to an empty slot.

      We don't even know from the original post if tapes are being added to the MAP or directly into the slots, which would be a little unusual but still valid.  It's irrelevant anyhow, as no matter which way it's done, the library still has to run its own inventory, and it is the need to manually run this that is being questioned.

      The GUI inventory option and vmupdate command do the same thing which is to issue the scsi read element status command, which does not trigger the robots own inventory.  As i mentioeed one of my other posts there should be no need, as the library should be doing this automatically.

      • Fabian_Schwarz's avatar
        Level 4

        Could I use robtest to verify which tapes are in the MAP ? This command could help me ?

    • Fabian_Schwarz's avatar
      Level 4

      Hi Tape_Archived,

      I tried all these parameters in the vmupdate command, without success.


      • Tape_Archived's avatar

        Then may be there is no robotic connection between your media server to the Tape Library. What is happening here is - you are asking Tape Library to Inventory itself and then NetBackup just updates its media database that new tapes are available in the Tape Library.

        Can you please try robtest and see if you can connect to the Tape Library?? Also do you see any error when you try to run command with different options?