ADSM-L

Re: executing unix commmands from tsm scripts

2003-03-27 20:55:06
Subject: Re: executing unix commmands from tsm scripts
From: Alex Paschal <AlexPaschal AT FREIGHTLINER DOT COM>
To: ADSM-L AT VM.MARIST DOT EDU
Date: Thu, 27 Mar 2003 15:05:30 -0800
Gary,

You may also want to consider shell scripting.  I've abandoned server side
scripts in favour of the flexibility of Perl and ksh scripts.  Just an
option.

Alex Paschal
Freightliner, LLC
(503) 745-6850 phone/vmail


-----Original Message-----
From: Richard Sims [mailto:rbs AT BU DOT EDU]
Sent: Thursday, March 27, 2003 2:35 PM
To: ADSM-L AT VM.MARIST DOT EDU
Subject: Re: executing unix commmands from tsm scripts


>Is there a way to accomplish this?

Gary - I wrestled with this when I created our *SM server housekeeping
       script, as I wanted to issue Unix commands to send email to the
operators to act on certain tape volsers.  I finally hit upon a solution
using DEFine CLIENTAction, like:

DEFine CLIENTAction OURNODE ACTion=Command -
 OBJects='mail -s "Some mail subject, huh?" adsm-admin@ourhost </dev/null
>/dev/null'

That's a trivial example just to send email with a subject and empty body.
You can of course invoke any command.

  Richard Sims, BU

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