UNSOLVED

dugans1

updated

16 years ago

D

dugans1

2 Intern

•

186 Posts

0

2137

May 2nd, 2011 21:00

Tape Usage Per Day/Month

Hello all,

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?

Thanks in advance.

  • 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.

  • coganb

    736 Posts

    886

    0

    Posted May 3rd, 2011 02:00

    Hi Scott,

    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.

    -Bobby

  • proforg

    10 Posts

    886

    0

    Posted May 3rd, 2011 04:00

    Hi, Scott,

    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.

    Regards,

    AM

  • ble1

    6 Operator

    •

    14354 Posts

    •

    56186 Points

    886

    0

    Posted May 3rd, 2011 04:00

    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

  • DavidHampson-rY

    1 Rookie

    •

    294 Posts

    886

    0

    Posted May 3rd, 2011 04:00

    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.

  • 886

    0

    Posted May 5th, 2011 01:00

    Hello Scott,

    I also have the same dilemma before and then one day I tried to use mminfo and then parse the result.

    Here's the command that Ive used.

    mminfo -q "savetime>=5 weeks ago" > monthly.csv

    Note: This only states to query 5 weeks ago and write it to monthly.csv

    After that just parse it using excel.

    regards,

    kate

  • GMJOHN

    8 Posts

    886

    0

    Posted March 13th, 2013 07:00

    I used the following:

    mminfo -a -r "volume,%used,pool" -q "full,savetime>=8 weeks ago" > c:\monthly.csv