Caspar_T
1 Copper

Reporting free tapes as Email

Jump to solution

Hi there,

I'm coming from NetBackup and am trying to get my head around some monitoring and reporting.

Currently I am trying to figure out how I can report on tapes that are available for writing, which can be sent to our tape management team so they can insert more tapes as needed.

Is there any predefined report or tool that can do this for me? Or is it something I can script myself? I am also unsure what I should be reporting on. Should it be tapes that are appendable?

Regards,

Caspar

Labels (1)
0 Kudos
1 Solution

Accepted Solutions
wlee4
2 Iron

Re: Reporting free tapes as Email

Jump to solution

You would want a list of volumes that are appendable or recyclable.  These are states that NetWorker can use to write data to.

Volume that are full, or read only are not available for writing...

SO...  I do not have anything to test this with, but maybe using the mminfo command: (hope this works):

     mminfo -mvV -q "!full, !readonly" -r volume | sort

0 Kudos
4 Replies
wlee4
2 Iron

Re: Reporting free tapes as Email

Jump to solution

You would want a list of volumes that are appendable or recyclable.  These are states that NetWorker can use to write data to.

Volume that are full, or read only are not available for writing...

SO...  I do not have anything to test this with, but maybe using the mminfo command: (hope this works):

     mminfo -mvV -q "!full, !readonly" -r volume | sort

0 Kudos
Highlighted
bingo.1
3 Cadmium

Re: Reporting free tapes as Email

Jump to solution

Of course you can also write a script which

  - saves the mminfo output to a file       and

  - sends it per email

Caspar_T
1 Copper

Re: Reporting free tapes as Email

Jump to solution

That was what I was looking for. I had to modify it slightly as I wasn't allowed to use both -m and -r flags, and my bash shell didn't want to read !full correctly. I ended up doing this:

mminfo -vV -q "full=false" -r volume | grep "^N....." | wc -l

Where ^N is the label series, so I don't get my two disk volumes in the query results as well.

As bingo suggests I will throw this in a script which I will run from crontab (using RHEL) and it will mail the result to my colleagues.

Thanks,

Caspar

0 Kudos
Caspar_T
1 Copper

Re: Reporting free tapes as Email

Jump to solution

Thanks, I will do exactly this.

Caspar

0 Kudos