Custom Pre and Post Scripts for Fleet Operations
You can use custom pre-operation and post-operation scripts to automate maintenance activities in Fleet Maintenance. Before configuring a script for an operation, upload it to the Enterprise Manager Software Library as an entity of type Directive. Database Fleet Maintenance supports custom scripts for Deploy, Update, Cleanup, and Rollback operations.
For Exadata Fleet Maintenance, custom scripts are supported for Gold Image Deploy and Gold Image Update operations. You can configure a script to run before an operation, after an operation, or both. The supported stages are Pre Deploy, Post Deploy, Pre Update, and Post Update. Custom script support for Exadata is limited to Deploy and Update operations.
Creating and Using Custom Pre/Post Scripts:
- To develop your pre/post script, see: Custom Script Considerations.
- To upload custom scripts to the Software Library, see: Software Library Entity For Uploading The Script.
- Capture the URN for the Software Library Entity, see: How to Get URN for SWLIB Entity.
- Specify the Pre and Post script Software Library URN entity in the EMCLI input file, see: Pre/Post Script Usage.
For Exadata Deploy and Update operations using the Fleet Maintenance wizard, see: Custom Pre and Post Scripts for Exadata Patching.