root@afi-backupsrv:~# hostname
afi-backupsrv
root@afi-backupsrv:~# svccfg -s system/identity:node listprop config
config application
config/enable_mapping boolean true
config/ignore_dhcp_hostname boolean false
config/loopback astring
config/nodename astring afi-backupsrv
root@afi-backupsrv:~# svccfg -s system/identity:node setprop config/nodename=
"backupserver-baan"
root@afi-backupsrv:~# svccfg -s system/identity:node setprop config/loopback="backupserver-baan"
root@afi-backupsrv:~# svccfg -s system/identity:node refresh
root@afi-backupsrv:~# svcadm restart system/identity:node
root@afi-backupsrv:~# svccfg -s system/identity:node listprop config
config application
config/enable_mapping boolean true
config/ignore_dhcp_hostname boolean false
config/nodename astring backupserver-baan
config/loopback astring backupserver-baan
root@afi-backupsrv:~# hostname
backupserver-baan
root@afi-backupsrv:~#
No comments:
Post a Comment