Computer How To How To, Tutorial, Example, Review


svcadm List Services

July 21, 2011 by Computer

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

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.

No comments yet.

RSS feed for comments on this post.

Leave a comment

The field of computers is very vast and can somtimes be extremely challenging, but also very rewarding. One will often times encounter problems that they may not have the answer to. Problems don't always have solutions, but sometimes they do. And helpting to provide some of those solutions is our mission. It is our goal to provide helpful computer how to, tutorial, example, and review for the benefit of everyone.

Some funny jokes...
"Dating a girl is just like writing software. Everything's going to work just fine in the testing lab (dating), but as soon as you have contract with a customer (marriage), then your program (life) is going to be facing new situations you never expected. You.ll be forced to patch the code (admit you're wrong) and then the code (wife) will just end up all bloated and unmaintainable in the end."

"Once upon a time there was a DOS user who saw Unix, and saw that it was good. After typing cp on his DOS machine at home, he downloaded GNU's unix tools ported to DOS and installed them. He rm'd, cp'd, and mv'd happily for many days, and upon finding elvis, he vi'd and was happy. After a long day at work (on a Unix box) he came home, started editing a file, and couldn't figure out why he couldn't suspend vi (w/ ctrl-z) to do a compile."

Terms and Disclaimer