[ Previous | Next | Table of Contents | Index | Library Home | Legal | Search ]

Network Installation Management Guide and Reference

Appendix C. Sample Files

This section covers the following sample files:

bosinst.data File

Note: To check the contents of your customized bosinst.data file, use the bicheck command:

/usr/lpp/bosinst/bicheck filename

The following is an example of a modified bosinst.data file. This file might be used in a nonprompted network installation. The default bosinst.data file that is supplied with the system includes detailed comments on the content and format of this file.

   CONSOLE = ( Device which will be your console. Passed to chcons. )
   INSTALL_METHOD = overwrite, preserve, migrate
   PROMPT = yes,no
   INSTALL_X_IF_ADAPTER = yes,no,all
   RUN_STARTUP = yes,no
   RM_INST_ROOTS = yes,no
   ERROR_EXIT = (Command to run when error occurs. Must be in boot image.)
   CUSTOMIZATION_FILE = (Command to run after BOS install finishes.)
   TCB = yes, no  (turns on/off trusted computing base)
   INSTALL_TYPE = full (same as if blank), client, personal, eserver
   BUNDLES = (Fully qualified Bundle file(s) to install after auto install.
          Maximum of 139 bytes total. Custom bundle files
          provided on a diskette with the bosinst.data file must
          prefix the bundle file pathname with /../.
          If the list of bundle file names exceeds 139 bytes,
          cat all the bundle files together into a single custom bundle
          file and specify the name of the single custom bundle file.)
   BOSINST_DEBUG = no,yes
   PVID = (physical volume identifier)
   CONNECTION = (parent//connwhere)
   SIZE_MB =
   BOSINST_LANG = (language to use during installation)
   CULTURAL_CONVENTION = (primary cc to use after reboot)
   MESSAGES = (primary message catalogs to use after reboot)
   KEYBOARD = (keyboard map to use after reboot)

Note: In the control_flow stanza, TCB cannot be set to yes for SPOT installations (that is, when the source attribute is set to spot) or for mksysb installations if TCB was set to no when the mksysb image was created. For more information about the bosinst.data file, see the AIX 5L Version 5.1 Installation Guide.

script Resource File

The following is an example of a customizing script that configures the target's TCP/IP domain name resolution and routing.

Manual customization is still necessary when configuring Domain Name Services for AIX 4.1 NIM clients. The resolv_conf resource should be used when installing clients running the latest version of AIX.

#!/bin/ksh  CUSTOMIZING SCRIPT to set the hostname,
#             establish the nameserver and DNS domain name,
#             and configure the routing table for the
#             target standalone client
# Truncate the host name
# if the host name is set to the fully qualified host name
#NOTE: This procedure will NOT result in a truncated host name if
#the bos installation operation is installing a mksysb image
#(ie. -a source=mksysb) unless the bos_inst operation is
#instructed not to configure the target as a NIM client upon
#completion (ie. unless -a no_nim_client=yes is specified)
chdev -l inet0 -a hostname =$(/usr/bin/hostname | cut -d. -f1)
# Set Name server and Domain Name
if [[ -f /etc/resolv.conf ]]
   /usr/sbin/namerslv -E '/etc/resolv.conf.sv'
/usr/sbin/namerslv -a -i ''
/usr/sbin/namerslv -c 'enterprise.ca'
# Flush routing table and add default route
/etc/route -n -f
odmdelete -o CuAt -q "name=inet0 and attribute=route"
chdev -l inet0 -a route=net,,'0',''

Definition File for the nimdef Command

The following is an example of a definition file for the nimdef command:

# Set default values.
    machine_type  = standalone
    subnet_mask   =
    gateway       = gateway1
    network_type  = tok
    ring_speed    = 16
    platform      = rs6k
    machine_group = all_machines
# Define the machine "lab1"
# Take all defaults.
# Define the machine "lab2"
# Take all defaults and specify 2 additional attributes.
# The machine "lab2" uses IPL ROM emulation, and will be added to
# the machine groups "all_machines" (by default) and "lab_machines".
    ipl_rom_emulation  = /dev/fd0
    machine_group      = lab_machines
# Define the machine "lab3"
# Take all defaults, but do not add the machine to the
# default group.
# Define the machine "lab4"
# Take all defaults, but do not add "lab4" to the default group
# "all_machines".
# Instead add it to the groups "lab_machines" and "new_machines".
    machine_group =
    machine_group = lab_machines
    machine_group = new_machines
# Change the default "platform" attribute.
    platform = rspc
# define the machine "test1"
# Take all defaults and include a comment.
    comments = "This machine is a test machine."

[ Previous | Next | Table of Contents | Index | Library Home | Legal | Search ]