...or - set up enterprise administration between the two servers, make the
scripts managed and have them automatically transferred to the managed
server. Then, each time you make a change on the config manager, the
scripts get automatically updated on the managed servers.

Joerg Pohlmann



Richard Cowen <[EMAIL PROTECTED]>@VM.MARIST.EDU> on 2001-11-30 06:05:46

Please respond to "ADSM: Dist Stor Manager" <[EMAIL PROTECTED]>

Sent by:  "ADSM: Dist Stor Manager" <[EMAIL PROTECTED]>


To:   [EMAIL PROTECTED]
cc:
Subject:  Re: copying scripts between tsm servers


> -----Original Message-----
> From: Steve Bennett [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, November 29, 2001 6:10 PM
> To: [EMAIL PROTECTED]
> Subject: copying scripts between tsm servers

> I need to copy dozens of scripts from one TSM 4.1.3 server to another.
> Any suggestions?


source:
query script abc format=raw outputfile=abc.raw

dest:
define script abc file=abc.raw

or make a macro:
define macro QSCR "query script $1 format=raw outputfile=$1.raw"

create a macro to run it for each script:
select distinct 'RUN QSCR ',name from scripts > qscr.mac1

get rid of heading:

grep "^RUN" qscr.mac1 > qscr.mac2

and run it:

MACRO qscr.mac2

Do something similar to load them into the new server.

Note that the output from the Query script xxx outputfile=xxx.raw is in the
tsm server directory unless you provide a complete pathname...

I would create a Perl script that did the whole thing at once, assuming you
have connectivity to both servers...

Reply via email to