2.5

Table Of Contents
Procedure
1 Create a pre-action or post-action script in the following format.
u
Pre-action script.
pre_${
lower_class_name
}_${
lower_method_name
}
u
Post-action script.
post_${
lower_class_name
}_${
lower_method_name
}
u
For a post-action script to create a database, the script name must be post_dbctl_createdb.
u
For a post-action script to restore, clone, repair, and import a database, the script name is
post_dbctl_recover.
u
For a pre-action script to take a snapshot or perform an external backup of a database, the script name
is pre_dbctl_startbackup.
u
For a post-action script to take a snapshot or perform an external backup of a database, the script
name is post_dbctl_stopbackup.
2 Put the scripts in the following folder in the DBVM.
${AgentHome}/plugin/${ACTIVATED_PLUGIN}/user_script/
3 Set execute permissions on the script for the user agent.
VMware vFabric Data Director Administrator and User Guide
140 VMware, Inc.