Go to main content

Customizing Automated Installations With Manifests and Profiles

Exit Print View

Updated: November 2020

Specifying Configuration in a System Configuration Profile

System configuration information is specified through SMF properties. Accordingly, system configuration profiles are structured so that SMF services can read and apply the settings in the profiles. If you specify a service or property that does not apply, that specification is ignored. Make sure that you do not specify any particular property more than one time.

Within a configuration profile, configuration information is divided into sections for each service. Each service section lists one or more property groups. In turn, property groups have one or more specific properties that have value settings. For example, the following section refers to the configuration of the default and host properties of the config property group of the name-service/switch service.

<service version="1" name="system/name-service/switch">
   <property_group name="config">
      <propval name="default" value="files"/>
      <propval name="host" value="files dns mdns"/>
   </instance enabled="true" name="default">

The following SMF command displays information about SMF properties:

svccfg -s FMRI describe [-v] [-t] [propertygroup/property]
  • The –v option gives all information available, including descriptions for current settings, constraints, and other possible setting choices.

  • The –t option shows only the template data for the selection (see the smf_template(7) man page), and does not display the current settings for property groups and properties.

See Property Inspection and Modification Subcommands in the svccfg(8) man page.

In the previous example, for information about the config property group in the name-service/switch SMF service, you would type:

$ svccfg -s name-service/switch describe -v config
config                      application
    name: config
    type: application
    required: true
    target: this
    description: Name service switch configuration data as described in nsswitch.conf(5).
config/default              astring             files
    type: astring
    required: true
    Default configuration database entry.
    visibility: readwrite
    minimum number of values: 1
    maximum number of values: 1
  value: files
config/host                astring              "files dns"
    type: astring
    required: false
    Override configuration of host database lookups.  (both IPv4 and IPv6 hosts)
    visibility: readwrite
    Minimium number of values: 1
    Maximum number of values: 1
  value: files dns
config/value_authorization  astring             solaris.smf.value.name-service.switch

The –v option indicates if the property setting is required or not. Thus, the option helps you to determine the properties that you must set when editing configuration profiles.