Sun Update Connection - Enterprise 1.0 User's Guide

ProcedureTo Copy a Profile

In this procedure you will copy an existing profile. Use this procedure when another user has created a profile 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 profiles, to create a new profile based on a prior one. You cannot copy a Predefined System Test Profile (see Chapter 7, System Management Profiles). Users of all levels can perform this procedure in the console.

  1. Do one of the following:

    • From the tool bar, click the Profiles button.

    • From the Tools menu, choose Profiles.

      The Profiles window opens.

  2. Select a profile from the list.

  3. Do one of the following:

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

    • Right-click the selected profile and choose Copy.

      The Profile Editor window opens.

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

  5. Click OK.

    The Profile Editor window closes. A copy of the profile with the new name appears in the Profiles window.


Example 9–3 Copying a Profile with the CLI

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


#! /bin/bash

echo -n “Enter your user name:” 
read user 
echo -n “Enter your password:” 
read password 
echo -n “Enter a string to search for exact component name:” 
read comp2find 
uce_cli -fc -T $comp2find -u $user -p $password 
echo -n “Copy the exact component name that you want to add to a profile:” 
read comp2use 
echo -n “Enter the name of a profile or create a new one:” 
read profileName 
echo “What do you want to do with the component?” 
echo “Make it Required, Not Allowed,” 
echo “or Upgraded when possible?” 
echo -n “Enter the setting (-R | -N | -U) (case-sensitive):” 
read setting 
uce_cli -apa -P “$profileName” -T “$comp2use” $setting -u “$user” -p “$password”