tag:blogger.com,1999:blog-13518440.post7116922636756130792..comments2023-12-12T04:39:52.103-08:00Comments on TSMAdmin: TSM Server Scripts Sleep OptionChad Smallhttp://www.blogger.com/profile/02637281120881655693noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-13518440.post-51311594484460123282009-08-16T21:37:00.927-07:002009-08-16T21:37:00.927-07:00Hi Chad!
Whenever you have more comples scripting ...Hi Chad!<br />Whenever you have more comples scripting and scheduling stuff to do I'd recommend "outtasking" this to a shell script on the OS level. Running on an non-UNIX OS this may imply installing something like cygwin, perl etc.<br />Some of my clients also use external schedulers for admin and client tasks instead of the TSM built-in solution in order to have only one scheduler in task for every automation task in their environment.<br /><br />Best regards,<br />Michael Abel<br />http://www.thinxwork.deAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-13518440.post-17192818901856497932009-07-27T01:46:09.136-07:002009-07-27T01:46:09.136-07:00Best regards,
Tommy Hueber
http://www.tsmblog.orgBest regards,<br />Tommy Hueber<br />http://www.tsmblog.orgAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-13518440.post-11311092623531635992009-07-27T01:45:26.343-07:002009-07-27T01:45:26.343-07:00Hi Chad, in Richard Simms' Quickfacts there is...Hi Chad, in Richard Simms' Quickfacts there is some information about this:<br /><br />There are occasions in server scripts where you need to introduce a delay between operations; but there is no TSM "Sleep" command or the like. A simple way is to add a Query or SHow command within your server script, which know in your environment to take some time. One example is SHow VOLUMEUSAGE, which we know to take time but produce little output. A more sophisticated but complex method is to define another server script named SLEEP, which performs: DEFine CLIENTAction NodeName ACTion=Command OBJects='sleep ""$1""' Wait=Yes which can then be used within a server script like: RUN SLEEP 30.<br /><br />In this case, he uses a command schedule to trigger the sleep command on the OS with the amount of seconds as a parameter. Pretty clever.<br /><br />As we all know, Richards' Quickfacts can be found here:<br />http://people.bu.edu/rbs/ADSM.QuickFactsAnonymousnoreply@blogger.com