Oracle Solaris 11.4 General Administration

System Configuration

Common system configuration tasks have changed in Oracle Solaris 11 with the Service Mana gement Facility (SMF) configuration repository being used to store configuration data. With the addition of configuration layers, administrators now have better control and assurance that their configuration changes will be preserved across system updates.

Configure nodename
# hostname myhost
Configure nameserver via SMF
# svccfg -s dns/client setprop config/nameserver = net_address: 192.168.1.1
# svccfg -s dns/client setprop config/domain = astring: \"myhost.org\"
# svccfg -s name-service/switch setprop config/host = astring: \"files dns\"
# svcadm restart name-service/switch
# svcadm restart dns/client
Configure nameserver via SMF when you can’t remember the correct properties to edit.
# svccfg -s dns/client editprop
# svccfg -s name-service/switch editprop
Configure nameserver (alternate approach by editing /etc/resolv.conf and /etc/nsswitch.conf and then importing these modifications into SMF.)
# nscfg import -f svc:/system/name-service/switch:default
# nscfg import -f svc:/network/dns/client:default
nscfg is a transition tool and not meant for daily use, not matter how useful it is. Please learn the regular way with the methods described above.
Unconfigure a system and start an interactive configuration tool on reboot
# sysconfig configure -s
Create a system configuration profile
# sysconfig create-profile -o sc-profile.xml
Configure a system according to a system configuration profile
# sysconfig configure -c sc-profile.xml

Did You Know?

You can find out more information about Oracle Solaris 11 including full product documentation, how to guides, and other cheat sheets on Oracle Technology Network: http://www.oracle.com/technetwork/server-storage/solaris11/overview/index.html

Most current version at c0t0d0s0.org</code></small>

Written by

Joerg Moellenkamp

Grey-haired, sometimes grey-bearded Windows dismissing Unix guy.