Re: AIX backup command via TSM scheduler
2003-06-09 04:25:45
Did some debugging on our backup scripts and it seems that the following
lines are the culprit :
stty intr ''
trap "stty intr ''" 2
Would anyone know what is the purpose of those two lines ? ( am not
familiar with scripts. The backup scripts are provided for by our IBM
support )
Thanks
"Conko,
Steven" To: ADSM-L AT VM.MARIST DOT EDU
<[email protected] cc:
OM> Subject: Re: AIX backup command
via TSM scheduler
Sent by:
"ADSM: Dist
Stor Manager"
<ADSM-L AT VM DOT MA
RIST.EDU>
06/07/2003
01:57 AM
Please
respond to
"ADSM: Dist
Stor Manager"
We have an AIX server, so I dont know if the syntax is different, but we do
have AIX clients. we run similar commands but dont use any quotes and dont
include the "-c", an entry for us is like this:
su - oracle /home/oracle/scripts/backup/db_backup.sh
It usually runs fine. however, there are isolated instances where it may
fail with the rc=1 yet still run from the command line. in each of those
cases we have had to step through the entire process with debug statements
to find out what the problem is (keeping in mind that with the su -, the
profile is sourced first.) usually, there ends up being some problem in the
environment or a problem with double sourcing a file. i have no idea why
the
scheduler has problems when it runs okay from the command line. but that is
what we have had to to... debug the process.
Steve
-----Original Message-----
From: Neilson Lui [mailto:nclui AT BPI.COM DOT PH]
Sent: Thursday, June 05, 2003 8:45 PM
To: ADSM-L AT VM.MARIST DOT EDU
Subject: AIX backup command via TSM scheduler
Environment:
Server TSM v5.1.5 on W2k
Client TSM v5.1.5 on AIX with Oracle running
Our backup job is currently being scheduled by the cron daemon on AIX via
the command ( issued as root )
su - userid -c 'sh /tsmscript/backup.sh'
I was trying to have the same command defined on TSM scheduler. But i was
getting a return code of 1 when the same command is issued by the TSM
scheduler. Is there a way to let the TSM scheduler use another userid
instead of root ?
Any suggestions.
|
|
|