I am trying to find a way of reporting on tape usage in Networker. I have searched all the reports and found nothing. Does anyone know of a way to extract this information from the DB or any other way i get them?
You're right - you definitely deserve an answer after all that
I'm not sure exactly what you are looking for but this might help. It's a little script (unix-ksh) for getting the amount of data written to a volume in the last month per volume. This will sum the size of savesets written to the volume during the period defined (here it is one month). You can adapt it to your needs accordingly.
I provide this as an example of what you might use to get this information but I (or EMC) don't take responsibility for its implementation or support - test thoroughly in a test environment before any implementation in production.
find_total_for_vols () {
list_of_vols=`mminfo -t "one month ago" -r volume` for volume in $list_of_vols; do size=`mminfo -t "one month ago" -q "volume=$volume" -r totalsize` total=$(( $(echo $size | sed 's/^.*\s//' | xargs | tr ' ' +) )) echo $volume $total done }
find_total_for_vols
If this isn't what you're looking for, let us know and we'll see what we can do.
guys're right. There're so many ways to use Networker so there can't be the ultimate report solution. For instance, I usually have several pools with different expiration periods etc. But mminfo has got all the data you need to write your own report system using simple scripting.
What Bobby sent is function to calculate sum on ssids per volume.
The only way to get this is by parsing daemon log. I'm in process of doing a draft for reporting of the swiss-knife script I'm developing, but from what I have seen daemon log is the only way to go for this sort of logs. mdb contains data on stuff on it, but not about tape drives usage on the way too - something that I wish to include in my reports as well. If just looking for tape as volume usage then mminfo will take care of backup part (but not restore or reading during cloning which again points finger towards daemon log). I plan to do my thing during summer break... will take daemon.raw and mdb on USB stick and play in shades of some beach
This can be a bit of a can of worms Scott because the criteria here are quite loose - tapes are not fixed in the amount of data they can hold and they may not write all data in one day so you get fluctuating data if you use criteria such as how many tapes had data written on a day, how many tapes were marked full on a day, how many tapes were labelled on a day and so on. I did some work on this in my last contract in which we were trying to predict tape usage to enable bulk purchase of tapes in the long run, so these figures became even more convoluted as you are then trying to tie this data with similar data on tapes that expire. The method I eventually settled on was to take a figure of all data backed up on a particular day by a backup server then divide this by the average tape capacity (derived from total data on all tapes divided by number of tapes) to give a metric for the ideal number of tapes that would be used (the same was done for the amount of data expiring), then plotted this data over a 6 month period which gave a reasonably straight line or a line with a slight curve. Your actual number of tapes in use at any time would vary from this and be dependent on your number of pools and number of drives so your active number of tapes would need to take this into account. Most of the data was extracted from DPA (EBA) but there is no reason why you can't use a script like Bobby's to acquire similar information.
dugans1
2 Intern
•
186 Posts
886
0
Posted May 3rd, 2011 00:00
In answering all the posts i have managed to push mine way down the list so i am bumping it.