ADSM-L

Re: copying scripts between tsm servers

2001-11-29 21:08:47
Subject: Re: copying scripts between tsm servers
From: Alex Paschal <AlexPaschal AT FREIGHTLINER DOT COM>
Date: Thu, 29 Nov 2001 18:06:12 -0800
Easiest would be to

dsmadmc -id=id -password=password -comma 'select * from scripts' > myfile

Then use vi to turn that into macro type lines.  Or, if this is a regular
occurrence, you could automate it.  Something like this might work. I
haven't tested it too hard, but at first glance, it seems to work with my
scripts.

dsmadmc -id=id -password=password -comma 'select * from scripts where line >
0' |
grep "^[A-Z0-9][A-Z0-9]*," | awk -F , '{print "def scr " $1 " " $2 "
'"$3"'"}' > mymacrofile

ftp mymacrofile to the target server, then, from that ADSM server, run it as
a macro.

Good luck,
Alex

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