This post is more than 5 years old
4 Posts
0
868
March 16th, 2017 06:00
Reporting free tapes as Email
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
No Events found!
wlee
263 Posts
0
March 16th, 2017 13:00
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
bingo.1
2.4K Posts
1
March 16th, 2017 14:00
Of course you can also write a script which
- saves the mminfo output to a file and
- sends it per email
Caspar_T
4 Posts
0
March 17th, 2017 04:00
Thanks, I will do exactly this.
Caspar
Caspar_T
4 Posts
0
March 17th, 2017 04:00
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