sun.com | docs.sun.com |  | How To Buy | My Sun | Worldwide Sites |

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

User Commands | create-domain(1)

- NAME
- SYNOPSIS
- DESCRIPTION
- OPTIONS
- OPERANDS
- EXAMPLES
- EXIT STATUS
- SEE ALSO

## NAME

| create-domain - creates a domain with the given name

## SYNOPSIS

| `create-domain` [--path domain_path] [--sysuser sys_user] [--passwordfile filename] `--adminport port_number` `--adminuser admin` `--adminpassword password domain_name`

## DESCRIPTION

| Use the `create-domain` command to create a domain with the specified administration port number, administration user, administration password, and domain name. By creating a domain, an administration server is created in a directory named as the domain name. This command can be run locally only.

## OPTIONS

| --path directory path where the domain should be created. If specified, path must be accessible in the filesystem. If not specified, the domain is created under `$AS_DOMAINS_PATH` directory. --sysuser owner of the domain directory. Must be a valid user on the system (Solaris only). The domain is created under the specified system username. If not specified, the current username is used. --passwordfile file containing passwords appropriate for the command (e.g., administrative instance). --adminport port of the administrative instance. The port number cannot be currently active. --adminuser user name assoicated with the administrative instance. --adminpassword password associated with the administrative name.

## OPERANDS

| domain_name name of the domain. Must be a unique name.

## EXAMPLES

| Example 1. Using `create-domain`
    asadmin> create-domain --path /u/domain1/domain_root --sysuser user1 --adminuser admin
    --adminpassword adminadmin --adminport 6868 domain1
    created domain domain1 successfully
Where: the `domain1` domain is created in the `domain_root` directory.

## EXIT STATUS

| 0 command executed successfully 1 error in executing the command

## SEE ALSO

| `delete-domain`(1), `start-domain`(1), `stop-domain`(1), `list-domains`(1), `multimode`(1)

| Go To Top | Last Changed April 2004

Company Info | Contact | Copyright 2003 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.