Sun Update Connection - Enterprise 1.0 User's Guide

ProcedureTo Copy a Policy

In this procedure you will copy an existing policy. Use this procedure when another user has created a policy that is useful to your own deployment and management jobs, but you want to be able to edit it. You could also use this procedure on your own policies, to create a new policy based on a prior one. You cannot copy the Predefined Always ask me policy. Users of all levels can perform this procedure in the console.

  1. Do one of the following:

    • From the tool bar, click the Policies button.

    • From the Tools menu, choose Policies.

      The Policies window opens.

  2. Select a profile from the list.

  3. Do one of the following:

    • From the tool bar of the Policies window, click the Copy button.

    • Right-click the selected policy and choose Copy.

      The Policy Editor window opens.

  4. Edit the policy as needed, or simply change the name.

  5. Click OK.

    The Policy Editor window closes. The policy is edited.


Example 10–4 Copying a Policy with the CLI

The copy policy command in the CLI allows you only to save a policy under a new name, without making changes to the settings. See Copy Policy (-cc) Command.


#! /bin/bash

echo -n “Enter your user name:” 
read user 
echo -n “Enter your password:” 
read password 
echo “The list of existing policies is:” 
uce_cli -lc -u $user -p $password 
echo -n “Type the exact name of the policy you want to copy:” 
read sourceP 
echo -n “Type a name for the new policy:” 
read targetP 
uce_cli -cc -sC “$sourceP” -tC “$targetP” -u “$user” -p “$password”