$ whatis svccfg

svccfg - import, export, and modify service configurations


Examples:

# hostname
MySolaris

# svccfg
svc:> help
General commands:	 help set repository end
Manifest commands:	 inventory validate import export archive
Profile commands:	 apply extract
Entity commands:	 list select unselect add delete describe
Snapshot commands:	 listsnap selectsnap revert
Instance commands:	 refresh
Property group commands: listpg addpg delpg
Property commands:	 listprop setprop delprop editprop
Property value commands: addpropvalue delpropvalue setenv unsetenv
Notification parameters: listnotify setnotify delnotify

svc:> list
system/boot-archive
system/device/local
milestone/devices
system/svc/global
system/identity
system/filesystem/local
system/manifest-import
system/filesystem/minimal
milestone/multi-user
milestone/name-services
network/initial
network/loopback
network/netcfg
network/physical
system/svc/restarter
system/filesystem/root
milestone/single-user
system/filesystem/usr
network/datalink-management
system/install-discovery
network/ip-interface-management
network/iptun
network/rpc/bind
system/console-login
milestone/multi-user-server
network/inetd-upgrade
system/utmp
system/metainit
application/font/fc-cache
smf/manifest
application/graphical-login/gdm
application/security/tcsd
application/cups/scheduler
application/cups/in-lpd
application/management/seaport
application/management/net-snmp
application/management/snmpdx
application/opengl/ogl-select
application/x11/x11-server
application/print/service-selector
application/x11/xvnc-inetd
milestone/network
milestone/sysconfig
network/npiv_config
system/device/fc-fabric
network/ssh
network/sendmail-client
network/ipsec/ike
network/ipsec/ipsecalgs
network/ipsec/manual-key
network/ipsec/policy
network/dns/install
network/service
network/dns/client
network/dns/multicast
network/netmask
network/nfs/server
network/nfs/mapid
network/nfs/status
network/nfs/nlockmgr
network/nfs/rquota
network/nfs/cbd
network/nfs/client
network/telnet
network/wpa
network/slp
network/nis/client
network/finger
network/ipv4-forwarding
network/ipv6-forwarding
network/smb/server
network/shares/group
network/smb/client
network/lms
network/ssl/proxy
network/rpc/rusers
network/rpc/metamed
network/rpc/mdcomm
network/rpc/spray
network/rpc/meta
network/rpc/wall
network/rpc/metamh
network/rpc/keyserv
network/rpc/rstat
network/rpc/smserver
network/rpc/rex
network/rpc/gss
network/location
network/ldap/client
system/name-service-cache
network/ipfilter
system/filesystem/reparse
network/install
network/shell
network/socket-config
network/ftp
network/routing-setup
network/ipqos
network/routing/ripng
network/routing/ndp
network/routing/rdisc
network/routing/route
network/routing/legacy-routing
network/security/krb5kdc
network/security/kadmin
network/security/ktkt_warn
network/rexec
network/iscsi/initiator
network/smtp
network/comsat
network/ipmievd
network/talk
network/login
network/socket-filter
network/bridge
network/inetd
network/device-discovery/printers
network/ntp
platform/i86pc/acpihpd
system/metasync
system/device/audio
system/device/mpxio-upgrade
system/device/allocate
system/fm/notify-params
system/logadm-upgrade
system/zones
system/install/config
system/pools/dynamic
system/system-log
system/keymap
system/fcoe_target
system/pkgserv
system/intrd
system/sar
system/cron
system/mdmonitor
system/zones-monitoring
system/consolekit
system/resource-mgmt
system/rcap
system/early-manifest-import
system/consadm
system/pfexec
system/vtdaemon
system/idmap
system/pools
system/wusbd
system/rad
system/hal
system/power
system/scheduler
system/auditset
system/sac
system/coreadm
system/fcoe_initiator
system/stmf
system/fmd
system/rbac
system/extended-accounting
system/rmtmpfiles
system/dumpadm
system/boot-archive-update
system/sysevent
system/boot-config
system/hostid
system/xvm/ipagent
system/filesystem/rmvolmgr
system/filesystem/autofs
system/hotplug
system/auditd
system/cryptosvc
system/picl
application/time-slider
application/time-slider/plugin
application/pkg/dynamic-mirror
application/stosreg
application/desktop-cache/pixbuf-loaders-installer
application/desktop-cache/mime-types-cache
application/desktop-cache/gconf-cache
application/desktop-cache/icon-cache
application/desktop-cache/input-method-cache
application/desktop-cache/desktop-mime-cache
application/pkg/server
application/pkg/update
application/upnp/coherence
network/stdiscover
network/stlisten
system/filesystem/zfs/auto-snapshot
system/sysidtool
system/avahi-bridge-dsd
system/dbus
system/xvm/vnc-config
system/postrun
smf/legacy_run
network/http
application/database/mysql
svc:> select network/http
svc:/network/http> help
General commands:	 help set repository end
Manifest commands:	 inventory validate import export archive
Profile commands:	 apply extract
Entity commands:	 list select unselect add delete describe
Snapshot commands:	 listsnap selectsnap revert
Instance commands:	 refresh
Property group commands: listpg addpg delpg
Property commands:	 listprop setprop delprop editprop
Property value commands: addpropvalue delpropvalue setenv unsetenv
Notification parameters: listnotify setnotify delnotify
svc:/network/http> listpg
general        framework
manifestfiles  framework
svc:/network/http> listprop
general                                                   framework
general/entity_stability                                  astring  Evolving
manifestfiles                                             framework
manifestfiles/lib_svc_manifest_network_http-apache22_xml  astring  /lib/svc/manifest/network/http-apache22.xml
manifestfiles/lib_svc_manifest_network_http-tomcat6_xml   astring  /lib/svc/manifest/network/http-tomcat6.xml

svc:/network/http> end

# svccfg
svc:> select network/http

svc:/network/http> listpg
general        framework
manifestfiles  framework

svc:/network/http> listprop
general                                                   framework
general/entity_stability                                  astring  Evolving
manifestfiles                                             framework
manifestfiles/lib_svc_manifest_network_http-apache22_xml  astring  /lib/svc/manifest/network/http-apache22.xml
manifestfiles/lib_svc_manifest_network_http-tomcat6_xml   astring  /lib/svc/manifest/network/http-tomcat6.xml
svc:/network/http> unselect netwroor/http
Usage: unselect

Select the parent of the currently selected entity.

svc:/network/http> select ssh/network
Pattern 'ssh/network' doesn't match any instances or services

svc:/network/http> select network/ssh

svc:/network/ssh> listprop
firewall_config                                 com.sun,fw_configuration
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                                com.sun,fw_definition
firewall_context/ipf_method                     astring  "/lib/svc/method/sshd ipfilter"
firewall_context/name                           astring  ssh
fs-local                                        dependency
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                                       dependency
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                                    dependency
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                                    dependency
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                                       dependency
cryptosvc/entities                              fmri     svc:/system/cryptosvc
cryptosvc/grouping                              astring  require_all
cryptosvc/restart_on                            astring  none
cryptosvc/type                                  astring  service
utmp                                            dependency
utmp/entities                                   fmri     svc:/system/utmp
utmp/grouping                                   astring  require_all
utmp/restart_on                                 astring  none
utmp/type                                       astring  service
network_ipfilter                                dependency
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                                     dependency
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                                   framework
manifestfiles/lib_svc_manifest_network_ssh_xml  astring  /lib/svc/manifest/network/ssh.xml
general                                         framework
general/action_authorization                    astring  solaris.smf.manage.ssh
general/entity_stability                        astring  Unstable
general/single_instance                         boolean  true
dependents                                      framework
dependents/ssh_multi-user-server                fmri     svc:/milestone/multi-user-server
startd                                          framework
startd/ignore_error                             astring  core,signal
start                                           method
start/exec                                      astring  "/lib/svc/method/sshd start"
start/timeout_seconds                           count    60
start/type                                      astring  method
stop                                            method
stop/exec                                       astring  :kill
stop/timeout_seconds                            count    60
stop/type                                       astring  method
refresh                                         method
refresh/exec                                    astring  "/lib/svc/method/sshd restart"
refresh/timeout_seconds                         count    60
refresh/type                                    astring  method
tm_common_name                                  template
tm_common_name/C                                ustring  "SSH server"
tm_man_sshd1M                                   template
tm_man_sshd1M/manpath                           astring  /usr/share/man
tm_man_sshd1M/section                           astring  1M
tm_man_sshd1M/title                             astring  sshd

svc:/network/ssh> listpg
firewall_config   com.sun,fw_configuration
firewall_context  com.sun,fw_definition
fs-local          dependency
fs-autofs         dependency
net-loopback      dependency
net-physical      dependency
cryptosvc         dependency
utmp              dependency
network_ipfilter  dependency
config_data       dependency
manifestfiles     framework
general           framework
dependents        framework
startd            framework
start             method
stop              method
refresh           method
tm_common_name    template
tm_man_sshd1M     template

svc:/network/ssh> help
General commands:	 help set repository end
Manifest commands:	 inventory validate import export archive
Profile commands:	 apply extract
Entity commands:	 list select unselect add delete describe
Snapshot commands:	 listsnap selectsnap revert
Instance commands:	 refresh
Property group commands: listpg addpg delpg
Property commands:	 listprop setprop delprop editprop
Property value commands: addpropvalue delpropvalue setenv unsetenv
Notification parameters: listnotify setnotify delnotify

svc:/network/ssh> inventory
Usage: inventory file

Print the services and instances contained in a manifest.

svc:/network/ssh> listnotify

svc:/network/ssh> unselect network/ssh
Usage: unselect

Select the parent of the currently selected entity.

svc:/network/ssh> help
General commands:	 help set repository end
Manifest commands:	 inventory validate import export archive
Profile commands:	 apply extract
Entity commands:	 list select unselect add delete describe
Snapshot commands:	 listsnap selectsnap revert
Instance commands:	 refresh
Property group commands: listpg addpg delpg
Property commands:	 listprop setprop delprop editprop
Property value commands: addpropvalue delpropvalue setenv unsetenv
Notification parameters: listnotify setnotify delnotify
svc:/network/ssh> ..
Unknown command "..".
svc:/network/ssh> select ../
Pattern '../' doesn't match any instances or services
svc:/network/ssh> select parent
Pattern 'parent' doesn't match any instances or services
svc:/network/ssh> select self
Pattern 'self' doesn't match any instances or services
svc:/network/ssh> setllect top
Pattern 'top' doesn't match any instances or services

svc:/network/ssh> end

# svccfg
svc:> help
General commands:	 help set repository end
Manifest commands:	 inventory validate import export archive
Profile commands:	 apply extract
Entity commands:	 list select unselect add delete describe
Snapshot commands:	 listsnap selectsnap revert
Instance commands:	 refresh
Property group commands: listpg addpg delpg
Property commands:	 listprop setprop delprop editprop
Property value commands: addpropvalue delpropvalue setenv unsetenv
Notification parameters: listnotify setnotify delnotify

svc:> listsnap
Instance not selected.

svc:> select network/ssh

svc:/network/ssh> listsnap
Instance not selected.

svc:/network/ssh> help
General commands:	 help set repository end
Manifest commands:	 inventory validate import export archive
Profile commands:	 apply extract
Entity commands:	 list select unselect add delete describe
Snapshot commands:	 listsnap selectsnap revert
Instance commands:	 refresh
Property group commands: listpg addpg delpg
Property commands:	 listprop setprop delprop editprop
Property value commands: addpropvalue delpropvalue setenv unsetenv
Notification parameters: listnotify setnotify delnotify

svc:/network/ssh> listsnap
Instance not selected.

svc:/network/ssh> listpg
firewall_config   com.sun,fw_configuration
firewall_context  com.sun,fw_definition
fs-local          dependency
fs-autofs         dependency
net-loopback      dependency
net-physical      dependency
cryptosvc         dependency
utmp              dependency
network_ipfilter  dependency
config_data       dependency
manifestfiles     framework
general           framework
dependents        framework
startd            framework
start             method
stop              method
refresh           method
tm_common_name    template
tm_man_sshd1M     template

svc:/network/ssh> list
:properties
default
svc:/network/ssh> listprop
firewall_config                                 com.sun,fw_configuration
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                                com.sun,fw_definition
firewall_context/ipf_method                     astring  "/lib/svc/method/sshd ipfilter"
firewall_context/name                           astring  ssh
fs-local                                        dependency
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                                       dependency
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                                    dependency
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                                    dependency
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                                       dependency
cryptosvc/entities                              fmri     svc:/system/cryptosvc
cryptosvc/grouping                              astring  require_all
cryptosvc/restart_on                            astring  none
cryptosvc/type                                  astring  service
utmp                                            dependency
utmp/entities                                   fmri     svc:/system/utmp
utmp/grouping                                   astring  require_all
utmp/restart_on                                 astring  none
utmp/type                                       astring  service
network_ipfilter                                dependency
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                                     dependency
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                                   framework
manifestfiles/lib_svc_manifest_network_ssh_xml  astring  /lib/svc/manifest/network/ssh.xml
general                                         framework
general/action_authorization                    astring  solaris.smf.manage.ssh
general/entity_stability                        astring  Unstable
general/single_instance                         boolean  true
dependents                                      framework
dependents/ssh_multi-user-server                fmri     svc:/milestone/multi-user-server
startd                                          framework
startd/ignore_error                             astring  core,signal
start                                           method
start/exec                                      astring  "/lib/svc/method/sshd start"
start/timeout_seconds                           count    60
start/type                                      astring  method
stop                                            method
stop/exec                                       astring  :kill
stop/timeout_seconds                            count    60
stop/type                                       astring  method
refresh                                         method
refresh/exec                                    astring  "/lib/svc/method/sshd restart"
refresh/timeout_seconds                         count    60
refresh/type                                    astring  method
tm_common_name                                  template
tm_common_name/C                                ustring  "SSH server"
tm_man_sshd1M                                   template
tm_man_sshd1M/manpath                           astring  /usr/share/man
tm_man_sshd1M/section                           astring  1M
tm_man_sshd1M/title                             astring  sshd

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