Contained WithinFind More DocumentationFeatured Support Resources | Download this book in PDF (1569 KB)
Preconfiguring With the sysidcfg FileYou can specify a set of keywords in the sysidcfg file to preconfigure a system. The keywords are described in sysidcfg File Keywords. You must create a unique sysidcfg file for every system that requires different configuration information. You can use the same sysidcfg file to preconfigure the time zone on a set of systems if you want all the systems to be assigned the same time zone. However, if you want to preconfigure a different root (superuser) password for each of those systems, you need to create a unique sysidcfg file for each system. You can place the sysidcfg file in one of the following.
Note – If you are performing a custom JumpStart installation and you want to use a sysidcfg file on a diskette, you must place the sysidcfg file on the profile diskette. To create a profile diskette, see Creating a Profile Diskette for Standalone Systems in Solaris 10 6/06 Installation Guide: Custom JumpStart and Advanced Installations. You can place only one sysidcfg file in a directory or on a diskette. If you are creating more than one sysidcfg file, you must place each file in a different directory or on a different diskette. Syntax Rules for the sysidcfg FileYou can use two types of keywords in the sysidcfg file: independent and dependent. Dependent keywords are guaranteed to be unique only within independent keywords. A dependent keyword exists only when it is identified with its associated independent keyword. In this example, name_service is the independent keyword, while domain_name and name_server are the dependent keywords:
sysidcfg File KeywordsTable 6–2 lists the keywords you can use to configure system information in the sysidcfg file. Table 6–2 Keywords You Can Use in sysidcfg
The following sections describe the keywords that you can use in the sysidcfg file. name_service KeywordYou can use the name_service keyword to configure the name service, the domain name, and the name server for the system. The following sample shows the general syntax for the name_service keyword.
Choose only one value for name_service. Include all or none of the domain_name,name_server, or optional keywords, as needed. If no keywords are used, omit the curly braces {}. The following sections describe the keyword syntax to configure the system to use a specific name service. NIS Syntax for name_service KeywordUse the following syntax to configure the system to use the NIS name service.
Example 6–1 Specifying a NIS Server With the name_service KeywordThe following example specifies a NIS server with the domain name west.example.com. The server's host name is timber, and the server IP address is 192.168.2.1.
For more information about the NIS name service, see System Administration Guide: Naming and Directory Services (DNS, NIS, and LDAP). NIS+ Syntax for name_service KeywordUse the following syntax to configure the system to use the NIS name service.
Example 6–2 Specifying a NIS+ Server With the name_service KeywordThe following example specifies a NIS+ server with the domain name west.example.com. The server's host name is timber, and the server IP address is 192.168.2.1.
For more information about the NIS+ name service, see System Administration Guide: Naming and Directory Services (NIS+). DNS Syntax for name_service KeywordUse the following syntax to configure the system to use DNS.
Example 6–3 Specifying a DNS Server With the name_service KeywordThe following example specifies a DNS server with the domain name west.example.com. The server IP addresses are 10.0.1.10 and 10.0.1.20. example.com and east.example.com are listed as additional domains to search for name service information.
For more information about the DNS name service, see System Administration Guide: Naming and Directory Services (DNS, NIS, and LDAP). LDAP Syntax for name_service KeywordUse the following syntax to configure the system to use LDAP.
Example 6–4 Specifying an LDAP Server With the name_service KeywordThe following example specifies an LDAP server with the following configuration information.
For more information about how to use LDAP, see System Administration Guide: Naming and Directory Services (DNS, NIS, and LDAP). network_interface KeywordUse the network_interface keyword to perform the following tasks.
The following sections describe how to use the network_interface keyword to configure the system interfaces. Syntax for Nonnetworked SystemsTo turn off networking for the system, set the network_interface value to none. For example:
Syntax for Configuring a Single InterfaceYou can use the network_interface keyword to configure a single interface in the following ways.
Example 6–5 Configuring a Single Interface By Using DHCP With the network_interface KeywordThe following example instructs the installation program to use DHCP to configure the eri0 network interface. IPv6 support is not enabled.
Example 6–6 Configuring a Single Interface By Specifying Configuration Information With the network_interface KeywordThe following example configures the interface eri0 with the following settings.
Syntax for Configuring Multiple InterfacesYou can configure multiple network interfaces in your sysidcfg file. For each interface that you want to configure, include a network_interface entry in the sysidcfg file. You can use the network_interface keyword to configure multiple interfaces in the following ways.
In the same sysidcfg file, you can use DHCP to configure certain interfaces, while also specifying the configuration information for other interfaces in the sysidcfg file. Example 6–7 Configuring Multiple Interfaces With the network_interface KeywordIn the following example, the network interfaces eri0 and eri1 are configured in the following way.
root_password KeywordYou can specify the root password to the system in the sysidcfg file. To specify the root password, use the root_password keyword with the following syntax.
encrypted-password is the encrypted password as it appears in the /etc/shadow file. security_policy KeywordYou can use the security_policy keyword in your sysidcfg file to configure your system to use the Kerberos network authentication protocol. If you want to configure the system to use Kerberos, use the following syntax.
FQDN specifies the fully qualified domain name of the Kerberos default realm, the administration server, or key distribution center (KDC). You must specify at least one, but no more than three, key distribution centers. If you do not want to set the security policy for the system, set security_policy=NONE. For more information about the Kerberos network authentication protocol, see System Administration Guide: Security Services. Example 6–8 Configuring the System to Use Kerberos With the security_policy KeywordThe following example configures the system to use Kerberos with the following information.
system_locale KeywordYou can use the system_locale keyword to specify the language in which to display the install program and desktop. Use the following syntax to specify a locale.
locale specifies the language that you want the system to use to display the installation panels and screens. For a list of valid locale values, see the /usr/lib/locale directory or International Language Environments Guide. terminal KeywordYou can use the terminal keyword to specify the terminal type for the system. Use the following syntax to specify the terminal type.
terminal_type specifies the terminal type for the system. For a list of valid terminal values, see the subdirectories in the /usr/share/lib/terminfo directory. timezone KeywordYou can set the time zone for the system with the timezone keyword. Use the following syntax.
In the previous example, timezone specifies the time zone value for the system. The directories and files in the /usr/share/lib/zoneinfo directory provide the valid time zone values. The timezone value is the name of the path relative to the /usr/share/lib/zoneinfo directory. You can also specify any valid Olson time zone. Example 6–9 Configuring the System Time Zone With the timezone KeywordIn the following example, the system time zone is set to mountain standard time in the United States.
The installation program configures the system to use the time zone information in /usr/share/lib/zoneinfo/US/Mountain. timeserver KeywordYou can use the timeserver keyword to specify the system that sets the date and time on the system you want to install. Note – Do not set timeserver=hostname or ip-address if you are running a name service. Choose one of the following methods to set the timeserver keyword.
x86: monitor KeywordFor x86 based systems, you can configure the monitor information with the monitor keyword. Use the following syntax with the monitor keyword.
To set the value for the monitor keyword, run the kdmconfig -d command on the system you want to install. Copy the line of output that includes the monitor keyword, and include this line in the sysidcfg file. For more information, see the kdmconfig(1M) x86: keyboard KeywordFor x86 based systems, you can configure the keyboard language and layout information with the keyboard keyword. Use the following syntax with the keyboard keyword.
To set the value for the keyboard keyword, run the kdmconfig -d command on the system you want to install. Copy the line of output that includes the keyboard keyword, and include this line in the sysidcfg file. For more information, see the kdmconfig(1M) x86: display KeywordFor x86 based systems, you can configure the following information with the display keyword.
Use the following syntax with the display keyword.
To set the appropriate values for the display keyword, run the kdmconfig -d command on the system you want to install. Copy the line of output that includes the display keyword, and include this line in the sysidcfg file. For more information, see the kdmconfig(1M) x86: pointer KeywordFor x86 based systems, you can configure the following mouse information with the pointer keyword.
Use the following syntax with the pointer keyword.
To set the value for the pointer keyword, run the kdmconfig -d command on the system you want to install. Copy the line of output that includes the pointer keyword, and include this line in the sysidcfg file. For more information, see the kdmconfig(1M)
|
system_locale=en_US
timezone=US/Central
terminal=sun-cmd
timeserver=localhost
name_service=NIS {domain_name=marquee.central.example.com
name_server=nmsvr2(172.31.112.3)}
root_password=m4QPOWNY
network_interface=hme0 {hostname=host1
default_route=172.31.88.1
ip_address=172.31.88.210
netmask=255.255.0.0
protocol_ipv6=no}
security_policy=kerberos {default_realm=example.COM
admin_server=krbadmin.example.COM
kdc=kdc1.example.COM,
kdc2.example.COM}
|
The following sample sysidcfg file is for a group of x86 based systems that all use the same type of keyboard, graphics cards, and pointing devices. The device information (keyboard, display, and pointer) was obtained by running the kdmconfig(1M) command with the -d option. If the following example sysidcfg file is used, a prompt that asks you to select a language (system_locale) is displayed before installation can proceed.
keyboard=ATKBD {layout=US-English}
display=ati {size=15-inch}
pointer=MS-S
timezone=US/Central
timeserver=timehost1
terminal=ibm-pc
name_service=NIS {domain_name=marquee.central.example.com
name_server=nmsvr2(172.25.112.3)}
root_password=URFUni9
|
In the following sample sysidcfg file, configuration information is specified for both the eri0 and eri1 network interfaces. The eri0 interface is configured as the primary network interface, and eri1 is configured as a secondary network interface.
timezone=US/Pacific
system_locale=C
terminal=xterms
timeserver=localhost
network_interface=eri0 {primary
hostname=host1
ip_address=192.168.2.7
netmask=255.255.255.0
protocol_ipv6=no
default_route=192.168.2.1}
network_interface=eri1 {hostname=host1-b
ip_address=192.168.3.8
netmask=255.255.255.0
protocol_ipv6=no
default_route=NONE}
root_password=JE2C35JGZi4B2
security_policy=none
name_service=NIS {domain_name=domain.example.com
name_server=nis-server(192.168.2.200)}
If you plan to use the sysidcfg file in an installation over the network, you need to set up an installation server and add the system as an installation client. For more information, see Chapter 7, Preparing to Install From the Network (Overview).
If you plan to use the sysidcfg file in a WAN boot installation, you need to perform additional tasks. For more information, see Chapter 11, WAN Boot (Overview).
If you plan to use the sysidcfg file in a custom JumpStart installation, you need to create a profile and a rules.ok file. For more information, see Chapter 5, Custom JumpStart (Overview), in Solaris 10 6/06 Installation Guide: Custom JumpStart and Advanced Installations.
For more information about the sysidcfg file, see the man page sysidcfg(4).