> You can use an immediate client action to run OS commands within a TSM
> script. You just have to setup the TSM client and scheduler, with
> schedmode prompted, on your AIX system if you haven't done so already.
>
> Here's a couple examples:
>
> Sleep script (this script takes the number of seconds as a parameter):
> define clientaction NODENAME action=command -
> objects='sleep "$1"' wait=yes
> i.e. RUN SLEEP 30
>
> Mail script (this script takes the subject of the mail as a parameter)
> define clientaction NODENAME action=command -
> objects='mail -s "$1" whoever AT yoursite DOT com </dev/null >/dev/null'
> wait=no
> i.e. RUN MAIL "This script has started"
>
>
> ===================================================
> John Monahan
> Senior Consultant Enterprise Solutions
> Computech Resources, Inc.
> Office: 952-833-0930 ext 109
> Cell: 952-484-5435
> http://www.compures.com
> ===================================================
>
>
>
>
>
> "Kliewer, Vern" <VKliewer AT MPI.MB DOT CA>
> Sent by: "ADSM: Dist Stor Manager" <ADSM-L AT VM.MARIST DOT EDU>
> 02/28/2002 04:03 PM
> Please respond to "ADSM: Dist Stor Manager"
>
>
> To: ADSM-L AT VM.MARIST DOT EDU
> cc:
> Subject: Run OS command from inside TSM script?
>
>
> We run a TSM server on an AIX system. Is there a way to issue an operating
> system command ie. ls, tar ... from inside a TSM script? Yes, I know I can
> run a TSM script from the AIX command line, using dsmadmc ... but I have a
> need to run an one or more AIX commands from inside a TSM script, if there
> is a way.
|