Re: OB II v3.1 tape space checker (50 Views)
Reply
Occasional Contributor
Anthony Nichols
Posts: 8
Registered: ‎10-27-1999
Message 1 of 2 (50 Views)

OB II v3.1 tape space checker

Is there a quick and easy command or home grown script which shows the total amount of tape space left in a library of tapes?

I got burned recently because there wasn't enought tape space left to perform a backup one night, so the system paused waiting for a mount of a new tape.

I am in the process of writing a script that figures out the average backup size for the last few days then compares that to how much tape space is left. It is starting to look ugly with lots of greps and awk, and I am not real good with either.

I was wondering if I missed a command that would easily provide this already, or if anyone else has already scripted this.
Please use plain text.
Honored Contributor
Andreas Voss
Posts: 1,364
Registered: ‎10-14-1997
Message 2 of 2 (50 Views)

Re: OB II v3.1 tape space checker

Hi,

here my little script:

omnimm -list_pools|
awk '{
if($2=="POOLNAME1" || $2=="POOLNAME2 || ...)
total+=$NF;
}END{
printf("%ld MB free\n",total);}'

Select in the if statement the pools you want to examine.

Greetings

Andrew
Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation