Welcome Serena Central users! CLICK HERE
The migration of the Serena Central community is currently underway. Be sure to read THIS MESSAGE to get your new login set up to access your account.
Anthony Nichols Absent Member.
Absent Member.
397 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.
0 Likes
1 Reply
Andreas Voss Absent Member.
Absent Member.

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
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.