6    Managing RIS Clients and Environments

This chapter describes how to use the ris utility to manage RIS environments and clients. Topics include:

6.1    Preregistration Tasks

Before you register RIS clients, gather the information required for each one. The RIS Client Configuration Worksheet in Appendix A will help you organize your information as you register clients. Fill out a worksheet for each client you want to register.

Perform the following tasks to prepare to register clients:

  1. Obtain information about each client and fill out a copy of the RIS Client Configuration Worksheet from Appendix A.

  2. Register each client's host name and Internet Protocol (IP) address with the appropriate naming service Berkeley Internet Name Domain(BIND) Service and Network Information Service(NIS).

6.1.1    Obtaining Information About Each Client

You need the following information about each processor you plan to register as a client:

6.1.2    Registering Client Host Names and IP Addresses with Servers

If the host system is served by any of the following naming services, check with your site administrator to be sure that your clients are registered with the appropriate naming service servers:

See the Network Administration guide for information about configuring naming services on a local area network and registering clients with them.

6.2    Adding a RIS Client with the ris Utility

To add a client processor to RIS, follow these procedures:

  1. Invoke the ris utility by entering the following command at the root system prompt:

    
    # /usr/sbin/ris
    

    The RIS Utility Main Menu is displayed. Choose the option ADD a client by entering a at the prompt.

    Checking accessibility of RIS areas.... done
     
    *** RIS Utility Main Menu ***
     
        a) ADD a client
        d) DELETE software products
        i) INSTALL software products
        l) LIST registered clients
        m) MODIFY a client
        r) REMOVE a client
        s) SHOW software products in remote installation environments
        x) EXIT
     
    Enter your choice: a
    

    The following message is displayed:

    You have chosen to add a client for remote installation services.
     
    The following conditions must be met to add a client:
     
      1. You must know the client processor's hostname.
      2. The client's hostname must be in your system's host
         database(s).
      3. You must know whether the client is on an Ethernet, FDDI,
         or Token Ring network.
      4. You must know the client's hardware Ethernet, FDDI, or
         Token Ring address if the client is registering to install
         operating system software.
      5. If the client and the server reside on different subnets,
         you will need the address of the gateway(s)
         that the client can use to communicate with the server.
     
    Do you want to continue? (y/n) [y]:
    

    If you enter n, the utility returns to the RIS Utility Main Menu. If you enter y, a prompt asks for the client's host name.

  2. Enter the client's host name at the prompt.

    
    Enter the client processor's hostname: client1
    

    Only lowercase letters ( a-z ), numbers and the period ( . ) and dash ( - ) are permitted in host names, and a host name must begin with a letter. Invalid host names can corrupt the RIS database. Additionally, the client must not be registered on another RIS or DMS server as a client.

    The client processor must be registered with the appropriate naming service or you cannot register the client with RIS. If the client is not registered with the appropriate naming service, the utility displays an error message and repeats the prompt.

  3. Enter the environment to which you want to add the client. The utility displays the available environments (and the products installed in those environments) to which you can add the new client. Your output will be similar to the following example (which shows five environments):

    Select the remote installation environment:
     
    1)  /usr/var/adm/ris/ris0.alpha
          'Sort Runtime Library'
          'Free Software Foundation GNU Source (Rev 214)'
          'DEC Pascal RTLB V5.4 for DIGITAL UNIX Systems'
          'DEC C++ Class Libraries Version 4.0F for DIGITAL UNIX'
          'DEC Ada Runtime Library'
     
    2)  /usr/var/adm/ris/ris1.alpha
          'POLYCENTER advanced File System'
          'DECsafe Available Server Environment (ASE)'
          'System V Environment'
     
    3)  /usr/var/adm/ris/ris2.alpha
          'DIGITAL UNIX V4.0F Operating System (Rev nnn)'
          'DEC Runtime Library'
     
    4)  /usr/var/adm/ris/ris3.alpha
          'DIGITAL UNIX V4.0F Operating System (Rev nnn)'
     
    5)  /usr/var/adm/ris/ris5.alpha
          'Sort Runtime Library'
          'Free Software Foundation GNU Source (Rev nnn)'
          'DEC Pascal RTL V5.4 for DIGITAL UNIX Systems'
          'DEC C++ Class Libraries Version 4.0F for DIGITAL UNIX'
          'DEC Ada Runtime Library'
     
    Enter your choice or press RETURN to quit: 4
    

  4. Enter the number of the product you want this client to be able to install. When the utility asks you to confirm your choices, you can accept them or specify the information again. In the following example, the environment has only one product installed:

    Select one or more products for the client to install
    from /usr/var/adm/ris/ris3.alpha:
     
    Product    Description
      1    'DIGITAL UNIX V4.0F Operating System (Rev nnn)'
     
    Enter one or more choices as a space-separated list
     
    (for example, 1 2 3) or all for all products [all]: 1
     
    You chose the following products:
     
      1    'DIGITAL UNIX V4.0F Operating System (Rev nnn)'
     
    Is that correct? (y/n) [y]:
    

  5. If profile sets containing configuration description files (CDFs) exist on the RIS server during the registration of a client, the following message is displayed:

    Do you want to specify an Installation Profile Set for use
    during the installation of this client? [y/n] [n]: y
     
    

    If you do not want to specify a CDF for installation cloning, chose n. If you enter y, RIS displays a list of the CDFs on the RIS server:

    This RIS server has the following Installation Profile Sets available:
     
    alphastation400 alphastation400a rz26
     
    Enter a set name or press <Return> to exit set selection: rz26
    

    After you enter a CDF profile set, a verification is performed to determine if a CDF exists in the profile set. The verification determines if the products in the RIS environment to which the client is registered and the products specified in the CDF are the same. The CDF is also validated as suitable for installation cloning.

    If you decide not to register a client for a cloned installation or cannot determine a CDF to use, continue with the client registration by pressing Return.

  6. Enter the type of network upon which this client resides:

    Network type:
     
         1) Ethernet or FDDI
         2) Token Ring
     
    Enter your choice: 1
    

  7. The following message is displayed when the server and client are on different networks. The gateway information needed for the client to connect to the server is stored in the /var/adm/ris/gateways file. RIS displays the default network information if the gateway information is known, as shown in this example:

    Using 16.69.144.199 for gateway address between client and server subnet.
    

    If the network information is unknown, RIS displays the following message. Enter the client's gateway address as shown in the following example:

    The gateway IP address between the client's subnet and the server's subnet
    is required to register this client. If you do not know the correct gateway
    IP address, contact your network administrator. DO NOT enter your system's
    IP address.
     
    Enter the IP address of the gateway[s] between the client subnet and server
    subnet. (For example, 16.69.144.??). : 16.69.144.183
    

  8. Enter the client's hardware network address as shown in the following example:

    Enter the client processor's hardware network address. 
    For example, 08-00-2b-02-67-e1: 08-00-2b-01-16-47
    

    If you do not know the client's hardware network address, you can obtain it in one of the following ways:

    If you do not enter the address in the correct format, the utility displays an error message and repeats the prompt.

    Note

    Except for checking the format of the number you enter, the ris utility does not verify its validity.

    When you enter the hardware network address in the correct format, the following message is displayed:

    Client client1 has been added.
    

6.3    Adding a RIS Client from the Command Line

You can add a single RIS client from the command line by invoking the ris utility with its -a option. Other options supply the network address, path, and product list. The syntax of the command is:

/usr/sbin/ris -a clientname -h network-address -p path,product [ ,product... ]

For example:

/usr/sbin/ris -a fargo -h 08-00-2B-11-16-78 -p ris0.alpha,product_001

6.4    Adding a Client to a RIS Area with a Hardware Product Kit

To add a client to a RIS area that has hardware product kits, follow these procedures:

  1. Invoke the ris utility by entering the following command at the root system prompt:

    
    # /usr/sbin/ris
    

    The RIS Utility Main Menu is displayed. Choose the option ADD a client by entering a at the prompt.

    Checking accessibility of RIS areas.... done
     
    *** RIS Utility Main Menu ***
     
        a) ADD a client
        d) DELETE software products
        i) INSTALL software products
         ) LIST registered clients
         ) MODIFY a client
         ) REMOVE a client
        s) SHOW software products in remote installation environments
        x) EXIT
     
    Enter your choice: a
    

    The following message is displayed:

    You have chosen to add a client for remote installation services.
     
    The following conditions must be met to add a client:
     
      1. You must know the client processor's hostname.
      2. The client's hostname must be in your system's host
         database(s).
      3. You must know whether the client is on an Ethernet, FDDI, or Token
         Ring network.
      4. You must know the client's hardware Ethernet, FDDI, or Token
         Ring address if the client is registering to install operating
         system software.
      5. If the client and the server reside on different subnets, you will
         need the address of the gateway(s) that the client can use to
         communicate with the server.
     
    Do you want to continue? (y/n) [y]:
    

    If you enter n, the utility returns to the RIS Utility Main Menu. If you enter y, a prompt asks for the client's host name.

  2. Enter the client's host name at the prompt:

    
    Enter the client processor's hostname: columbia
    

    Only lowercase letters ( a-z ), special characters dash (-), and dot (.), and numbers are permitted in host names, and a host name must begin with a letter, not a number. Invalid host names can corrupt the RIS database. Additionally, the client must not be registered on another RIS or Dataless Management Services (DMS) server for bootp services.

    The client processor must be registered with the appropriate naming service or you cannot register the client with RIS. If the client is not registered with the appropriate naming service, the utility displays an error message and repeats the prompt.

  3. The following message states the existing environment:

    The existing environment is /var/adm/ris/ris0.alpha.
    

  4. The utility asks you to select the products to install; you may choose more than one.

    Select one or more products for the client to install
    from /var/adm/ris/ris0.alpha:
     
    Product    Description
       1    'DIGITAL UNIX X4.0F-4 Operating System ( Rev nnn )' with
            'MYVGASTATIC software version 1' 
       2    'MYVGASTATIC software version 1'
     
    Enter one or more choices as a space-separated list
    (for example, 1 2 3) or "all" for all products [all]: all
    
    

    The utility displays your choices and asks you to verify them:

    You chose the following products: 
     
       1    'DIGITAL UNIX X4.0F-4 Operating System ( Rev nnn )' with
            'MYVGASTATIC software version 1' 
       2    'MYVGASTATIC software version 1'
     
    Is that correct? (y/n) [y]: y
    

  5. If configuration description files (CDFs) exist on the RIS server during the registration of a client, the following message is displayed:

    Do you want to specify a Configuration Description File (CDF)
    for Installation Cloning on this client? [y/n] [n] : y
    

    If you do not want to specify a CDF for installation cloning, chose n. If you enter y, RIS displays a list of the CDFs on the RIS server:

    This RIS server has the following Configuration
    Description Files (CDF) available:
     
    alphastation400.cdf alphastation400a rz26.cdf
    Enter a CDF name or press <Return> to exit CDF selection: 
    rz26.cdf
    

    After you enter a CDF, the CDF verification is performed. The verification determines if the products in the RIS environment to which the client is registered and the products specified in the CDF are the same. The CDF is also validated as suitable for installation cloning.

    If you decide not to register a client for a cloned installation or cannot determine a CDF to use, continue with the client registration by pressing Return.

  6. Enter the type of network to which this client is connected:

    Network type:
     
         1) Ethernet or FDDI
         2) Token Ring
     
    Enter your choice: 1
    

  7. Enter the client's hardware network address as shown in the following example:

    Enter the client processor's hardware network address. For
    example, 08-00-2b-02-67-e1: 08-00-2b-39-96-68
    

    If you do not enter the address in the correct format, the utility displays an error message and repeats the prompt.

    Note

    Except for checking the format of the address you enter, the ris utility does not verify its validity.

  8. The client is added to RIS:

    
    Client columbia has been added.
    

6.5    Modifying RIS Clients

You can modify a RIS client's network type, hardware network address, its RIS environment information, and the list of products it can install. You cannot modify a client's IP or routing information. To modify a client's entry, follow these steps:

  1. Invoke the ris utility and choose the m option to modify a client.

  2. Choose the client you want to modify from the list displayed.

The remainder of the modification procedure is similar to the procedure for registering a client, as described in Section 6.1.

6.6    Removing RIS Clients

Follow these steps to remove a client:

  1. Invoke the ris utility and choose the r option to remove a client processor.

  2. Enter the name of the client processor to remove when prompted by the utility.

  3. Verify that you want to remove the client processor.

After you confirm your choice, the utility deletes the client's registration.

When removal is complete, the utility returns you to its main menu.

You also can use a ris command line to remove several clients at once. The following example removes the clients boston and tulsa:

# /usr/sbin/ris -r boston tulsa

6.7    Listing Registered RIS Clients

To view the registered clients, invoke the ris utility and choose the List Registered Clients option. If there are no registered clients, the utility indicates this fact.

6.8    Listing Products in RIS Server Areas

To view the current products in a server's area, invoke the ris utility and choose the option to show products. You also can use a ris command line to show the products installed in a server's area. For example:

# /usr/sbin/ris -s
 
Show Products in RIS Server Areas:
 
     1  /var/adm/ris/ris0.alpha
           DIGITAL UNIX V4.0F Operating System (Rev nnn)

6.9    Deleting Products from RIS Server Areas

To delete one or more of the current products in a RIS area, invoke the ris utility and choose the option to delete products. The utility asks you to choose a RIS area and then guides you through the procedure to delete products.

6.10    Determining Profile Set Registration for RIS Clients

To determine if a RIS client is registered to a profile set, examine the RIS database file, /var/adm/ris/clients/risdb, on the RIS server. The name of the profile set is specified in the fourth field; fields are separated by a colon. In the following sample entry in the risdb file, the client system portland is registered to the engineering profile set:

portland:08-00-2b-58-89-1c:ris2.alpha,product_1:engineering

6.11    Removing a RIS Client from Profile Set Registration

You can remove a client from profile set registration by using the Modify option from the RIS Utility Main Menu. When you are prompted to specify a profile set for the client, enter n or press Return to register the client without specifying a profile set.

6.12    Deleting Profile Sets from the RIS Server

If a profile set is no longer needed, you can delete it by removing the appropriate profile_set directory from the directory /var/adm/ris/clients/sets.

Examine the RIS database file on the RIS server, /var/adm/ris/clients/risdb, before deleting a profile set to ensure that no clients are registered to it. The name of the profile set is specified in the fourth field; fields are separated by a colon ( : ). In the following sample entry in the risdb file, the client vallejo is registered to the accounting profile set:

vallejo:08-00-2b-58-89-1c:ris2.alpha,product_1:accounting