$ whatis svcprop

svcprop - retrieve values of service configuration properties


Examples:


# hostname
MySolaris

# svcprop
Usage: svcprop [-fqtv] [-C | -c | -s snapshot] [-p [name/]name]... 
         {FMRI | pattern}...
       svcprop -w [-fqtv] [-p [name/]name] {FMRI | pattern}

# svcprop sendmail
config/include_info boolean false
config/local_only boolean true
config/path_to_sendmail_mc astring ""
config/value_authorization astring solaris.smf.value.sendmail
config-file/entities fmri file://localhost/etc/mail/sendmail.cf
config-file/grouping astring require_all
config-file/restart_on astring refresh
config-file/type astring path
nsswitch/entities fmri file://localhost/etc/nsswitch.conf
nsswitch/grouping astring require_all
nsswitch/restart_on astring refresh
nsswitch/type astring path
autofs/entities fmri svc:/system/filesystem/autofs
autofs/grouping astring optional_all
autofs/restart_on astring none
autofs/type astring service
dependents/smtp-sendmail_multi-user fmri svc:/milestone/multi-user
startd/ignore_error astring core,signal
general/action_authorization astring solaris.smf.manage.sendmail
general/enabled boolean true
general/entity_stability astring Unstable
general/single_instance boolean true
start/exec astring /lib/svc/method/smtp-sendmail\ start
start/timeout_seconds count 120
start/type astring method
stop/exec astring /lib/svc/method/smtp-sendmail\ stop\ %{restarter/contract}
stop/timeout_seconds count 60
stop/type astring method
refresh/exec astring /lib/svc/method/smtp-sendmail\ refresh
refresh/timeout_seconds count 60
refresh/type astring method
tm_common_name/C ustring sendmail\ SMTP\ mail\ transfer\ agent
tm_man_sendmail1M/manpath astring /usr/share/man
tm_man_sendmail1M/section astring 1M
tm_man_sendmail1M/title astring sendmail
firewall_config/apply_to astring ""
firewall_config/exceptions astring ""
firewall_config/policy astring use_global
firewall_config/value_authorization astring solaris.smf.value.firewall.config
firewall_context/name astring smtp
fs-local/entities fmri svc:/system/filesystem/local
fs-local/grouping astring require_all
fs-local/restart_on astring none
fs-local/type astring service
network-service/entities fmri svc:/network/service
network-service/grouping astring require_all
network-service/restart_on astring none
network-service/type astring service
name-services/entities fmri svc:/milestone/name-services
name-services/grouping astring require_all
name-services/restart_on astring refresh
name-services/type astring service
identity/entities fmri svc:/system/identity:domain
identity/grouping astring optional_all
identity/restart_on astring refresh
identity/type astring service
system-log/entities fmri svc:/system/system-log
system-log/grouping astring optional_all
system-log/restart_on astring none
system-log/type astring service
manifestfiles/lib_svc_manifest_network_smtp-sendmail_xml astring /lib/svc/manifest/network/smtp-sendmail.xml
restarter/logfile astring /var/svc/log/network-smtp:sendmail.log
restarter/contract count 95
restarter/start_pid count 641
restarter/start_method_timestamp time 1317714079.758647000
restarter/start_method_waitstatus integer 0
restarter/auxiliary_state astring dependencies_satisfied
restarter/next_state astring none
restarter/state astring online
restarter/state_timestamp time 1317714079.766634000

# svcprop -p restarter sendmail
restarter/logfile astring /var/svc/log/network-smtp:sendmail.log
restarter/contract count 95
restarter/start_pid count 641
restarter/start_method_timestamp time 1317714079.758647000
restarter/start_method_waitstatus integer 0
restarter/auxiliary_state astring dependencies_satisfied
restarter/next_state astring none
restarter/state astring online
restarter/state_timestamp time 1317714079.766634000

# svcprop -p general sendmail
general/action_authorization astring solaris.smf.manage.sendmail
general/enabled boolean true
general/entity_stability astring Unstable
general/single_instance boolean true

# svcprop -p start sendmail
start/exec astring /lib/svc/method/smtp-sendmail\ start
start/timeout_seconds count 120
start/type astring method

# svcprop -p general ntp
general/enabled boolean false
general/action_authorization astring solaris.smf.manage.ntp
general/entity_stability astring Unstable
general/single_instance boolean true
general/value_authorization astring solaris.smf.value.ntp

# svcprop -p general ssh
general/enabled boolean true
general/action_authorization astring solaris.smf.manage.ssh
general/entity_stability astring Unstable
general/single_instance boolean true

# svcprop -p start ssh
start/exec astring /lib/svc/method/sshd\ start
start/timeout_seconds count 60
start/type astring method

# svcprop -p stop ssh 
stop/exec astring :kill
stop/timeout_seconds count 60
stop/type astring method

# svcprop -p ssh
general/enabled boolean true
general/action_authorization astring solaris.smf.manage.ssh
general/entity_stability astring Unstable
general/single_instance boolean true
restarter/logfile astring /var/svc/log/network-ssh:default.log
restarter/contract count 91
restarter/start_pid count 595
restarter/start_method_timestamp time 1317714080.217101000
restarter/start_method_waitstatus integer 0
restarter/auxiliary_state astring dependencies_satisfied
restarter/next_state astring none
restarter/state astring online
restarter/state_timestamp time 1317714080.224337000
firewall_config/apply_to astring ""
firewall_config/exceptions astring ""
firewall_config/policy astring use_global
firewall_config/value_authorization astring solaris.smf.value.firewall.config
firewall_context/ipf_method astring /lib/svc/method/sshd\ ipfilter
firewall_context/name astring ssh
fs-local/entities fmri svc:/system/filesystem/local
fs-local/grouping astring require_all
fs-local/restart_on astring none
fs-local/type astring service
fs-autofs/entities fmri svc:/system/filesystem/autofs
fs-autofs/grouping astring optional_all
fs-autofs/restart_on astring none
fs-autofs/type astring service
net-loopback/entities fmri svc:/network/loopback
net-loopback/grouping astring require_all
net-loopback/restart_on astring none
net-loopback/type astring service
net-physical/entities fmri svc:/network/physical
net-physical/grouping astring require_all
net-physical/restart_on astring none
net-physical/type astring service
cryptosvc/entities fmri svc:/system/cryptosvc
cryptosvc/grouping astring require_all
cryptosvc/restart_on astring none
cryptosvc/type astring service
utmp/entities fmri svc:/system/utmp
utmp/grouping astring require_all
utmp/restart_on astring none
utmp/type astring service
network_ipfilter/entities fmri svc:/network/ipfilter:default
network_ipfilter/grouping astring optional_all
network_ipfilter/restart_on astring error
network_ipfilter/type astring service
config_data/entities fmri file://localhost/etc/ssh/sshd_config
config_data/grouping astring require_all
config_data/restart_on astring restart
config_data/type astring path
manifestfiles/lib_svc_manifest_network_ssh_xml astring /lib/svc/manifest/network/ssh.xml
dependents/ssh_multi-user-server fmri svc:/milestone/multi-user-server
startd/ignore_error astring core,signal
start/exec astring /lib/svc/method/sshd\ start
start/timeout_seconds count 60
start/type astring method
stop/exec astring :kill
stop/timeout_seconds count 60
stop/type astring method
refresh/exec astring /lib/svc/method/sshd\ restart
refresh/timeout_seconds count 60
refresh/type astring method
tm_common_name/C ustring SSH\ server
tm_man_sshd1M/manpath astring /usr/share/man
tm_man_sshd1M/section astring 1M
tm_man_sshd1M/title astring sshd

# svcprop -c -p ssh
general/enabled boolean true
restarter/logfile astring /var/svc/log/network-ssh:default.log
restarter/contract count 91
restarter/start_pid count 595
restarter/start_method_timestamp time 1317714080.217101000
restarter/start_method_waitstatus integer 0
restarter/auxiliary_state astring dependencies_satisfied
restarter/next_state astring none
restarter/state astring online
restarter/state_timestamp time 1317714080.224337000

# svcprop -C sendmail
config/include_info boolean false
config/local_only boolean true
config/path_to_sendmail_mc astring ""
config/value_authorization astring solaris.smf.value.sendmail
config-file/entities fmri file://localhost/etc/mail/sendmail.cf
config-file/grouping astring require_all
config-file/restart_on astring refresh
config-file/type astring path
nsswitch/entities fmri file://localhost/etc/nsswitch.conf
nsswitch/grouping astring require_all
nsswitch/restart_on astring refresh
nsswitch/type astring path
autofs/entities fmri svc:/system/filesystem/autofs
autofs/grouping astring optional_all
autofs/restart_on astring none
autofs/type astring service
dependents/smtp-sendmail_multi-user fmri svc:/milestone/multi-user
startd/ignore_error astring core,signal
general/action_authorization astring solaris.smf.manage.sendmail
general/enabled boolean true
start/exec astring /lib/svc/method/smtp-sendmail\ start
start/timeout_seconds count 120
start/type astring method
stop/exec astring /lib/svc/method/smtp-sendmail\ stop\ %{restarter/contract}
stop/timeout_seconds count 60
stop/type astring method
refresh/exec astring /lib/svc/method/smtp-sendmail\ refresh
refresh/timeout_seconds count 60
refresh/type astring method
tm_common_name/C ustring sendmail\ SMTP\ mail\ transfer\ agent
tm_man_sendmail1M/manpath astring /usr/share/man
tm_man_sendmail1M/section astring 1M
tm_man_sendmail1M/title astring sendmail
restarter/logfile astring /var/svc/log/network-smtp:sendmail.log
restarter/contract count 95
restarter/start_pid count 641
restarter/start_method_timestamp time 1317714079.758647000
restarter/start_method_waitstatus integer 0
restarter/auxiliary_state astring dependencies_satisfied
restarter/next_state astring none
restarter/state astring online
restarter/state_timestamp time 1317714079.766634000

Please click on " man svcprop. " to see the Manual Page for this command.