ADSM-L

Re: Automate Tape checkout

2000-05-09 09:34:45
Subject: Re: Automate Tape checkout
From: "Morris.Marshael" <Morris.Marshael AT MCCG DOT ORG>
Date: Tue, 9 May 2000 09:34:45 -0400
You might try this:
for i in `cat /adsm/macros/"$TAPE"S`

do
        dsmadmc -servername=$System -id= -pass= "checkout libv Library " $i
checklabel=no
    if [ $? -eq 0 ]; then
        while true
      do
        `dsmadmc -servername=$System -id= -pass= "q request" > /tmp/lookup`
        `grep ANR8307I /tmp/lookup > /dev/null`

        if [ $? -eq 0 ]; then
                grep ANR8307I /tmp/lookup |awk '{print $2}' > /tmp/lookup2
                COMMAND=`sed s/://g  /tmp/lookup2`
                dsmadmc -servername=$System -id= -pass= "reply $COMMAND"
                rm /tmp/lookup*
                break 1
        else
                sleep 120
        fi
      done
    else
        break
    fi
done
Marshael Morris                 morris.marshael AT mccg DOT org
<mailto:morris.marshael AT mccg DOT org>
Medical Center of Central Georgia       Phone: (912) 633-2160
353 First Street Suite 200              Fax:    (912) 633-1546
Macon, Georgia 31201


        -----Original Message-----
        From:   Alyn Bush [SMTP:xxray AT USA DOT COM]
        Sent:   Tuesday, May 09, 2000 9:15 AM
        To:     ADSM-L AT VM.MARIST DOT EDU
        Subject:        Automate Tape checkout

        I'm trying to write a script to automate tape checkout and not to do
one by
        one by typing REPLY and then
        Request Number.  Anybody has already done it.

        I am on IBM RS-6000/ S70 AIX 4.3.1,  and ADSM 3,1,2.4  and Tape
drive is
        3570

        Thanks,
        Alyn

        ______________________________________________
        FREE Personalized Email at Mail.com
        Sign up at http://www.mail.com/?sr=signup
<Prev in Thread] Current Thread [Next in Thread>