Sun Update Connection - Enterprise 1.0 User's Guide

ProcedureTo Delete Multiple Managed Hosts from Sun Update Connection – Enterprise

You cannot delete managed hosts in the following circumstances:

  1. Log into a terminal with root permissions and stop the agent application on each managed host.


    # /etc/init.d/uce_agent stop
    
  2. Log into Sun Update Connection – Enterprise as a user with full permissions or as the admin user.

  3. In the Hosts list, hold Shift or Control while selecting hosts.

  4. Do one of the following:

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

    • Right-click the selection and choose Delete.

    • From the Hosts menu, choose Delete.

  5. In the dialog box that opens, click one of the following:

    • Delete All – Delete all selected hosts at once.

    • Delete – Delete selected hosts separately.


Example 4–6 Deleting a Managed Host with the CLI

The Delete Host command functions only if the agent is already stopped. The following script example stops the agent, so the user would need root permissions to run it. See Delete Host (-dh) Command.


#! /bin/bash

echo “To run this script, you need root permissions.” 
echo “If you are not root, exit this script and re-login.” 
echo -n “Enter your Sun Update Connection – Enterprise user name:” 
read user 
echo -n “Enter your password:” 
read password 

echo -n “Enter the name of the host you want to delete:” 
read host 
echo “Stopping the agent...” 
/etc/init.d/uce_agent stop 
echo “Deleting the host...” 
uce_cli -dh -h “$host” -u “$user” -p “$password”