Previous Topic: dpmzone createpool Command--Create Resource PoolNext Topic: dpmzone createzone Command--Create a Zone


dpmzone createproject Command--Create a Project

The createproject command creates a project in a zone.

This command has the following format:

dpmzone createproject
[-sc sc_host]
-host hostname
-name zonename
-user_id uid
[-project_id pid]
-proj_name pname
[-pre]
[-post]
[-locale iso639value]

-sc sc_host

(Optional) Specifies the host name of the Service Controller.

-host hostname

Specifies the Solaris Zones server. This parameter is case-sensitive.

-name zonename

Specifies the zone.

-user_id uid

Specify a user.

Example: root

-project_id pid

(Optional) Defines the project ID. You can assign the ID or let the system automatically generate one.

-proj_name pname

Defines the name of the new project.

-pre

(Optional) Specifies whether to generate an event before the operation is performed.

-post

(Optional) Specifies whether to generate an event after the operation is performed.

-locale iso639value

(Optional) Specifies an IS0 639_3166 combination to override the default English output, for example, fr_FR for French. To use the locale of the command prompt, specify "native".

Example

Create a project in a zone:

dpmzone createproject -host SolarisServer2 -name myzone1 -user_id root 
-proj_name myProject