Sun Management Center Change Manager 1.0 Administration Guide

How to Import Shared Profiles to the Change Manager Repository (Command Line)

The shared profile describes how the managed hosts should be configured at deployment time. For a description of the shared profile's format, see Shared Profile.

If the shared profile contains a property with an invalid value, for example the value of base_config_flar_archive does not refer to an existing archive, then the import fails. Check the job queue (see How to View the Job Queue (Web Browser)) to determine whether the import failed. If the import failed, correct the property value and reinitiate the import operation.

The time required to import a file to the Change Manager repository depends on the size of the file and the speed of the network.

  1. Determine where the shared profile exists and where to store it.

    For example, copy the shared profile from /net/test1/home/suzi/apache.cmsp to the web-server folder.

  2. Import a shared profile to the Change Manager repository by using one of these changemgr import commands.

    • The following command line imports one file at a time. You can also use this command line to rename the file.


      $ changemgr import [ -u username ] [ -p file ] filepath[.type] \
      relfilepath.type
      
    • The following command line imports several files to a folder simultaneously.


      $ changemgr import [ -u username ] [ -p file ] filepath.type ... \
      reldirpath
      
    .type

    Specifies the file name suffix that represents the file type. A shared profile uses the .cmsp suffix.

    For descriptions of the other options, see How to Import Solaris Boot Images to the Change Manager Repository (Command Line).

    Choose a file name that indicates the unique features specified by the shared profile. For example, create a shared profile named apache.cmsp to configure the managed hosts that run the Apache web server.

Example-Importing a Shared Profile to the Change Manager Repository

Suzi copies the shared profile called /net/test1/home/suzi/apache.cmsp to the web-server folder at the top of the repository. She renames the file to be Apache.cmsp.


$ changemgr import /net/test1/home/suzi/apache.cmsp \
/web-server/Apache.cmsp

Example-Importing Shared Profiles to the Change Manager Repository

Suzi copies the shared profiles called /net/test1/home/suzi/apache.cmsp and /net/test1/home/suzi/oracle.cmsp to the /MyProfiles folder.


$ changemgr import /net/test1/home/suzi/apache.cmsp \
/net/test1/home/suzi/oracle.cmsp MyProfiles