Service Management Facility
The Service Management Facility was introduced in Solaris 9 as an alternative way to manage
services. In Solaris 10, SMF has been made the default way to manage most services. The SMF
framework has significant advantages over the legacy SVR4 mechanisms, primarily in terms of
service monitoring and integration with the Fault Management Facility.
Basic Commands
The basic commands for managing services under SMF (Service Management Facility) control
aresvcs,svccfg andsvcadm. The man pages for these commands are a good source of detailed
information.
inetadm can be used to monitor services underinetd control.
Many commands require referencing the service identifier, also known as anFMRI.
svcs\u2022
svcs -a: Lists all services currently installed, including their state.
\u2022
svcs -dFMRI: Lists dependencies for FMRI.
\u2022
svcs -DFMRI: Lists dependents for FMRI.
\u2022
svcs -lFMRI: Provides a long listing of information about FMRI; includes dependency
information
\u2022
svcs -pFMRI: Shows relationships between services and processes.
\u2022
svcs -t: This change is temporary (does not persist past a boot).
\u2022
svcs -x: Explains why a service is not available.
\u2022
svcs -xv: Verbose debugging information.
svcadm
\u2022
svcadm clearFMRI: Clear faults for FMRI.
\u2022
svcadm disableFMRI: Disable FMRI.
\u2022
svcadm enableFMRI: Enable FMRI.
\u2022
svcadm refreshFMRI: Force FMRI to read config file.
\u2022
svcadm restartFMRI: Restart FMRI.
To make configuration changes to a non-inetd service, edit the configuration file, then enter the
svcadm restartco mmand.
svccfg
\u2022
svccfg: Enter interactive mode.
\u2022
svccfg -sFMRI setenvENV_VARIABLE value: Set an environment variable for
FMRI. Follow by svcadm refresh and restart commands.
Leave a Comment