UNSOLVED

Dieter_Adriaens

updated

10 years ago

D

Dieter_Adriaens

1 Rookie

•

6 Posts

0

427

December 1st, 2016 06:00

How can I check how many free slots a tape library has?

Hi,

We are currently running version 9.0.1.4 of Networker. We still have the requirement of writing to tape, so we have written a tapehandling program ourselves that guides the team with the import and export of tapes. Today someone put the library full of tapes so that no tape needed for a restore could be loaded and the tapehandling program could not handle this in a decent manner.

Is there a way (via command-line) that you can ask networker how many free slots there are in a tape library, so I can write a check to stop importing if 5 slots are free.

  • bingo.1

    1 Rookie

    •

    2430 Posts

    262

    0

    Posted December 1st, 2016 10:00

    Unfortunately, there is no direct command to check that.

    What you could do is to write a script which will do the following:

      - run "nsrjb > file"             (will create a file with all slots & devices and their media, if available)

      - filter 'file entries'      for empty entries

      - count that number and verify whether your limit has been met

      - issue whatever action you want