Creating a Custom Hook That Creates a Snapshot of an Instance

Create a custom pre, post, error, or replacement hook that creates, stores, and provides a snapshot of the instance's configuration files. You use this snapshot information, for example, for debugging purposes.

Prerequisites

Context

When performing an operation with this custom hook, SAP Landscape Management performs the following:
  1. Creates and downloads a snapshot of the instance
  2. Stores the retrieved ZIP file under the shared storage path for binary files that is configured in the engine settings
  3. Provides a link in the logs for downloading the binary files

Procedure

  1. Choose Start of the navigation pathAutomation Studio Next navigation step Custom HooksEnd of the navigation path.
  2. Choose Create.
  3. Enter the name for the custom hook.
  4. Choose the provider definition Create a Snapshot of the instance.
  5. Choose the entity type on which this custom hook can be executed.
    • Instance
    • Host
    • Virtual Host
  6. Choose the operation, the hook applies to.
  7. Choose the type of hook.
    • Pre Hook
    • Post Hook
    • Error Hook
    • Replacement Hook
  8. Optional: To start a custom post or error hook in parallel with other subsequent process steps, select the Background Step checkbox. No subsequent process step depends on this hook.
  9. Optional: To retrieve secure parameters, select the Retrieve Secure Parameters checkbox.
    All required credentials for the current combination of database and operating system such as schema, <SID>adm, and DB superadministrator are secure parameters. The operations Software Provisioning Manager, User management, or custom operations for example, contain secure parameters.
  10. Optional: Enter a dynamic caption that you want to display on the Activities and Logs tab.
  11. Choose Create Custom Hook.

Next Steps

Perform the operation, the hook applies to.