The svccfg extract command displays a service profile for the specified service or instance. To extract values from specific layers, use the -l option. The -l option argument can be a layer name or a comma-separated list of layer names. See the svccfg(8) man page for the complete list of layer names, and see Repository Layers for descriptions of the layers. The current and all layer names both mean select the highest-layer value for each property.
The following command extracts the highest-layer setting for each property for the network/dns/client service into the dnsclientprofile.xml file:
$ svccfg extract -l current network/dns/client > dnsclientprofile.xml
Change the name of the profile to a meaningful name. By default, the name is set to extract, as shown in the following example:
<service_bundle type='profile' name='extract'>
Make any changes that are necessary for the target systems.
The following command indicates that this profile is for all systems at a given locale or site:
$ cp dnsclientprofile.xml /etc/svc/profile/site/
Change the ownership and permissions of the profile as necessary.
$ 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.