Cheatsheet for configuring a new nodename in Solaris 11

In Solaris 11 the file /etc/nodename is gone. In order to change you nodename you have alter the configuration of an smf service:

root@fuchikoma:/home/jmoekamp# hostname
root@fuchikoma:/home/jmoekamp# svccfg -s svc:/system/identity:node setprop config/nodename = "fuchikoma"
root@fuchikoma:/home/jmoekamp# svcadm refresh svc:/system/identity:node
root@fuchikoma:/home/jmoekamp# svcadm restart svc:/system/identity:node
root@fuchikoma:/home/jmoekamp# hostname

You don’t have to edit config/loopback

root@fuchikoma:/home/jmoekamp# svcprop  svc:/system/identity:node | egrep "\^config"        
config/nodename astring fuchikoma
config/loopback astring fuchikoma