Hostname change

From pressy's brainbackup
Jump to: navigation, search

Hostname

sounds easy, but it's done in complete other way like in the "old" solaris versions.

# svccfg
svc:> select svc:/system/identity:node
svc:/system/identity:node> listprop config/nodename
config/nodename astring     solblabla
svc:/system/identity:node> setprop config/nodename = "sol11"
svc:/system/identity:node> exit
# svcadm refresh svc:/system/identity:node
# svcadm restart svc:/system/identity:node
# hostname
sol11
# svcprop  svc:/system/identity:node | egrep "^config"
config/nodename astring sol11
config/loopback astring sol11
#