1. svcs -a 显示系统上所有的服务及其它们的状态.
2. svcs service 查看单个服务的状态
root@widow.seven.com:/> svcs ntp
STATE STIME FMRI
online Nov_11 svc:/network/ntp:default
3. svcs -d service 查看该服务依赖的服务
root@widow.seven.com:/> svcs -d ntp
STATE STIME FMRI
online 2008 svc:/network/service:default
4. svcs -D service 查看依赖于该服务的服务
root@widow.seven.com:/> svcs -D service
STATE STIME FMRI
disabled 2008 svc:/network/dns/client:default
online Nov_11 svc:/network/ntp:default
5. svcs -p service 查看该服务的进程号
root@widow.seven.com:/> svcs -p ntp
STATE STIME FMRI
online Nov_11 svc:/network/ntp:default
Nov_11 23728 xntpd
6. svcs -l service 查看该服务的所有信息
root@widow.seven.com:/> svcs -l ntp
fmri svc:/network/ntp:default
name Network Time Protocol (NTP)
enabled true
state online
next_state none
state_time Thu Nov 11 02:29:21 2010
logfile /var/svc/log/network-ntp:default.log
restarter svc:/system/svc/restarter:default
contract_id 404615
dependency require_all/error file://localhost/usr/sbin/ntpq (online) file://localhost/usr/sbin/ntpdate (online)
dependency require_any/error svc:/network/service (online)
7. svcs -x service 显示该服务的解释信息
root@widow.seven.com:/> svcs -x ntp
svc:/network/ntp:default (Network Time Protocol (NTP))
State: online since Thu Nov 11 02:29:21 2010
See: xntpd(1M)
See: ntpdate(1M)
See: ntpq(1M)
See: /var/svc/log/network-ntp:default.log
Impact: None.