Use the sysconfig create-profile command with the identity grouping to generate a valid profile that configures the system node name.
# sysconfig create-profile -g identity -o sc_identity.xml
The svc:/system/identity:node SMF service sets the system host name. The node is the instance of svc:/system/identity.
The identity property group contains the properties listed in the following table.
|
This example sets the system host name to solaris.
<service name="system/identity" version="1" type="service"> <instance name="node" enabled="true"> <property_group name="config" type="application"> <propval name="nodename" value="solaris"/> </property_group> </instance> </service>Example 11-4 Disabling Node Name Mapping
When you install the Oracle Solaris 11 OS or an Oracle Solaris 11 update release, by default the system node name is mapped to the loopback or to the IP address of the interface configured as part of installation. You can disable this default mapping by setting the enable_mapping property to false, as shown in the following example.
<service name="system/identity" version="1" type="service"> <instance name="node" enabled="true"> <property_group name="config" type="application"> <propval name="nodename" value="solaris"/> <propval name="enable_mapping" value="false"/> </property_group> </instance> </service>