cancel
Showing results for 
Search instead for 
Did you mean: 
Don_Wilder
Level 3

This is just a modification to the Supplied "available_media.sh" script. It will report on the available scratch media per each robot. I find this useful to know if a robot is low on scratch media before jobs fail.

It currently runs on UNIX systems.

Comments
Don_Wilder
Level 3

Bugs... The original script counted the scratch tapes wrong if there were more than 9 robots... plus it added any scratch tapes in the "---" volume group to robot 0.

Amaan
Level 6
Can you please let me know how to use this script. Actually i have never used scripts, can you give please some info on this. It is very useful script if it works. Because we are manually counting this every single day.
Don_Wilder
Level 3

The script is designed to run on UNIX systems.

What kind of system are you running?

You will want to rename it to "available_scratch_media.sh" and change the "SOMEONE_WHO_CARES" to the email address you want to send the message to.

I run it from cron on a daily basis with the below crontable entry: (you should change the "/opt/nbu_scripts" portion to where you have installed the script.

10 15 * * * /opt/nbu_scripts/available_scratch_media > /dev/null 2>&1

Amaan
Level 6
We are running windows :(
Don_Wilder
Level 3

No guarantees, but I will see if I can make up a windows style script... or maybe convert it to perl.

Amaan
Level 6

Thanks!

Version history
Last update:
‎08-31-2011 10:46 AM
Updated by: