Services & instances
Each SMF service can have one or more instances. They are identified by FMRI strings like svc:/network/ssh:default.
Solaris · Service Management
Solaris · Lesson 11
SMF service management in Solaris 11. svcs and svcadm commands. Create custom services. Troubleshoot service failures.
Solaris uses the Service Management Facility (SMF) to manage system and application services. Instead of classic init scripts, Solaris services are represented as FMRI objects, have dependencies and can be automatically restarted when they fail.
As an administrator, you will constantly use svcs, svcadm and svcprop to inspect, control and troubleshoot services.
Each SMF service can have one or more instances. They are identified by FMRI strings like svc:/network/ssh:default.
Services can be online, offline, disabled, maintenance, etc. The state tells you if the service is running and healthy.
svcadm enable, disable and restart are the proper ways to control SMF services, respecting dependencies and restarts.
Use the following flows in your Solaris lab VM, especially for services you're allowed to restart (like SSH, test daemons or custom apps).
svcs shows the state of SMF services. Use -a for all, -xv for detailed fault information.
svcadm restart is the standard way to restart SMF services instead of killing processes directly.
Use svcadm disable to stop and mark a service disabled, and enable to bring it back with dependencies.
svcs -L shows the log file for a service, and -d shows its dependencies. These are critical for troubleshooting.
svcprop reads configuration properties stored in the SMF repository. It is often used along with svccfg for advanced tuning.
svcs and svcs -a to explore all services on your Solaris VM. Identify which ones are most important (SSH, cron, name services, etc.).svcadm restart ssh and watch the state change.svcs -xv.Understanding SMF will make later topics like monitoring, logging and performance tuning much easier to handle.