AutoSYNC Software User's Guide (Update 19)

Triggers
HP AutoSYNC User’s Guide522580-020
6-4
Troubleshooting triggers
source file modification timestamp and specifying TIMEEXACT will cause the files to
be synchronized needlessly at every synchronization interval.
Troubleshooting triggers
For problem resolution and debugging, you can run the trigger command on a terminal
at a TACL prompt.
If the destination is on a remote system, the user must have security privileges
sufficient to run a remote TACL process.
Examples
TRIGGER examples
1. SQL-compile the synchronized object file myslqprg.
SQLCOMP is invoked in the TACL macro sqlcmpme that sets up the defines for
the compilation:
2. Change the system name \sys1 to \sys2 in a synchronized edit file nodename:
3. Accelerate the synchronized object files in subvolume $data.tstobj:
SYNC trigtest.mysqlprg TO \sys2.$data.trigtest.*,
TRIGGER "sqlcmpme #syncfile", LOGFILE synctest.log;
Where sqlcmpme uses obey file mydefine before launching SQLCOMP:
?tacl macro
#frame
#push :file
#set :file %1%
system \sys02
obey mydefine
sqlcomp /in [:file], out $s.#sqlcomp/catalog \sys2.vol.subvol, explain,
currentdefines
#unframe
SYNC trigtest.nodename TO \sys2.$data.trigtest.*, LISTALL,
TRIGGER "edit /in trigin.updatsys/#SYNCFILE",LOGFILE synctest.log;
Where trigin.updatsys is:
cab/sys1/sys2/a;la
SYNC $data.object.* TO \tst.$data.tstobj.*, TRIGGER
“AXCEL #SYNCFILE, #SYNCFILE”;