ADSM-L

Re: TSM Script

2002-03-19 11:22:29
Subject: Re: TSM Script
From: Mahesh Tailor <MTailor AT CARILION DOT COM>
Date: Tue, 19 Mar 2002 11:12:29 -0500
Here's a snippet from a ksh script that passes a value to a TSM command.

reqID=`dsmadmc -id=admin -pass=admin "q req" | \
       grep ANR8373I | cut -d: -f1| awk '{ print $2 }'`

dsmadmc -id=admin -pass=password "rep $reqID"

Mahesh

>>> Tony.Jules AT OLYMPUS DOT COM 03/19/02 10:24AM >>>
I am trying to create a script to find out if the log reaches 80% and
Expiration is running to cancel the expiration process. My question is how
do I pass the process number as a parameter and cancel it. My script goes
like this.

select pct_utilized from log where pct_utilized > 80%
     if (rc_ok) goto claim
claim: select process, process_num as "Numbrers" from processes where
process='Expiration'
     if (rc_ok) cancel process "Numbers"

The second if statement does not work because I can't pass "Numbers" as a
parameter. What is the best way to do this?

Thank you



Tony Jules
ITS / Olympus America Inc.
631-844-5887
tony.jules AT olympus DOT com
<Prev in Thread] Current Thread [Next in Thread>