System Administration Guide

Using the Host Manager Command-Line Interface 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.

Table 4-3 summarizes the equivalent Host Manager commands that can be used instead of the Solstice AdminSuite l to perform administration tasks.

Table 4-3 Solstice AdminSuite Command Line Equivalents

The Command ... 

Is Used To ... 

See /opt/SUNWadm/2.x/man/...

admhostmod -x type=type host

Update system types marked as generic 

admhostmod(1m)

admhostadd -D -x [fileserv=server] [-x root=directory] [-x swap=swap_file] [-x swapsize=size] [-x os=version] [-x ns=NIS+|NIS|NONE] [-x domain=domain|rhost=host]

Set up defaults for adding client support 

admhostadd(1m)

admhostadd -i ip_address -e ethernet_addr [-x type= type] [-x tz=timezone] [ -x install=Y|N ][ -x installpath=server:/path] host

Add a system and enable a network installation (optional) 

admhostadd(1m)

admhostmod -x type=OS_SERVER host

Convert a standalone system to an OS server 

admhostmod(1m)

admhostmod -x mediapath=server:/path -x platform=platform host

Add OS services to an OS server 

admhostmod(1m)

admhostdel [ -x ns=NIS+|NIS|NONE ]

[ -x domain=domain|rhost=host ... ] host ...

Delete an existing system or OS server 

admhostdel(1m)