Adds a trigger that is executed by the RMS when a specific event occurs in the replication domain. A trigger identifies a process or script that is executed by the RMS.
add {status | latency | size} trigger [{connection | logical connection | route | queue | rep agent | partition} [component_name]] [with primary primary_connection] for server_name {status changes to state | size {exceeds | falls below} size_threshold | latency {exceeds | falls below} latency_threshold} [wait wait_interval] [continuous continuous_flag] execute command
add status trigger for INVENTORY_RS status changes to DOWN execute /sybase/RMS/scripts/email.sh
add status trigger connection inventory_pds.pdb1 for INVENTORY_RS status changes to Suspended wait 120 continuous true execute /sybase/RMS/scripts/email.sh
add size trigger partition p1 for INVENTORY_RS size exceeds 80 continuous true execute /sybase/RMS/scripts/email.sh
add size trigger partition for INVENTORY_RS size exceeds 75 execute /sybase/RMS/scripts/email.sh
add size trigger queue inventory_pds.vendor(Inbound) for INVENTORY_RS size falls below 100 continuous true execute /sybase/RMS/scripts/email.sh
add latency trigger connection inventory_rds.vendor with primary inventory_pds.vendor for INVENTORY_RS latency exceeds 300 execute /sybase/RMS/scripts/email.sh
You can add one status trigger for each server or component status. For example, you can add a trigger for a Replication Server when the status changes to “DOWN” or “SUSPECT”, but you cannot add two triggers to the “DOWN” status.
add latency trigger connection inventory_rds.vendor with primary invetory_pds.vendor for INVENTORY_RS latency exceeds 300 execute /sybase/RMS/scripts/email.sh
ra_config ltl_origin_time_required, true
add event trigger returns the following result set: