Starting with Solaris 11, a system's identify (nodename) is configured through theconfig/nodename service property of the svc:/system/identity:node SMF service. Solaris 10 and prior versions have this information in /etc/nodename configuration file.
The following example demonstrates the commands to change the hostname from "ihcm-db-01″ to "ehcm-db-01″.
eg.,
# hostname
ihcm-db-01
# svccfg -s system/identity:node listprop config
config application
config/enable_mapping boolean true
config/ignore_dhcp_hostname boolean false
config/nodename astring ihcm-db-01
config/loopback astring ihcm-db-01
#
# svccfg -s system/identity:node setprop config/nodename="ehcm-db-01"
# svccfg -s system/identity:node refresh -OR-
# svcadm refresh svc:/system/identity:node
# svcadm restart system/identity:node
# svccfg -s system/identity:node listprop config
config application
config/enable_mapping boolean true
config/ignore_dhcp_hostname boolean false
config/nodename astring ehcm-db-01
config/loopback astring ehcm-db-01
# hostname
ehcm-db-01
No comments:
Post a Comment