You cannot delete managed hosts in the following circumstances:
The agent of the host is still running.
The host is in a currently active job.
The host is selected for a scheduled job.
If you delete a host and then restart its agent, it is re-registered as an Sun Update Connection – Enterprise managed host, but it is not assigned to user-defined groups.
Log into a terminal with root permissions and stop the agent application on each managed host.
# /etc/init.d/uce_agent stop |
Log into Sun Update Connection – Enterprise as a user with full permissions or as the admin user.
In the Hosts list, hold Shift or Control while selecting hosts.
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.
In the dialog box that opens, click one of the following:
Delete All – Delete all selected hosts at once.
Delete – Delete selected hosts separately.
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” |