I use a "Combination of the Two" as Janis would say. I tend to create TSM scripts to perform specific functions, then make calls to this "library of functions" from outside scripts. For instance I have a TSM script called bu_disk_stg_to_copypool that backs-up all primary stg pools of type disk to my copypools. When an outside script wants to perform that task it runs bu_disk_stg_to_copypool. If I add or delete a primary stg pool I just update bu_disk_stg_to_copypool instead of locating and modifying multiple outside scripts.
H. Milton Johnson -----Original Message----- From: ADSM: Dist Stor Manager [mailto:[EMAIL PROTECTED] On Behalf Of Warren, Matthew (Retail) Sent: Thursday, February 17, 2005 7:19 AM To: [email protected] Subject: Re: a simple question Interesting. You know, I didn't think the TSM scripting would be used much by people, to me it appears easier to control TSM with external scripts - to the extent I have never more than glanced at the TSM scripting abilities. Do people mix the two, or is it a case of 'We use TSM scripting' or 'We use Shell / python etc..' based on preference / environment restrictions. Are there any benefits to TSM scripting other than it doesn't require an external process and relevant software to achieve it? Matt. _-'-_ -|- -----Original Message----- From: ADSM: Dist Stor Manager [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Thursday, February 17, 2005 1:11 PM To: [email protected] Subject: Re: a simple question ==> On Thu, 17 Feb 2005 07:18:41 -0500, Richard Sims <[EMAIL PROTECTED]> said: > Edit scripts outside of TSM, and put the edited version into effect with > 'DEFine SCRIPT ... FILE=____'. Trying to edit Scripts within the TSM > server is just too awkward. Amen. And to amplify and suggest: I've got several scripts whose meaning is 'reload this other script, from this well-known file location' For instance my 'retemp' script has del scr temp def scr temp file=/u/adsm/tmp/temp.scr so I can edit 'temp.scr' and pretend that it's close to the same thing as my temp script. This model has saved me a lot of time: I've got a large passel of scripts (40-60) I use in the management of my covey of servers, and just a few maintainance scripts let me reload all of them. - Allen S. Rout ___________________________ Disclaimer Notice __________________________ This message and any attachments are confidential and should only be read by those to whom they are addressed. If you are not the intended recipient, please contact us, delete the message from your computer and destroy any copies. Any distribution or copying without our prior permission is prohibited. Internet communications are not always secure and therefore Powergen Retail Limited does not accept legal responsibility for this message. The recipient is responsible for verifying its authenticity before acting on the contents. Any views or opinions presented are solely those of the author and do not necessarily represent those of Powergen Retail Limited. Registered addresses: Powergen Retail Limited, Westwood Way, Westwood Business Park, Coventry, CV4 8LG. Registered in England and Wales No: 3407430 Telephone +44 (0) 2476 42 4000 Fax +44 (0) 2476 42 5432
