Sun Desktop Manager 1.0 Administration Guide

Export

Exports the profiles contained in a profile to the specified target, using a zip file format.

Syntax

export --name=<profile name> [--scope=<user|host>] [--entity=<entity>] <target>

--name=<profile name> : the name of the profile to export. This option is mandatory. If no profile or more than one profile with this name and this scope can be found at this layer, then the command exits with an error.

--scope=<user|host> : the scope for the profile, which can be either user or host. If not specified, then defaults to the user scope.

--entity=<entity> : the element where the profile is located. If not specified, then defaults to root organization or domain element, depending on the --scope option.

<target> : the full path to the zip file where the profile is to be exported. If the path does not specify any filename, then the filename defaults to <profile name>.zip. If the target is not writable, then the command exits with an error.


Example 3–4 Exporting a profile

% pgtool export --scope=host --name=HostProfile1 /tmp/newdir

Exported “HostProfile1” (located in root domain) to HostProfile1.zip, which was created in new directory /tmp/newdir.