% svcs -l network/login:rlogin

Shows the Status of the rlogin Service
% svcs –a
Show status of all services
% inetadm
Show status of services controlled by inetd
% svcs –D milestone/multi-user
Displays services instances dependent on the multiuser milestone
% svcs –d milestone/multi-user:default
Display the Service Instances That the Multiuser Milestone Is
Dependent On

Disabling the rlogin Service

# svcs -D network/login:rlogin ( Check if there are dependents )
# svcadm disable network/login:rlogin
# svcs network/login:rlogin ( Check status if already disabled )

Enabling the rlogin Service

# svcs -l network/login:rlogin | grep enabled
# svcadm enable network/login:rlogin
# svcs network/login:rlogin

Enabling a Service in Single-user Mode

# svcadm enable -rt rpc/bind
( The option –r recursively restarts all dependencies; -t starts service in
temporary mode )
# svcadm restart FMRI
Restart Service ( FMRI – Fault management resource indentifier )
Restore a Service That Is in the Maintenance State

# svcs -p FMRI (Determine if any process are dependent to the service)
# pkill -9 PID ( Kill any dependent process still running )
# cat /var/svc/log ( Check logs for errors )
# svcadm clear FMRI ( Restore service )

How to Revert to Another SMF Snapshot

# svccfg
svc:> select system/console-login:default
svc:/system/console-login:default> listsnap
svc:/system/console-login:default> revert start
svc:/system/console-login:default> quit
# svcadm refresh system/console-login
# svcadm restart system/console-login

How to Create an SMF Profile

# svccfg extract> profile.xml
# vi profile.xml ( Change the name of the profile in the service_bundle
declaration; Remove/Add any services that should not be managed by
this profile. Services starts with ends with . Or
changed Enabled Flag. )
# svccfg apply profile.xml ( Apply SMF profile )