I suppose you could break out the dsmcadm in a separate file with just execute 
permission by the dba userid, then pass the command to it in the db2 backup 
script.....or you could run the db2 backup script as root.

[backup] /home/root/bin # more dsmcmd
dsmadmc -id=admin -pa=password -displaymode=table $1

/home/root/bin/dsmcmd "disable sessions"



>>> [EMAIL PROTECTED] 04/24/02 07:18AM >>>
Peter,

        I think I remember seeing where someone scheduled a job on the
server to do this.  The job would loop checking to see if a certain event
had completed.  Once the observed event is complete, the server job can
perform the backup.  Searching adsm.org might find more information.

Jon Martin

-----Original Message-----
From: Glass, Peter [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, April 23, 2002 6:45 PM
To: [EMAIL PROTECTED] 
Subject: unix trigger for TSM Server processes?


What is the best way to have unix trigger a TSM backup storagepool process?
We need to start this process immediately upon completion of a client's DB2
backup. We can't very well schedule this, because the completion time of the
backup varies widely, from one backup to the next. We can afford to begin
the tape copy process neither too soon, nor too late.
One idea might be to have a DB2 script invoke unix to start something via
/usr/bin/dsmadmc -id=admin -pass=password, et cetera, but this would mean
hardcoding the password with the -pass= parameter, which would present a
security exposure.
Any suggestions on how we might accomplish this would be greatly appreciated
(both the client and server platforms are AIX 4.3.3; TSM is at V4 R2).
Thanks, in advance.

Peter Glass
Distributed Storage Management (DSM)
Wells Fargo Services Company

Reply via email to