Go to main content

Managing System Services in Oracle® Solaris 11.4

Exit Print View

Updated: Febuary 2019

How to Create a Profile by Using sysconfig

  1. Create the profile.

    Run the SCI Tool and create a system configuration profile. The default location for the profile is /system/volatile/profile/sc_profile.xml. Use the -o option to specify a different directory for the profile file.

    The following command creates a new profile in the siteAprofiles directory that includes network and naming_services configuration. See the sysconfig(8) man page for the complete list of functional groupings (-g) that can be configured.

    $ sysconfig create-profile -g network,naming_services -o ./siteAprofiles

    The SCI tool opens and prompts you for the configuration values.

  2. Make any necessary changes to the profile.

    The profile is in ./siteAprofiles/sc_profile.xml. You might want to change sc_profile.xml to a more meaningful and unique name.

    $ cp ./siteAprofiles/sc_profile.xml ./siteAprofiles/netnamingSiteA.xml

    Make any changes that are necessary for the target systems.

  3. Copy the profile to the correct directory.

    The following command indicates that this profile is for all systems at a given locale or site:

    $ cp ./siteAprofiles/netnamingSiteA.xml /etc/svc/profile/site/

    Change the ownership and permissions of the profile as necessary.

  4. Restart the manifest import service to apply the profile to the system.
    $ svcadm restart manifest-import

    Check the manifest-import service log file for messages about property value conflicts or any other error messages.

    $ svcs -Lv manifest-import

    Use the svcs -x command to check that no services are in maintenance.