Sun Update Connection - Enterprise 1.0 User's Guide

ProcedureTo Add a Host

In this procedure, you manually add a host to Sun Update Connection – Enterprise. As Sun Update Connection – Enterprise will recognize and automatically add hosts when their agents rise, you will not use this procedure in general. Use the Add Host feature to predefine hosts.

  1. Login as a user with full permissions or as the admin user.

  2. Do one of the following:

    • From the tool bar, click the Add Host button.

    • In the Hosts list, right-click and choose Add Host.

    • From the Hosts menu, choose Add Host.

    The New Host window opens.

  3. In the Host Name text box, create an Sun Update Connection – Enterprise name for the host.

  4. In the Unique String text box, type the unique string of the machine.

  5. From the Distro list, click one of the locally activated distributions.

  6. From the Profile list, optionally click a user-defined profile to attach to this host.

  7. Type an optional description of the host.

  8. In the Groups list, select a user-defined group and click the Add button.

  9. Click OK.

    The New Host window closes.


Example 4–4 Adding a Host with the CLI

The Add Host to Group command allows you to predefine a host, before it has an installed agent. In this command, the -D parameter is mandatory. See Add Host to Group (-ahg) Command.


#! /bin/bash

function login { 
   echo -n “Type your user name:” 
   read user 
   echo -n “Type your password:” 
   read password 
} 

function addHost { 
   echo “Add a host” 
   echo “Existing hosts are:” 
   uce_cli -lah -u “$user” -p “$password” 
   echo -n “Create a new name, one not already used:” 
   read hostname 
   echo “Active distros are:” 
   uce_cli -ld -u “$user” -p “$password” 
   echo -n “What is the distribution of the host?” 
   read distro 
   uce_cli -ah -h “$hostname” -D “$distro” -u “$user” -p “$password” 
} 
login addHost