Put your logo here!

TOC PREV NEXT INDEX



7

Supporting a Centralized System - Compaq Tru64 Unix

This chapter contains procedures for setting up the necessary operating system support files. Use the Workbook (Chapter 2) to determine the procedures needed.

The values selected in the remote configuration file dictate the operating system files that must be enabled, created, or modified.

Note: You must log in as root to perform the tasks in this chapter.

Enabling NFS Access

This section describes the steps necessary to set up the NFS host so the network computer can search the host for fonts and configuration files. You need to enable access if the primary or secondary file access method or the boot method is set to NFS.

    1. Edit the /etc/exports file. Add each of the file systems to be exported at boot time, along with any options.
      The file systems must be exported to be accessible to the network computers or other hosts. The systems to be exported are specified in the xp.cnf or nfs.tbl file. An example xp.cnf file entry:
      nfs_table "montana:/tekxp" "/tekxp"  "8192"
      An example nfs.tbl entry:
      montana:/tekxp /tekxp 8192
      /etc/exports entry, shown with the read only option (-o for ULTRIX, -ro for OSF/1):
      /tekxp -o
      or
      /tekxp -ro
    2. Edit the /etc/hosts file and add the network computer name and address. For example:
      128.07.60.30 portland
      128.07.60.31 corvallis
    3. Use the ps command to see if nfsd is running. For OSF/1 use -edf for options, for ULTRIX use -aux for options.
      # ps options | grep nfsd | sed /grep/d
      root 88 1 0 Jul 27 ? 0:01 nfsd
    4. If nfsd is not running, type:
      # /usr/etc/nfsd 8 &
    5. If nfsd is running, use the kill command with the PID to restart the daemon:
      # kill -HUP PID

Enabling TFTP

This is the default boot method for network computers not equipped with DECnet or the ROM option. To use tftp to download the boot files from a host, or for font or any other file access, tftp service must be enabled on the host. For further information see the tftp man page in /tekxp/man.

    1. The tftpd daemon should be enabled each time the host boots. The /etc/inetd.conf file is read at startup, and should contain the tftp command line. If the line does not exist in your inetd.conf file, you need to add it. To verify that the tftp startup command is in the file:
      # grep tftp /etc/inetd.conf
      tftp dgram udp wait /usr/etc/tftpd tftpd
    2. If /etc/inetd.conf contains a tftp entry with the -s (secure tftp) option:
      tftp dgram udp wait /usr/etc/tftpd tftpd -s /tekxp
      both the boot_directory and install_directory used during the tape installation would have to be within the secure path, in this case, /tekxp.
    3. Verify that in.tftpd, the tftp binary, resides where it is specified in /etc/inetd.conf. For the preceding examples, tftp would be located in /usr/etc. If there is a mismatch between the actual location and the specified location, either move the binary or change the /etc/inetd.conf file.
    4. If you have edited inetd.conf, restart the inetd daemon for your changes to take effect:
    5. Use the ps command to find the process ID number (PID) for inetd. In this example the PID is 112. For OSF/1 use -edf for options, for ULTRIX use
      -aux for options.
      • # ps options | grep inetd | sed /grep/d
        root 112 1 0 Jul 27 ? 0:01 /usr/etc/inet/inetd
      • Use the kill command with the PID to restart the inetd daemon. It only takes a few moments for the daemon to restart.
        # kill -HUP PID
      • If inetd is not running, either reboot the host or type:
        # inetd
Note: The tftp binary from the media requires a /usr/tmp directory to perform the file transfers. Create this directory if it does not exist.

Enabling BOOTP

Bootstrap protocol, bootp, is the recommended way to establish communications from the host to the network computer in an internet protocol environment. Bootp obtains booting data from the bootptab file. With the proper information stored in the bootptab file, the network computer can find its own boot filename and IP address and boot from the network without any intervention, even for a first time boot.

You can use Compaq's bootp, or the bootp and bootptab file from the Utility tape. If you are currently using Compaq's bootptab file, you may continue using it and simply add the additional network computer's IP and boot file information. You cannot, however, mix the two. For example, you cannot use Compaq's bootptab file with bootp from the Utility tape. You must use bootp and the bootptab file from the same source.

Using the Compaq Bootptab File

Compaq supplies a bootpd daemon that enables a network computer to find its internet address, the boot server address, and the name of the boot file. Bootpd retrieves this information from the bootptab file. If you do not currently have a bootptab file, you need to create one.

To create a bootptab file:

    1. Create the bootptab file in the /etc directory.
    2. Edit the file to include the following information:

Example 7-1 Sample Compaq Bootptab File

# /etc/bootptab: database for bootp server (etc/bootpd)
#
# boot directory (Enter your boot directory)
/tekxp/boot
#
# default bootfile (Enter your bootfile)
os.900
#
#
# host htype haddr iaddr bootfile
Note: For additional information about Compaq's bootptab file, refer to the bootpd man page.

For each network computer, enter the host name, host type, hardware address, and the network computer's internet protocol address and boot file. Refer to the following example:

Note: Host type is always 1. Refer to the bootpd man page.
# /etc/bootptab: database for bootp server (etc/bootpd)
#
# boot directory
/tekxp/boot
#
# default bootfile
os.900
#
#
# host htype haddr iaddr bootfile
oregon 1 08:00:11:01:32:2A 192.65.42.100 os.500
montana 1 08:00:11:01:70:3A 192.65.42.250 os.900

Using the Bootptab File from the Installation Media

Note: The bootpd daemon used by the network computers does not run simultaneously with the ULTRIX VAXELN software (ewsbootpd). Either de-install the VAXELN daemons and use bootpd with the bootptab file supplied on the media, or use rarp or MOP to establish communications.
    1. Check if the VAXELN daemons are running:
      • Use the ps command to find the process ID number (PID) for ewsd or ewsbootpd. In this example the PIDs are 112 and 114. For OSF/1 use -edf for options, for ULTRIX use -aux for options.
        # ps options | grep ews
        root 112 1 0 Jul 27 ? 0:01 /etc/ewsd
        root 114 1 0 Jul 27 ? 0:01 /etc/ewsbootpd
      • Use the kill command with the PID:
        # kill PID
      • Edit the /etc/rc.local file and comment out the EWSSTART lines.
    2. Rename the bootptab file used by ewsbootpd to preserve it as a backup copy.
    3. Copy the bootpd and bootptab files (from the media) to the /etc directory:
      # cp /tekxp/bin/risc_ultrix/bootpd /etc
      # cp /tekxp/examples/bootptab /etc
    4. Edit the /etc/hosts file to add the network computer internet addresses and names:
      128.07.60.30 portland
      128.07.60.31 corvallis
    5. Set up the bootptab file and start or restart the inetd or bootpd daemon. For details, refer to the next section, Setting Up the bootptab File from the Installation Media.
Setting Up the bootptab File from the Installation Media

The bootptab file contains the data used by bootp. A sample bootptab file is located in /tekxp/examples. Refer to the bootp man page in /tekxp/man for more information. The file contains three sections:

Note: T134 is a user-defined variable to the bootptab file. It is intended for use with the bootp and bootptab file included on the media.

Example 7-2 Sample bootptab File from the Installation Media

# Global entries for all hosts
global.d:\
:sm=255.255.255.0:\
:ds=128.07.5.200 128.07.61.150:\
:hn:\
:hd=/tekxp/boot:
# Master entries for each subnet template
subnet60: :tc=global.d:gw=128.07.60.100:
subnet61 :tc=global.d:gw=128.07.61.150:
# Individual network computer entries
# Sample entry for model type XP100, XP200, XP350, or XP400
bend: tc=subnet60:ht=ethernet:ha=080011010045:\
ip=128.07.60.30: bf=/os.350:\
T134=config/admin.cnf:
# Sample entry for model type NC200 or NC400
burns: tc=subnet60: ht=ethernet: ha=080011010046:\
ip=128.07.60.31: bf=/os.500:
# Sample entry for model type NC900
salem: tc=subnet60: ht=ethernet: ha=080011010047:\
ip=128.07.60.32: bf=/os.900:

Running BOOTP

There are two methods for using bootp:

Select the method that best fits your environment.

Only Running BOOTP on Request
    1. If the bootpd daemon is started by inetd, it is only run when bootp requests are sent to the host. If the bootp command line does not exist in your inetd.conf file, you need to add it. To verify that the bootp startup command is in the file:
      # grep bootps /etc/inetd.conf
      bootps dgram udp wait /etc/bootpd bootpd
    2. The port number for bootps must be set in the /etc/services file. The name field must match the name field set in the inetd.conf file. To verify that the port is set in the file:
      # grep bootp /etc/services
      bootps 67/udp
    3. Verify that bootpd resides where it is specified in /etc/inetd.conf. For the preceding examples, bootpd would be located in /etc. If there is a mismatch between the actual location and the specified location, either move the bootpd binary or change the /etc/inetd.conf file.
    4. If you have edited inetd.conf, restart the inetd daemon for your changes to take effect:
      • Use the ps command to find the process ID number (PID) for inetd. In this example the PID is 112. For OSF/1 use -edf for options, for ULTRIX use -aux for options.
        # ps options | grep inetd | sed /grep/d
        root 112 1 0 Jul 27 ? 0:01 /etc/inetd
      • Use the kill command with the PID to restart the inetd daemon. It only takes a few moments for the daemon to restart.
        # kill -HUP PID
      • If inetd is not running, either reboot the host or type:
        # inetd
Always Running BOOTP
    1. If the bootpd daemon is started within the /etc/rc.local file or a similar startup file, it is always running and waiting for bootp requests. If the bootp command line does not exist in your /etc/rc.local file, you need to add it. To verify that the bootp startup command is in the file:
      # grep bootp /etc/rc.local
      /etc/bootpd -s ; echo -n ' bootpd'
      The -s option specifies continuous execution.
    2. Verify that bootpd resides where it is specified in /etc/rc.local. For the preceding examples, bootpd would be located in /etc. If there is a mismatch between the actual location and the specified location, either move the bootpd binary or change the /etc/rc.local file.
    3. The port numbers for bootp listening and replying must be set in the /etc/services file. If they are not set, edit the file and add them. To verify that the ports are set in the file:
      # grep bootp /etc/services
      bootps 67/udp
      bootpc 68/udp
    4. To start the bootpd daemon without rebooting the system:
      # /etc/bootpd -s &

Enabling RARP

In addition to bootp the network computer can use rarp (TCP/IP Reverse Address Resolution Protocol) to establish communications. With rarp, the network computer broadcasts its ethernet address across the network, and receives its internet address back from the first host to respond. Whichever host responds first becomes the boot host. The network computer uses the boot paths stored in NVRAM or tries the default path /tekxp/boot/os.<model>.

Note: To use rarp, the kernel must be configured with the Ethernet Packet Filter option.
    1. If the rarpd daemon is started within the /etc/rc.local file or a similar startup file, it is always running and waiting for rarp broadcasts. If the rarp command line does not exist in your /etc/rc.local file, you need to add it. To verify that the rarp startup command is in the file:
      # grep rarp /etc/rc.local
      /usr/etc/rarpd ; echo -n ' rarpd'
    2. Verify that rarpd resides where it is specified in /etc/rc.local. For the preceding examples, rarpd would be located in /usr/etc. If there is a mismatch between the actual location and the specified location, either move the rarpd binary or change the /etc/rc.local file.
    3. Edit the /etc/hosts file to add the network computer internet addresses and names:
      128.07.60.30 portland
      128.07.60.31 corvallis
    4. Edit the /etc/ethers file to add the network computer ethernet addresses and names:
      08.00.11.01.00.45 portland
      08.00.11.01.00.46 corvallis
    5. Use the ps command to see if the rarpd daemon is running. For OSF/1 use -edf for options, for ULTRIX use -aux for options.
      # ps options | grep rarp | sed /grep/d
      root 69 1 0 Jul 27 ? 0:01 /usr/etc/rarpd
    6. If rarp is running, use the kill command with PID to restart the daemon:
      # kill -HUP PID
    7. If rarp is not running, type:
      # /usr/etc/rarpd &

Enabling Xprompter

Xprompter can be enabled and used to automatically start dxsession (DECwindows session manager). If using xprompter, the host connect method must be DISABLED.

Network computers cannot simultaneously use both xdm and Xprompter.

    1. Edit the file /tekxp/bin/risc_ultrix/XP-lst and add each network computer's name and display definition. For example:
      portland 128.07.60.30:0
      corvallis 34.8::0
Note: Check the /etc/ttys file and verify there are no entries following the NCD entries. If there are, move the NCD entries to the end of the file. Any entries following the NCD entries are deleted.
    1. Run the script /tekxp/bin/risc_ultrix/XP-lst-to-ttys to update the /etc/ttys file with the information in the XP-lst file. The script adds a line for each network computer entry to initialize Xprompter and properly close the session.
      XP-lst-to-ttys copies the original ttys file to ttys.old.
      The XP-lst file is used by XP-prompter to obtain the display variable needed to display the login window. Whenever you add additional network computers to your environment, you need to repeat these steps.
    2. Run the XP-set-dir script.
Note: If the XP-prompter, XP-start, and XP-lst-to-ttys files are located in a different path than /tekxp/bin/risc_ultrix, enter the following command to specify the path where they are located:
# XP-set-dir path

Adding DNS Entries

This section assumes that your site is currently running Domain Name Service (DNS). The instructions in this section deal strictly with adding network computer names and addresses to your existing zone and local host files on the name server. The following structure is used for the examples:

DOC 128.07.50.1 is the primary name server for the DOC company
oregon 128.07.60.1 is the secondary name server, serving the site's network computers bend 128.07.60.30 burns 128.07.60.31 are network computers

    1. Edit the local host file for the name server. The typical file name is named.local. Depending on how you set up your system, the full path name for this example could be /var/named/oregon.DOC.COM/named.local. Add the network computer entries to the file. For example:
      ; named.local for server oregon
      IN NS oregon.DOC.COM
      30 IN PTR bend.oregon.DOC.COM
      31 IN PTR burns.oregon.DOC.COM
      IN indicates Internet Protocol, NS designates the name server, and PTR sets up reverse pointers for the network computers.
    2. Edit the zone file for the name server. The typical file name is the name of your server. Depending on how you set up your system, the full path name for this example could be /var/named/hosts/oregon.DOC.COM. Add the network computer entries to the file. For example:
      ; zone hosts file for server oregon
      oregon A 128.07.60.1
      HINFO Sparc2
      bend A 128.07.60.30
      HINFO network computer
      burns A 128.07.60.31
      HINFO network computer
      A indicates an IP address record, HINFO is an information entry.
    3. Use the ps command to see if named is running. For OSF/1 use -edf for options, for ULTRIX use -aux for options.
      # ps options | grep named | sed /grep/d
      root 88 1 0 Jul 27 ? 0:01 named
      • If named is not running, type:
        # /usr/etc/named
      • If named is running, use the kill command and PID to restart the daemon:
        # kill -HUP PID


TOC PREV NEXT INDEX