TSM backups

Hi,
I have a script for TSM backups, but I am getting the below error. Please suggest what should I change.
cd /e01/exp_dp
$TSMBIN/dsmc incremental /e01/exp_dp/*.dmp -subdir=yes > /e01/exp_dp/tsm_diw.log

error-ksh: /dsmc:  not found.
nirvairghumanAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

johnsoneSenior Oracle DBACommented:
The TSMBIN variable is not defined.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
nirvairghumanAuthor Commented:


I using  TSMBIN=/usr/bin in the script.
0
johnsoneSenior Oracle DBACommented:
The command you posted is:

$TSMBIN/dsmc

The error is on:

/dsmc

This would indicate that the variable is not set.

Double check your spelling, and also export the variable.
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

Mark GeerlingsDatabase AdministratorCommented:
Does your /usr/bin directory have an executable file named: "dsmc"?  If not, that is the problem.  If it does, then you don't have the $TSMBIN alias defined correctly.
0
johnsoneSenior Oracle DBACommented:
If the executable was missing from /usr/bin, then the error message would have been:

error-ksh: /usr/bin/dsmc:  not found.

The error does not contain the /usr/bin part of the path, which would indicate that the variable is not set correctly.
0
AnacreoCommented:
Try changing it to:

${TSMBIN}/dsmc

The trailing slash may be causing the variable to not be parsed correctly since you're not in a quoted string.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Oracle Database

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.