> From: Arshad Sheikh [mailto:[EMAIL PROTECTED]]
>>I am a newbie. We have TSM 3.7. running. I want to run a batch command from
>>my root prompt which give me the number of scratch tapes, I will put it in
>>cron to mail me every morning as to how much scratch tapes I have in my lib.
>>How can I do that?  I don't want to go to interactive mode to run it.
>
"PINNI, BALANAND (SBCSI)" wrote:
> Use pre and post schedule cmd under dsm.sys

I've got a *whole* lot easier way.

dsmadmc -id=<id> -pass=<password> select count(*) as 'Scratch Count'
from libvolumes where status='Scratch' > /tmp/scratchcount
mail -s "Daily scratch count" [EMAIL PROTECTED] < /tmp/scratchcount

Now, if your TSM server runs Windows, you'll have to get yourself a
decent scripting language and a command-line mail transport. ;o)

--
Mark Stapleton ([EMAIL PROTECTED])

Reply via email to