Sun N1 Service Provisioning System 5.2 Plan and Component Developer's Guide

Managing Components

You can use the Sun N1 Service Provisioning System software browser interface to manage components.

You can also use the command-line interface (CLI) to manage components. See Summary of Component CLI Commands. For detailed information about CLI commands, see the Sun N1 Service Provisioning System 5.2 Command-Line Interface Reference Manual.

The following pages in the browser interface include information about how to view and manage components:

ProcedureHow to Create a Component

Use this procedure to create simple and composite components.

Steps
  1. From the navigation menu, choose Components.

    The Components page appears and lists the components that are already checked in.

  2. (Optional) Click Change Folder and specify the folder that will contain the new component.

    A window appears where you specify the name of the folder in which to create the component.

    • If the folder exists, select the name of the folder, and click Change to Selected Folder.

      The Components page displays the list of components in the specified folder.

    • If the folder does not exist, create the folder.

      1. Specify the parent folder, and click New Folder.

        The Create New Folder window appears.

      2. Type the name of the new folder, and click Create.

        The new folder inherits its permissions from its parent folder. After you click Create, the folder tree displays with the new folder selected.


        Note –

        You cannot create multiple folder levels at one time. To create several nested folders, you must return to the Change Folder window and repeat steps A and B.


      3. After the folder is created, select the name of the folder, and click Change to Selected Folder.

        The Components page displays the list of components in the specified folder.

  3. Type a name for the new component in the Component field, and click Create.

    The new component's Edit page appears.

  4. Define the component.

    1. (Optional) Change the component's name in the Component field if necessary.

    2. Choose the component type from the Component Type drop-down menu.

      Some of the resulting fields might change to match those that are used by the component type that you selected.

    3. From the Platform Type drop-down menu, choose the platform type to which this component can be deployed.

    4. (Optional) Specify a label in the Label field.

    5. (Optional) Specify a description in the Description field.

    6. Supply other required information.

      The information that is required is based on the component type that you selected.

      If your component references other components, local names are created for each of the components that this component references.

    7. Click Check In.

      A window appears that reports that the provisioning system is checking in the component as Version 1.0.

  5. Click Continue To Check In.

ProcedureHow to Clone a Variable Set

Variable set cloning allows for the creation of new variable sets based on existing variable sets, instead of from the default set.

The variable settings from previously checked in components can be downloaded to files and then imported. Select the Create Set link from the Create and Edit Variable Settings table of the components>details>variable settings page. The following selections are available from the page:

Steps
  1. From the navigation menu under Application Deployment, choose Components.

    The components>[top] page appears and lists the components that are already checked in.

  2. Select an already checked in component.

    The components>details page should appear.

  3. Scroll down to the bottom of the page and select Variable Settings.

    The components>details>variable settings page should appear.

  4. Click on the Download All Sets link..

    Export variable sets to a file (assuming that variable sets have been created already)..

  5. Save the exported data.

    A window will pop up to ask for the file path to save the exported data. On some browers, if the exported data displays, the user has to use the browser menu to save the exported data (Choose File->SaveAs).

  6. Click on Done when you finish exporting variable settings.

  7. To use a cloned variable set, select Create from the components>[top] page.

    Create a new component and perform a check in.

  8. Select the newly created component and click on Variable Settings.

  9. Import Variable Sets

    • To import variable sets from another component, click on Import Set From Component. A popup window will be displayed to allow the user to select a component to import. Once selected, the variable sets in the import component will be imported if both have variables in common.

    • To import variable sets from a file, click on the Browse button at the bottom of the variable settings page to specify an import file. An example of an import file would be previously exported data, such as in Steps 4 and 5, then click on the Import link. The file content is uploaded, parsed and new variable sets are imported and created.

  10. Click Done, and the newly created component has used cloned variable settings.

ProcedureHow to Delete a Component

Note the following restrictions before deleting a component:

When a component is deleted, the installation records are also deleted. This applies only to a component that has been installed and uninstalled, so no user-visible change is noticeable. A resource that is associated with a component, if any, is deleted with the component. Any plans that were created by running a direct-run component procedure are also deleted. The plan history that installed the component is edited to indicate that the component the plan installed was deleted. Plan history itself is not removed.

Steps
  1. From the navigation menu, choose Components.

    The Components page appears and lists the components that are already checked in.

  2. Click Change Folder.

    A window appears where you specify the name of the folder from which to delete the component.

  3. Specify the name of the folder, and click Change to Selected Folder.

    The Components page now lists the components in the specified folder.

  4. Click the name of the component that you want.

    The Details page for that component appears.

  5. Click Delete.

    A window appears that reports that the provisioning system is about to delete the component you selected.

  6. Click Continue To Delete.

    Click Cancel if you do not want to delete the component.