svcadm List Services


It is often very useful to list services in solaris. Solaris has a command that can be used to list services, it is “svcs”. Below is an example:

root@computer:~# svcs
STATE          STIME    FMRI
legacy_run      5:32:54 lrc:/etc/rc2_d/S20sysetup
legacy_run      5:32:55 lrc:/etc/rc2_d/S47pppd
legacy_run      5:32:55 lrc:/etc/rc2_d/S72autoinstall
legacy_run      5:32:55 lrc:/etc/rc2_d/S73cachefs_daemon
legacy_run      5:32:55 lrc:/etc/rc2_d/S81dodatadm_udaplt
legacy_run      5:32:55 lrc:/etc/rc2_d/S89PRESERVE
disabled        5:32:41 svc:/platform/i86pc/acpihpd:default
online          5:32:06 svc:/system/svc/restarter:default
online          5:32:12 svc:/system/early-manifest-import:default
online          5:32:14 svc:/network/datalink-management:default
online          5:32:14 svc:/network/netcfg:default
online          5:32:14 svc:/network/socket-config:default
online          5:32:16 svc:/network/ip-interface-management:default
online          5:32:20 svc:/network/loopback:default
online          5:32:21 svc:/system/identity:node
online          5:32:22 svc:/network/iptun:default
online          5:32:22 svc:/system/metainit:default
online          5:32:22 svc:/network/physical:nwam
online          5:32:23 svc:/system/filesystem/root:default
online          5:32:23 svc:/system/scheduler:default
online          5:32:24 svc:/system/auditset:default
online          5:32:26 svc:/system/cryptosvc:default
online          5:32:27 svc:/network/ipsec/ipsecalgs:default
online          5:32:27 svc:/milestone/network:default
online          5:32:27 svc:/system/fcoe_initiator:default
online          5:32:28 svc:/system/boot-archive:default
online          5:32:30 svc:/system/filesystem/usr:default
online          5:32:30 svc:/system/pfexec:default
online          5:32:31 svc:/system/device/local:default
online          5:32:31 svc:/network/initial:default
online          5:32:31 svc:/network/netmask:default
online          5:32:31 svc:/system/filesystem/minimal:default
online          5:32:32 svc:/system/hostid:default
online          5:32:33 svc:/network/service:default
online          5:32:33 svc:/system/rmtmpfiles:default
online          5:32:33 svc:/system/metasync:default
online          5:32:34 svc:/system/resource-mgmt:default
online          5:32:34 svc:/system/logadm-upgrade:default
online          5:32:38 svc:/system/zones-monitoring:default
online          5:32:39 svc:/application/opengl/ogl-select:default
online          5:32:40 svc:/system/dbus:default
online          5:32:40 svc:/system/pkgserv:default
online          5:32:40 svc:/network/iscsi/initiator:default
online          5:32:40 svc:/system/sysevent:default
online          5:32:40 svc:/system/power:default
online          5:32:40 svc:/network/npiv_config:default
online          5:32:40 svc:/system/picl:default
online          5:32:40 svc:/system/device/fc-fabric:default
online          5:32:40 svc:/milestone/devices:default
online          5:32:41 svc:/system/device/audio:default
online          5:32:41 svc:/system/rbac:default
online          5:32:41 svc:/system/keymap:default
online          5:32:42 svc:/application/font/fc-cache:default
online          5:32:43 svc:/system/manifest-import:default
online          5:32:43 svc:/system/coreadm:default
online          5:32:43 svc:/application/print/service-selector:default
online          5:32:44 svc:/milestone/single-user:default
online          5:32:44 svc:/system/filesystem/local:default
online          5:32:45 svc:/network/shares/group:default
online          5:32:45 svc:/system/xvm/vnc-config:default
online          5:32:45 svc:/network/shares/group:zfs
online          5:32:45 svc:/system/boot-archive-update:default
online          5:32:46 svc:/milestone/name-services:default
online          5:32:46 svc:/system/cron:default
online          5:32:48 svc:/network/routing-setup:default
online          5:32:49 svc:/network/location:default
online          5:32:49 svc:/network/dns/client:default
online          5:32:49 svc:/system/identity:domain
online          5:32:49 svc:/system/name-service-cache:default
online          5:32:49 svc:/system/sysidtool:net
online          5:32:49 svc:/network/rpc/bind:default
online          5:32:50 svc:/system/sysidtool:system
online          5:32:50 svc:/milestone/sysconfig:default
online          5:32:50 svc:/system/sac:default
online          5:32:50 svc:/network/inetd:default
online          5:32:50 svc:/system/utmp:default
online          5:32:50 svc:/system/filesystem/autofs:default
online          5:32:51 svc:/system/dumpadm:default
online          5:32:51 svc:/system/system-log:default
online          5:32:52 svc:/network/sendmail-client:default
online          5:32:52 svc:/network/rpc/gss:default
online          5:32:52 svc:/network/rpc/smserver:default
online          5:32:52 svc:/network/security/ktkt_warn:default
online          5:32:52 svc:/network/smtp:sendmail
online          5:32:53 svc:/network/ssh:default
online          5:32:55 svc:/system/hal:default
online          5:32:55 svc:/system/filesystem/rmvolmgr:default
online          5:32:55 svc:/milestone/multi-user:default
online          5:32:56 svc:/system/intrd:default
online          5:32:56 svc:/system/boot-config:default
online          5:32:56 svc:/milestone/multi-user-server:default
online          5:32:56 svc:/system/zones:default
online          5:32:56 svc:/application/stosreg:default
online          5:32:58 svc:/system/fmd:default
online          5:32:59 svc:/network/routing/ndp:default
online          5:34:34 svc:/system/console-login:default
root@computer:~#

It provides a listing of all services that are currently online and running on your solaris system. You can use the svcadm command to enable, disable, restart, or refresh each of the services.

For example if we want to refresh the ssh service after making a modification we would do:

svcadm refresh ssh

The svcs command will also let you know if a services is misconfigured or has a config error. This will show up as “maintenence” rather than “online”.

Using the svcs and svcadm commands you can get full details of system services in solaris.