Loading...
 

Solaris SMF

General

Important points

  • Do not modify manifests and system profiles that are delivered by Oracle or third-party software vendors. These manifests and profiles might be replaced when you upgrade your system, and then your changes to these files will be lost. Instead, either create a site profile to customize the service, or use the svccfg command or the inetadm command to manipulate the properties directly. The /lib/svc/manifest/site and /var/svc/manifest/site directories are also reserved for site-specific use. Oracle Solaris does not deliver manifests into those directories.

Show service config

[root@headnode ~]# svccfg -s ''service_name'' listprop

Individual properties can be filtered by appending the property name to the end of the command

import a modified manifest

$ svccfg import /opt/smartdc/binder/smf/manifests/binder.xml

Verbose logging

To enable debug logging:

[root@headnode  ~]# svccfg -s ssh listprop options/logging
[root@headnode ~]# svccfg -s ssh addpg options application
[root@headnode ~]# svccfg -s ssh setprop options/logging = astring: "verbose"
[root@headnode ~]# svccfg -s ssh listprop options/logging
options/logging  astring  verbose
[root@headnode (GB-Home) ~]#

Links

Oracle SMF Best Practices and Troubleshooting
Introducing the Basics of Service Management Facility