Remote configuration files allow you to configure all terminals easily from a host computer. Remote configuration files are ASCII files that reside on the boot host or other hosts designated as initial file servers. The default file server is the boot host. For information about designating other file servers, see Chapter 5, Configuring Network Services.
NCD terminals are configured by default to:
To create and install remote configuration files, using the default behavior of the terminal, see the rest of this section.
Using the Sample Configuration File
Using the following procedures, you can create a configuration file and have it downloaded the first time the terminal boots. This procedure assumes that you are installing the configuration files on the boot host or on one of the initial file server hosts. See "Specifying Hosts for Loading Configuration Files" for more information on configuration file hosts, and see Chapter 4, Booting-X Server Loading, for more information on initial file servers.
Complete the following steps to establish a configuration file:
If this is a generic file, the name is ncd_std.
If this is a file for an individual terminal, the name is the hexadecimal equivalent of the terminal's IP address. To convert an IP address to its hexadecimal equivalent, convert each octet to a hexadecimal number; for example, to convert the IP address 192.40.154.4, using the UNIX bc(1) utility:
%
bcobase=16 192;40;154;4C0
28
9A
4
The size of configuration files is limited only by the amount of available terminal memory.
Creating a File from the Setup Clients
The file is saved into the default configuration file directory unless you specify a complete pathname. The normal default directory is /usr/lib/X11/ncd/configs. To change the default directory, see "Specifying a Different Configuration File Directory".
Complete the following steps to create a file from Change Setup Parameters or Change Quick Setup:
Save to File
.
For automatic downloading when the terminal is rebooted, use the generic filename (ncd_std) or the hexadecimal equivalent of the terminal's IP address. For information about converting the IP address, see "Using the Sample Configuration File".
OK
in the dialog box to save the parameters to the specified file.
Cancel
at the bottom of the Setup Parameters window to exit from the client.
Using the configuration language read command, you can include files containing configuration parameters within another configuration file. The included files may have any name you wish, and you can refer to them either as absolute pathnames or as pathnames relative to the configuration file directory. Included files must be accessible through the file service table described in Chapter 5, Configuring Network Services.
Files can be nested to 10 levels.
# Configuration file for IP address 192.9.200.23
#
read ncd_std
read mktg_specific
#
# Parameter specific to IP address 192.9.200.23
snmp-allow-reset = yes
When the terminal is booted, the X server loads the C02B9A57 file, reads the ncd_std file and the mktg_specific file, and then resumes reading the C02B9A57 file. The assignment in the last line of the C02B9A57 file overrides any assignments in the included files because later assignment takes precedence over earlier assignment.
Including the User's Settings in Remote Configuration Files
# Configuration file for IP address 192.9.200.23
#
read ncd_std
read mktg_specific
read C02B9A57.stp
#
# Parameter specific to IP address 192.9.200.23
snmp-allow-reset = yes
The user's file is loaded after the files controlled by the system administrator. This avoids the possible problem of a protect all command in a user's file restricting system administration set commands. In addition, the system administration files can use the protect command to protect sensitive parameters from user modification. For more information about protecting parameters, see "Protecting Configuration Parameters".
For more information about saving files from Change Setup Parameters and Change Quick Setup, see "Configuring the Apply Command".