N1 Provisioning Server 3.1, Blades Edition, System Administration Guide

Customizing the Resource Pool Server Manually

This section describes how to manually customize the resource pool server.

ProcedureTo Customize the Resource Pool Server Manually

Steps
  1. Manually complete the JumpStart installation and configure the Solaris image according to the instructions in the Solaris documentation and the following steps.

    1. Enable the DHCP on its primary interface (the default).

      1. Create the /etc/hostname.interface-identifier file for the primary interface:

        For example:


        /etc/hostname.ce0

        This file should be empty.

      2. Create the /etc/dhcp.interface-identifier file for the primary interface.

        This file should contain a single line that reads wait forever primary. Do not disable the default icmp ping operation on the primary interface from the N1 Provisioning Server software. The monitoring software performs anicmp ping operation on the primary interface to check whether a device is running.

      3. Create the following file for each additional interface, excluding the loopback interface:


        /etc/dhcp.<interface_identifier>
        

        Each of these files should contain a single line that reads wait 60.

      4. If the image is for a Solaris device with more than two interfaces, also create the following file for each nonprimary and nonloopback interface:


        /etc/hostname.interface_identifier
        

        These files should be empty.

    2. Change the last line of /etc/default/dhcpagent from:


      PARAM_REQUEST_LIST=1,3,12,43

      to


      PARAM_REQUEST_LIST=1,3,6,12,15,43
      

      If the image is for a Solaris device with more than two interfaces (excluding the loopback interface), also make the following modification to the /etc/default/dhcpagent file:

      Uncomment the parameter value pair “RELEASE_ON_SIGTERM=yes”.

    3. Delete all *.dhc files in the /etc/dhcp/ directory.

    4. Enable FTP.

      Although by default FTP is enabled, the following is how to enable FTP:

      1. Uncomment the line in the /etc/inetd.d. file that reads:


        ftpstream tcp6 nowait root /usr/sbin/n.ftpd n.ftpd
      2. To determine the ID of the net daemon, type the command:


        ps -ef | grep inetd
        
      3. Type the command:


        kill -HUP net_pid
        
      4. Ensure that root is not in the /etc/ftpusers file.

    5. Verify that the Java 2 Platform, Standard Edition, on the resource pool server is version 1.4.1_02.


      Note –

      For installation of Solaris 8, include a workaround for Solaris 8 bug No. 4457119. The recommended fix is to create the file /etc/rcS.d/S99dhcpfix with the following contents:


      #
      # Name:         /etc/rcS.d/S99dhcpfix
      #
      # Author:       Chris Morton
      #               Ericsson, Inc.
      #               (919) 472-6494
      #
      # This is here to fix a bug in Solaris DHCP  It will remove any lines 
      # in /etc/inet/hosts that DHCP added, so the 
      # /sbin/netstrategy program will return the correct values.
      
      HOSTSFILE=/etc/inet/hosts
      TEMPHOSTFILE=/tmp/hosts.$$
      
      case "$1" in
      "start")
              echo "N1"s Standard DHCP Environment"
              ;; # Fall through -- rest of script is the initialization code
      "stop")
              exit 0
              ;;
      *)
              echo "Usage: $0 { start | stop }"
              exit 1
              ;;
      esac
      
      
      # What's my hostname?:
      
      hostname=`/sbin/dhcpinfo Hostnamè
      if [ -z "$hostname" ]; then
              hostname="unknown"
      fi
      
      # What's my IpAddress
      
      ipaddress=`ifconfig ce0 | grep inet | awk '{print $2}'`
      
      
      # If you can find my hostname anywhere in /etc/inet/hosts, delete 
      that line.
      
      /usr/bin/rm -f ${TEMPHOSTFILE}
      /usr/bin/egrep -v "[    ]${hostname}([  ]|$)" ${HOSTSFILE} > 
      ${TEMPHOSTFILE} 2> /dev/null
      
      # Add a line based on the actuals
      
      echo "${ipaddress}      ${hostname}  ${TEMPHOSTFILE} 
      
      /usr/bin/cp -p ${TEMPHOSTFILE} ${HOSTSFILE}
      /usr/bin/rm -f ${TEMPHOSTFILE}

    6. Verify that the symbolic link /usr/java points to the directory where the Java 2 Platform is installed.

    7. Reboot the server.

  2. Copy the N1 Provisioning Server agent package from the N1 Provisioning Server software to the tftboot directory on the N1 Provisioning Server for installation on the image.


    Note –

    If you are running the JumpStart post installation script postinstall.sh, skip this step.


  3. Use TFTP to get the agent package from the control plane server.


    Note –

    If you are running the JumpStart post installation script postinstall.sh, skip this step.



    cd var/tmp
    tftp>cp
    tftp>binary
    tftp>get TSPRagsol.pkg
    Received 456704 bytes in 0.4 seconds 
    tftp>quit
    
  4. Manually install the monitoring software package by typing the following command:


    pkgadd -d TSPRagsol.pkg
    

    Note –

    If you are running the JumpStart post installation script postinstall.sh, skip this step.



    Note –

    Run the command pkginfo | grep package_name to ensure that you have installed the following operating environment packages:

    SUNWbzip SUNWbzipx SUNWzip

    SUNWgzip SUNWtcsh SUNWscpux


  5. Run the following command to start the monitoring software:


    /etc/init.d/N1PSagt start