> Can anyone help me with onbar command scripts.  I'm running 3.7.0 tsm on
an aix
> 4.3.3 risc system.  I have two instances of informix db and want to back
them up
> with onbar using command scripts.  (I'm not sure scripts are the way to
handle
> but with two instances I somehow have to export the variables out so when
a
> dbspace is backed up it will know which instance to go to.)

Gene,

I did it following:
I've created two script infxinst1 and infxinst2:
infxinst1:
su - infxinst1 "-c export DSMI_CONFIG=/path/to/dsm.opt;export
DSMI_DIR=/path/to/api/dir; export
DSMI_LOG=/path/to/logfile;/path/to/onbar -b -w -L 0"

infxinst2:
su - infxinst2 "-c export DSMI_CONFIG=/path/to/dsm.opt;export
DSMI_DIR=/path/to/api/dir; export
DSMI_LOG=/path/to/logfile;/path/to/onbar -b -w -L 0"

Requisite to this is to create two informix users and for each set the right
Informix environment, I set and exported the informix in each user's
.profile.

If you don't want to do this way, you can also export Informix variables in
the infxinst1 and infxinst2 scripts and then you don't need to create
additional user accounts, simply do su to the informix user.

Hope this helps.
Regards
Leos

Leos Stehlik, IT Specialist
AIX, ADSM/TSM
IBM Czech republic

Reply via email to