Put your logo here!

TOC PREV NEXT INDEX



6

Supporting a Centralized System - Silicon Graphics

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

Your environment and the features you enable dictate the operating system tasks. You must be root to modify the host files.

Enabling NFS Access

This section describes the steps necessary to set up the host if NFS is used as the boot_method or file_access_method.

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 computer. The exported systems are specified with an nfs_table command in the xp.cnf file, or in the 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 (-ro):
/tekxp -ro
  1. To enable the mount point immediately, without booting, run:
    # /usr/etc/exportfs -a [-o options]
  2. Use /usr/etc/exportfs without any parameters to verify the exports.
  3. Edit /etc/hosts and add the network computer's name and address. For example:
    128.07.60.30 portland
    128.07.60.31 corvallis
  4. Update the arp table to add new entries:
    # arp -s portland 08:00:11:01:00:45
    # arp -s corvallis 08:00:11:01:00:46
    arp can also be run with a -f filename option, where filename is a file of network computer entries to set.
  5. Use the ps command to see if nfsd is running:
    # ps -eaf
    root 88 1 0 Jul 27 ? 0:01 nfsd
    1. If nfsd is not running, type:
      # /usr/etc/nfsd 8 &
    2. If nfsd is running, use the kill command with the PID to restart the daemon (the PID is 88 in the preceding ps example):
      # kill -HUP PID

Enabling TFTP

This section describes the steps necessary to set up tftp if it is used as the boot_method or file_access_method. This is the default boot method for network computers not equipped with TDEnet, Flash Memory or ROM options. For details see the tftp man page on your host, or in /tekxp/XP/man.

    1. The /usr/etc/inetd.conf file is read at startup, and should contain the tftp command line. Verify that the tftp startup command is in the /inetd.conf file. Add the line if it does not exist in your inetd.conf file. To verify the command:
      # grep tftp /etc/inetd.conf
      tftp dgram udp wait guest /usr/etc/tftpd tftpd /usr/local/boot /tekxp
    2. If /etc/inetd.conf contains a tftp entry with the -s (secure tftp) option:
      tftp dgram udp wait root /usr/etc/tftpd tftpd -s /tekxp
      the installation directory used during the media installation would have to be within the secure path, in this case, /tekxp. Refer to the following section for information on secure tftp.
    3. Verify that tftpd, the tftp binary, resides where it is specified in 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 /usr/etc/inetd.conf file.
    4. If you edited inetd.conf, restart the inetd daemon. Use the ps command to find the process ID number (PID) for inetd. In this example the PID is 112.
      # ps -eaf | grep inetd | sed /grep/d
      root 112 1 0 Jul 27 ? 0:01 /usr/etc/inet/inetd
      1. If inetd is running, use the kill command with the PID to restart the inetd daemon.
        # kill -HUP PID
      2. If inetd is not running, either reboot the host or type:
        # inetd

Using Secure TFTP

If you use secure tftp, there are various things to consider before you begin:

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 name and IP address and boot from the network without any intervention, even for a first time boot.

    1. Verify that bootpd and the bootptab file are in the /usr/etc directory:
      # ls bootp*
    2. If they are not there, you can use the files from the installation media:
      # cp /tekxp/bin/sgi/bootpd /usr/etc
      # cp /tekxp/examples/bootptab /usr/etc
    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. Update to the arp table to add the new entries:
      # arp -s portland 08:00:11:01:00:45
      # arp -s corvallis 08:00:11:01:00:46
      arp can also be run with a -f filename option, where filename is a file of all the network computer entries to set.
    5. Set up the bootptab file.
    6. Start or restart the inetd or bootpd daemon.
Note: The bootptab file formats differ depending on which bootp you use. If you use the bootp that came with your Silicon Graphics host, follow the instructions in the section Setting Up the Silicon Graphics bootptab File. If you copied the bootp from the installation media, follow the instructions in the section Setting Up the bootptab File from the Installation Media.

Setting Up the Silicon Graphics bootptab File

The bootptab file contains the data used by bootp. Refer to the bootp man page on your host for more information. For the Silicon Graphics bootptab file, you need the following information for each network computer:

Example 6-1 Sample Silicon Graphics bootptab File

# /usr/etc/bootptab: config file for bootp server
# (/usr/etc/bootp)
#
# Blank lines and lines beginning with '#' are ignored.
#
# Root of boot subtree. If tftpd(1M) is running in #"secure" mode, this directory must be specified on
# tftpd's entry in #/usr/etc/inetd.conf.
#/usr/local/boot
/tekxp

# default bootfile
unix

# end of first section

%%

# The remainder of this file contains one line per
# client interface with the information shown by the
# table headings below. The 'host' name is also tried
# as a suffix for the 'bootfile' when searching the home
# directory. (e.g., bootfile.host)
#
# host htype haddr iaddr bootfile

portland 1 08:00:11:01:00:45 128.07.60.30 boot/os.350
corvallis 1 08:00:11:01:00:46 128.07.60.31 boot/os.500
astoria 1 08:00:11:01:00:47 128.07.60.32 boot/os.900

Setting Up the bootptab File from the Installation Media

Note: You only need to set up this file if you are using the bootp daemon from the installation media. A sample bootptab file is located in /tekxp/examples.

The bootptab file contains the data used by bootp. 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 6-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:
# 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
portland: tc=subnet60:ht=ethernet:ha=080011010045:\
ip=128.07.60.30: bf=/boot/os.350:\
T134=config/admin.cnf:
# Sample entry for model type NC200 or NC400
corvallis: tc=subnet60: ht=ethernet: ha=080011010046:\
ip=128.07.60.31: bf=/boot/os.500:
# Sample entry for model type NC900
astoria: tc=subnet60: ht=ethernet: ha=080011010047:\
ip=128.07.60.32: bf=/boot/os.900:

Running BOOTP

    1. If the bootpd daemon is started within the inetd.conf file, it is only run when bootp requests are sent to the host. If the bootps 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 bootp /usr/etc/inetd.conf
      bootp dgram udp wait root /usr/etc/bootp bootp -s
    2. Verify that bootpd resides where it is specified in inetd.conf. For the preceding examples, bootpd would be located in /usr/etc. If there is a mismatch between the actual location and the specified location, either move the bootpd binary or change the inetd.conf 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
      bootp  67/udp
      bootpc 68/udp
    4. If you edited inetd.conf, restart the inetd daemon. Use the ps command to find the process ID number (PID) for inetd. In this example the PID is 112.
      # ps -eaf
      root 112 1 0 Jul 27 ? 0:01 /usr/etc/inet/inetd
      1. If inetd is running, use the kill command with the PID to restart the inetd daemon.
        # kill -HUP PID
      2. If inetd is not running, either reboot the host or type:
        # inetd

Enabling XDM

The X Display Manager (xdm) provides a convenient method for you to set up log in services for network computer users. The HostMenu client can be used to supply a list of xdm hosts for user selection, or you can set up a direct connection to a specific host. Silicon Graphics provides xdm and sets it up to start when the system boots. Use the ps command to verify xdm is running:

# ps -eaf
root 118 1 0 Jul 27 ? 0:01 /usr/bin/X11/xdm

If xdm is not running, you need to set it up. This section outlines the default method your Silicon Graphics host uses to start xdm:

    1. When booting in multi-user mode, the host looks in the /etc/rc2.d directory to determine which processes to run. Process files that begin with an S are started at boot time. For xdm, the process file is named /etc/rc2.d/S98xdm.
    2. The /etc/rc2.d/S98xdm process file is a link to the xdm startup script /etc/init.d/xdm:
      # ls -l
      l--------- 1 root sys 15 Jul 27 0:01 S98xdm -> /etc/init.d/xdm
    3. This is the default /etc/init.d/xdm startup script provided on your host:
      #!/bin/sh
      #Tag 0x00000f00
      # Start X Display Manager
      # $Revision: 1.2 $
      IS_ON=/etc/chkconfig
      XSGI=/usr/bin/X11/Xsgi
      XDM=/usr/bin/X11/xdm
      case "$1" in
      'start')
      if test -x $XDM; then
      if $IS_ON windowsystem && test -x $XSGI || $IS_ON xdm;
      then
      exec $XDM
      fi
      fi
      ;;
      'stop')
      /etc/killall -TERM xdm
      ;;
      *)
      echo "usage: /etc/init.d/xdm {start|stop}"
      ;;
      esac
    4. Configuration commands for xdm are read by default from the file /usr/lib/X11/xdm/xdm-config. You can customize this file for your environment. Many of the commands in this configuration file use resource files for the actual settings.
    5. You can customize the resource files /usr/lib/X11/xdm/Xresources and /usr/lib/X11/xdm/Xsession for your environment.
    6. Be sure that the fonts you select are in the network computer's font path.

Boot the network computer. If host_connect_method is HostMenu or XDMCP with xdmcp_connect set to BROADCAST, HostMenu displays the hosts that responded to the xdmcp broadcast when the XDMCP list is shown. If xdmcp_connect is DIRECT, the host login window is displayed. You can modify the appearance of the login window by modifying the file Xresources.

Note: If the host list is incomplete, verify that the broadcast addresses and subnet masks are compatible on the host (see the ifconfig command) and on the network computer (can be set in the bootptab file, the remote configuration file, in Setup, or with the boot monitor). If they are not compatible, change the masks and reboot the host or network computer.

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 portland 128.07.60.30 and corvallis 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 portland.oregon.DOC.COM
      31 IN PTR corvallis.oregon.DOC.COM
      IN = Internet Protocol, NS = name server, PTR = set reverse pointers
    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
      portland A 128.07.60.30
      HINFO network computer
      corvallis A 128.07.60.31
      HINFO network computer
      A = IP address record, HINFO = information entry.
    3. Use the ps command to see if named is running:
      # ps -eaf
      root 88 1 0 Jul 27 ? 0:01 named
      1. If named is not running, type:
        # named
      2. If named is running, use kill and the PID to restart the daemon:
        # kill -HUP PID

TOC PREV NEXT INDEX