Sun Cluster Data Services Developer's Guide for Solaris OS

ProcedureHow to Clone an Existing Resource Type

Follow this procedure to clone an existing resource type that is generated by Agent Builder.

  1. Load an existing resource type into Agent Builder.

    Use one of the following methods:

    • Start Agent Builder from the working directory for an existing resource type that you created with Agent Builder. Ensure that the working directory contains the rtconfig file. Agent Builder loads the values for that resource type in the Create and Configure screens.

    • Use the Load Resource Type option from the File drop-down menu.

  2. Change the working directory on the Create screen.

    You must use Browse to select a directory. Typing a new directory name is not sufficient. After you select a directory, Agent Builder re-enables the Create button.

  3. Make the changes that you want to the existing resource type.

    You might change the type of code that is generated for the resource type.

    For example, if you initially create a Korn shell version of a resource type but find over time that you require a C version, you can do the following:

    • Load the existing Korn shell resource type.

    • Change the language for the output to C.

    • Click Create to have Agent Builder build a C version of the resource type.

  4. Create the cloned resource type.

    1. Click Create to create the resource type.

    2. Click Next to display the Configure screen.

    3. Click Configure to configure the resource type, and click Cancel to finish.