Transitioning From Oracle® Solaris 10 to Oracle Solaris 11.2

Exit Print View

Updated: December 2014
 
 

SMF Administrative Changes

Information for recording the source of properties, property groups, instances, and services has been added to the SMF repository. This information enables users to determine which settings are administrative customizations and which are delivered by a service manifest or profile.

The different settings by administrator, profile, or manifest are captured in layers. Use the svccfg listprop command with the –l option to explore the values that are in each of the layers. The svccfg –s service:instance listprop –l all command lists all of the property groups and property values for the selected service:instance, with all of the layers that are available for each property group and the property value that is set, as shown in the following example:

root@system1# svccfg -s mysvc:default listprop -l all
start                             method      manifest
start/exec                        astring     manifest              /var/tmp/testing/blah.ksh
start/timeout_seconds             count       manifest              600
start/type                        astring     manifest              method
stop                              method      manifest
stop/exec                         astring     manifest              /var/tmp/testing/blah.ksh
stop/timeout_seconds              count       manifest              600
stop/type                         astring     manifest              method
startd                            framework   manifest
startd/duration                   astring     manifest              transient
ifoo                              framework   site-profile
ifoo                              framework   manifest
ifoo/ibar                         astring     admin                 adminv
ifoo/ibar                         astring     manifest              imanifest_v
ifoo/ibar                         astring     site-profile          iprofile_v
general                           framework   site-profile
general                           framework   manifest
general/complete                  astring     manifest
general/enabled                   boolean     site-profile          true
general/enabled                   boolean     manifest              true 

In this example, the property group ifoo shows the type of information that is listed when you use the –l option.

By comparison, running the same command without the new –l options lists the information as follows:

# svccfg -s mysvc:default listprop
start                             method
start/exec                        astring     /var/tmp/testing/blah.ksh
start/timeout_seconds             count       600
start/type                        astring     method
stop                              method
stop/exec                         astring     /var/tmp/testing/blah.ksh
stop/timeout_seconds              count       600
stop/type                         astring     method
startd                            framework
startd/duration                   astring     transient
ifoo                              framework
ifoo/ibar                         astring     adminv
general                           framework
general/complete                  astring
general/enabled                   boolean     true 

In addition, you can use the svccfg listcust command to list customizations only.

Services and instances that are delivered in standard locations (/lib/svc/manifest and /etc/svc/profile) are managed by the manifest-import SMF service. To completely remove these services from the system, an administrator should uninstall the package that delivers the supporting files. This change triggers the removal of the service or instance from the system. If the delivering files are not managed by a package, then removing the file and restarting the manifest-import service removes the services or instances that are delivered from the system entirely.

If the files cannot be removed, or the administrator does not want the service or instance to run on the system, and disabling the service or instance is not an option, you can use the svccfg delete command. The svccfg delete command is considered an administrative customization to the way the system is currently installed when the delivering files that are still present in the standard locations.


Note -  The svccfg delete command does not delete the service. The command only hides the service from other SMF consumers.

To remove any administrative customizations, including customizations that you made with the svccfg delete command, and return to the configuration that is provided by the service manifest, use the svccfg delcust command with care. For example, you would list and delete all of the customization on sendmail-client:default, as follows:

# svccfg
svc:> select svc:/network/sendmail-client:default
svc:/network/sendmail-client:default> listcust
config                        application admin           MASKED
...
svc:/network/sendmail-client:default> delcust
Deleting customizations for instance: default

See Managing System Services in Oracle Solaris 11.2 and svccfg (1M) .