Sun Update Connection - Enterprise 1.0 User's Guide

Add Profile Attribute (-apa) Command

The add-profile-attribute command edits an existing profile by adding a new component-setting to the profile. It may also be used to create a new profile.

Parameter

  • -P profile Specify the name of a new or existing profile.

  • -T component Specify the name of the component to be included in this profile.

  • -D distribution Specify the distribution for which this profile is relevant. If not specified, the command operates on all distributions.

Flag

  • -N Marks the component as Not Allowed.

  • -R Marks the component as Required.

  • -U Marks the component for upgrade if a newer version is available.

Syntax

uce_cli -apa -P "profile" -T "component" ( -N | -R | -U ) [ -D distribution ] -u username -p password

Example

uce_cli -apa -P myWebSvr -T "httpd" -R -u admin -p 123

uce_cli -apa -P myWebSvr -T "httpd" -U -u admin -p 123

Result Example

The myWebSvr profile now has two more settings than it originally had: now httpd components are Required and must be Updated. If the profile did not exist before, it is created.

To get a valid value for a name of an existing profile for the -P parameter, use the -lp command. To get a valid value for the -T parameter, use the -fc command. To get a valid value for the -D parameter, use the -ld command.