Solaris 11 - Service Management Commands

Show all services (including disabled services):
# svcs

List detailed information about system/zones:
# svcs -l system/zones


List processes associated with the network/netcfg service:
# svcs -p network/netcfg


Show why services that are enabled but are not running, or preventing other

services from running:



# svcs -xv


Enable a service called network/dns/client:
# svcadm enable network/dns/client


Restart a service called network/nfs/server using an abbreviated FMRI:



# svcadm restart nfs/server


Disable a service called network/ssh:
# svcadm disable network/ssh


Display all properties and values in the SMF configuration repository for the


service network/ssh:
# svcprop network/ssh


Interactively display the general/enabled property within the SMF configuration

repository for the service network/ssh:
# svccfg

svc:> select ssh:default

svc:/network/ssh:default> listprop general/enabled

svc:/network/ssh:default> exit


Set the port number of the application/pkg/server service to 10000:



# svccfg -s application/pkg/server setprop pkg/port=10000

# svcadm refresh application/pkg/server


Configure email notifications for all services that drop from online to

maintenance state:
# svccfg setnotify -g from-online,to-maintenance \

mailto:admin@myhost.org


List all configuration changes that have been made in the SMF configuration


repository to the name-service/switch service:
# svccfg -s name-service/switch listcust -L

No comments:

Installing Ingress Controller - Kubernetes

Installing the Ingress Controller Prerequisites Make sure you have access to the Ingress controller image: For NGINX Ingress controll...