Operating System - HP-UX
1834804 Members
3036 Online
110070 Solutions
New Discussion

Re: omniback II & cron problem

 
SOLVED
Go to solution
Konstantin Reznik
New Member

omniback II & cron problem

I have Omniback II(release A.04.10) installed on HP-UX 11.00.When I use uma utility
with command file at the command line all works properly,but in cron job
it can't work.
Any suggestions?
kostarez
7 REPLIES 7
BR19682
Esteemed Contributor
Solution

Re: omniback II & cron problem

Hi there.
Your question should be posted in HP-UX.
If you use uma, i guess, you have a tape library or something with a robot arm.
Why do you use uma ? Did you not configure your transport device properly ?
Do you not use OmniBack for backups ?
If yes, OmniBack controls the transport device, so you don't have to care about tapes inserted into drives.
Rgds
Alexander M. Ermes
.. and all these memories are going to vanish like tears in the rain! final words from Rutger Hauer in "Blade Runner"
BR19682
Esteemed Contributor

Re: omniback II & cron problem

Hi there.
Sorry, forgot something.
In the ITRC there is a document KBAN00000190
about the configuration of a tape library under HP-UX 11.0 .
This contains the necessary info.
Rgds
Alexander M. Ermes
.. and all these memories are going to vanish like tears in the rain! final words from Rutger Hauer in "Blade Runner"
Konstantin Reznik
New Member

Re: omniback II & cron problem

Hi,Alexander.
Yes,I use autoloader 1/9.
Uma is convenient utility for
tape manipulation when tar program used.uma works properly at the command line.It means that transport device was configured properly,I guess.The only problem that uma don't work in
cron job.I don't use OmniBack for backups.I use tar instead.
Thanx for information.
kostarez
Andre Lemon
Regular Advisor

Re: omniback II & cron problem

What does your cron look like? how is your
uma command stated in your crontab file?


Andre'
Konstantin Reznik
New Member

Re: omniback II & cron problem

Hi Andre.
My cron file looks like:
0 * * * * echo "move d1 s8"|/opt/omni/lbin/uma -ioctl /dev/robot.
I use cron jobs many years and
all my cron jobs work fine but I don't know
what is going wrong in this case.May be the problem in PATH or SHELL variable?





kostarez
BR19682
Esteemed Contributor

Re: omniback II & cron problem

Hi there.
Here an extract from the uma manpages :

2. To let uma execute a batch script of its own commands, simply
redirect it's stdin to a file containing a list of uma commands
separated with newlines:

cat >/tmp/cmdFile

inq

addr

stat



uma -ioctl /dev/spt/sctl0
/tmp/outFile

END OF EXTRACT

Rgds
Alexander M. Ermes

BTW you should think about using OmniBack.
Very effective
.. and all these memories are going to vanish like tears in the rain! final words from Rutger Hauer in "Blade Runner"
Fredrik Nygren_1
New Member

Re: omniback II & cron problem

Hi Konstantin,

Maybe you have solved this on your own, but I ran into the same problem and for me it worked after I added the -tty switch.

So your cronjob should be changed from:

0 * * * * echo "move d1 s8"|/opt/omni/lbin/uma -ioctl /dev/robot

to:

0 * * * * echo "move d1 s8"|/opt/omni/lbin/uma -ioctl /dev/robot -tty

It worked for me so it might be worth a try.

// Fredrik