ADSM-L

Re: Script problems

2002-10-08 21:22:42
Subject: Re: Script problems
From: "Seay, Paul" <seay_pd AT NAPTHEON DOT COM>
To: ADSM-L AT VM.MARIST DOT EDU
Date: Tue, 8 Oct 2002 21:20:27 -0400
I do not know why yours stopped working, but this will work:

dsmadmc -id=## -pass=##  "select volume_name from volumes where
devclass_name like '3590DEV' " |cat

Paul D. Seay, Jr.
Technical Specialist
Naptheon Inc.
757-688-8180


-----Original Message-----
From: bbullock [mailto:bbullock AT MICRON DOT COM]
Sent: Tuesday, October 08, 2002 7:28 PM
To: ADSM-L AT VM.MARIST DOT EDU
Subject: Script problems


        Folks,

Just today, I upgraded from TSM 4.1 to TSM 5.1 This is an AIX host running
4.3.3 ML 10. Everything went smoothly. It even rebuilt the new "path"
configurations for the tapes and drives by itself. I didn't have the
"cleanup backupset" issue because this TSM server only backs up some VMS
clusters, so I had no "SYSTEM OBJECTS". I most likely will not be so lucky
in 2 weeks when I have to upgrade some TSM servers that backup NT hosts)

        I've only encountered 1 problem this far:

I gather some stats off of the TSM server with various scripts. When I run
these scripts, I typically put a "</dev/null" on the end, otherwise it gets
to the first "(<ENTER> to continue, 'C' to cancel)" prompt and just sits
there. As a simple example:

         dsmadmc -id=## -pass=##  "select volume_name from volumes where
devclass_name like '3590DEV' " </dev/null

        (to get a listing of tape numbers of a certain device class).

This has always worked in the past but now that I'm at 5.1, it gets to the
first "(<ENTER> to continue, 'C' to cancel)" prompt and then perpetually
spews:
        ...
        The character '#' stands for any decimal integer.The only valid
responses are characters from this set: [Enter, C]
        The character '#' stands for any decimal integer.The only valid
responses are characters from this set: [Enter, C]
        The character '#' stands for any decimal integer.The only valid
responses are characters from this set: [Enter, C]
        ...

        It seems to dislike the "</dev/null" very much.

        Anybody seen this? Is there a better way to do this? I'm guessing
there is, otherwise it would be in the archives. Something like a
"-youdonthavetohittheenterkey" option.

        Somebody enlighten me. ;-)

Thanks,
Ben

<Prev in Thread] Current Thread [Next in Thread>