Solstice AdminSuite 2.3 Administration Guide

Using the Command-Line Equivalents to Automate Setup Tasks

Using the Host Manager command-line equivalents allows you to automate many of the setup tasks associated with creating new diskless and AutoClient systems. This automation is similar to what can be done when using the JumpStart product to install Solaris on standalone systems. By writing your own shell scripts and using the command-line equivalents, you can automatically customize the client environment in one operation.

Command-Line Equivalent Automation Example

The following example shows how to use the command-line equivalents to set up an OS server, add OS services, and add a diskless client to that server. The server's name is rogue, and the diskless client is venus.


Note -

For additional command-line examples, see the command-line equivalent section at the end of most of the procedures in this chapter.


  1. Convert a standalone system to an OS server.


    % admhostmod -x type=os_server rogue
    
  2. Add OS services to the OS server.

    1. This example adds the Solaris 2.5 End User Cluster OS services for the Sun4m kernel architecture to rogue.

      The Solaris CD image is on a mounted CD on a remote system named jupiter. Note that the remote system must be minimally set up as a managed system.


      % admhostmod -x mediapath=jupiter:/cdrom/cdrom0/s0 \
      		-x platform=sparc.sun4m.Solaris_2.5 -x
      cluster=SUNWCuser \		rogue
      
    2. This examples adds the Solaris 2.5.1 All Cluster OS services for the Sun4m kernel architecture to rogue.

      The Solaris CD image has been copied to hard disk on a remote system, saturn, and the automounter is used to access it. Note that the remote system must be minimally set up as a managed system.


      % admhostmod -x mediapath=rogue:/net/saturn/export/Solaris_CD \
      		-x platform=sparc.sun4m.Solaris_2.5.1 -x
      cluster=SUNWCall \
      		rogue
      
  3. Add the diskless client.

    This example adds a sun4m, Solaris 2.5.1 diskless client named venus to the server rogue.


    % admhostadd -i 129.152.225.2 -e 8:0:20:b:40:e9 \
    -x type=diskless 		-x fileserv=rogue \
    -x os=sparc.sun4m.Solaris_2.5.1 \
    		-x swapsize=40 -x  venus
    

    You could use a similar version of this command in a shell script with additional operations to customize the diskless client's root as part of setting up the client. The script could be parameterized to accept the IP address, Ethernet address, and host name.