Unsolved
This post is more than 5 years old
6 Posts
0
368
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
2.4K Posts
0
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