To use event markers, you need to a write an event marker file and a script that calls the rtmark command. You also need to set up a call in your application that invokes the rtmark script.
If event markers are used in multiple Context IDs, each Context ID must have a unique event marker file and scripts that calls rtmark.
The following examples show the parameters you need to use in your application; an event marker file, and a script that calls rtmark:
#example call in your application
<Context ID> <name> <description>
# example event mark script that calls rtmark and emf_1 file
rm -f /tmp/emf_1
printf "name = ${2}\n" >/tmp/emf_1
printf "description = ${3}\n" >>/tmp/emf_1
sync
/usr/scrt/bin/rtmark -C ${1} /tmp/emf_1
#example event marker file /tmp/emf_1
name = <event name>
description = chkpt
Event marker file replication from recovery server 1 to recovery server 2
Event marks are written to file /usr/scrt/run/c<Context ID>/event_marker from the production server to the recovery server. On the first recovery server, use the rtmark command (shown below) to replicate the event marker information from the first recovery server to the second recovery server.
rtmark –C <Context ID> -r