Forum Discussion

thesunlover's avatar
14 years ago
Solved

One command to List all available tapes in a pool?

Hi, How can I use one-line command to list all currently available tapes in a specific pool?

Thank you much in advance.

  • is to take a copy of the "available_media" script & amend it such that you are only looking at a specific volume pool as opposed to all volume pools.

    Tried this on UNIX & only needs a change to one line to facilitate this:

    $VMPOOL -listall -b 2>/dev/null | tail +3 | sort +0 1>$VMPOOL_OUTPUT 2>/dev/null

    to

    $VMPOOL -listall -b |  grep your_pool_name 2>/dev/null 1>$VMPOOL_OUTPUT 2>/dev/null

    or you could make it more generic & put an input statement for the pool name of your choice.

     

    @Marianne - thanks for putting me straight! Confusion reigned on my side between AVAILABLE and ACTIVE!

12 Replies