Listing avilable Solaris 10 services

Under Solaris 10 we use the svcs command to provide information about services, including their status.
  1. Login or switch-user to root
  2. List all services
    # svcs -a
    STATE          STIME    FMRI
    legacy_run     Jun_14   lrc:/etc/rcS_d/S99openconnect-clean
    legacy_run     Jun_14   lrc:/etc/rc2_d/S47pppd
    legacy_run     Jun_14   lrc:/etc/rc2_d/S81dodatadm_udaplt
    legacy_run     Jun_14   lrc:/etc/rc2_d/S89PRESERVE
    disabled       Jun_14   svc:/system/device/mpxio-upgrade:default
    disabled       Jun_14   svc:/network/install:default
    disabled       Jun_14   svc:/network/ipfilter:default
    disabled       Jun_14   svc:/network/ipsec/ike:default
    disabled       Jun_14   svc:/network/ipsec/manual-key:default
    disabled       Jun_14   svc:/system/name-service-cache:default
    disabled       Jun_14   svc:/network/ldap/client:default
    disabled       Jun_14   svc:/network/nis/client:default
    disabled       Jun_14   svc:/network/ibd-post-upgrade:default
    disabled       Jun_14   svc:/network/inetd-upgrade:default
    disabled       Jun_14   svc:/network/nfs/status:default
    disabled       Jun_14   svc:/network/nfs/nlockmgr:default
    ...
    online         Jun_14   svc:/system/zones:default
    online         Jun_14   svc:/system/power:default
    online         Jun_14   svc:/system/hal:default
    online         Jun_14   svc:/application/texinfo-update:default
    online         Jun_14   svc:/application/pkg/update:default
    
  3. List only online services
    # svcs -a | grep online
    online         Jun_14   svc:/system/early-manifest-import:default
    online         Jun_14   svc:/system/svc/restarter:default
    online         Jun_14   svc:/network/tcp/congestion-control:vegas
    online         Jun_14   svc:/network/tcp/congestion-control:highspeed
    online         Jun_14   svc:/network/sctp/congestion-control:highspeed
    online         Jun_14   svc:/network/sctp/congestion-control:vegas
    online         Jun_14   svc:/network/tcp/congestion-control:newreno
    online         Jun_14   svc:/network/sctp/congestion-control:cubic
    online         Jun_14   svc:/network/tcp/congestion-control:cubic
    ...
    online         Jun_14   svc:/system/zones:default
    online         Jun_14   svc:/system/power:default
    online         Jun_14   svc:/system/hal:default
    online         Jun_14   svc:/application/texinfo-update:default
    online         Jun_14   svc:/application/pkg/update:default
  4. List only offline services
    # svcs -a | grep offline
    offline        10:03:54 svc:/network/smb/server:default
    offline        10:27:09 svc:/network/smtp:sendmail
    offline*       13:19:21 svc:/system/fmd:default
    
    
  5. List onlydisabled services
    # svcs -a | grep disabled
    disabled       Jun_14   svc:/system/device/mpxio-upgrade:default
    disabled       Jun_14   svc:/network/install:default
    disabled       Jun_14   svc:/network/ipfilter:default
    disabled       Jun_14   svc:/network/ipsec/ike:default
    disabled       Jun_14   svc:/network/ipsec/manual-key:default
    disabled       Jun_14   svc:/system/name-service-cache:default
    disabled       Jun_14   svc:/network/ldap/client:default
    disabled       Jun_14   svc:/network/nis/client:default
    disabled       Jun_14   svc:/network/ibd-post-upgrade:default
    disabled       Jun_14   svc:/network/inetd-upgrade:default
    disabled       Jun_14   svc:/network/nfs/status:default
    disabled       Jun_14   svc:/network/nfs/nlockmgr:default>/pre>
    

Service States

StateDescription
uninitialized This is the initial state of all services until its restarter (usually svc.startd) moves services to another state.
offline The instance is enabled but not yet running or unable to run.
online The instance is enabled and running.
maintenance The instance is enabled but unable to run for some reason, and administrative action will be required.
disabled The instance is disabled.
legacy-run The service is not directly managed by SMF, but it was started at some point.