|
|
|
NAME
copy-config - copies an
existing configuration to create a new configuration
SYNOPSIS
copy-config user admin_user [passwordfile filename] [host host_name] [port port_number] [secure|s] [terse=false] [echo=false] [interactive=true] [help] [systemproperties (name=value)[:name=value]*] source_configuration_name destination_configuration_name
Use the copy-config command to create a new configuration in the domain.xml file by copying an existing configuration. The new configuration
is identical to the copied configuration, except for any properties you specify
in the systemproperties
option.
The configuration default-config is the configuration
that is copied when a standalone sever instance or standalone cluster is created.
- u user
-
The authorized domain application server administrative username.
- w password
-
The password option is deprecated. Use passwordfile instead.
- passwordfile
-
This option replaces the password option. Using the password option on the command line or through the environment is
deprecated. The passwordfile option specifies the name of a file containing the password entries in a specified format. The entry for the password must have the AS_ADMIN_ prefix followed by the password name in capital letters. For example, to specify the
domain application server password, use an entry with the following format: AS_ADMIN_PASSWORD=password, where password is the actual administrator password. Other passwords that can be specified include AS_ADMIN_MAPPEDPASSWORD,
AS_ADMIN_USERPASSWORD, AS_ADMIN_SAVEDMASTERPASSWORD, AS_ADMIN_MQPASSWORD, AS_ADMIN_ALIASPASSWORD, and so on.
- H host
-
The machine name where the domain application server is running. The default value is localhost.
- p port
-
The port number of the domain application server listening for administration requests. The default port number for Enterprise Edition is 4849.
- s secure
-
If set to true, uses SSL/TLS to communicate with the domain application server.
- t terse
-
Indicates that any output data must be very concise, typically avoiding human-friendly sentences and favoring well-formatted data for consumption by a script. Default is false.
- e echo
-
Setting to true will echo the command line statement on the standard output. Default is false.
- I interactive
-
If set to true (default), only the required password options are prompted.
- h help
-
Displays the help text for the command.
- systemproperties
-
Optional attribute name/value pairs for configuring
the resource. The following properties are available:
System Property | Definition |
HTTP_LISTENER_PORT | This property specifies the port
number for http-listener-1. Valid values are 165535. On UNIX, creating
sockets that listen on ports 11024 requires superuser privileges. |
HTTP_SSL_LISTENER_PORT | This property specifies the port number for http-listener-2. Valid values
are 165535. On UNIX, creating sockets that listen on ports 11024
requires superuser privileges. |
IIOP_LISTENER_PORT | This property specifies which ORB listener port for IIOP connections orb-listener-1
listens on. |
IIOP_SSL_LISTENER_PORT | This property specifies which ORB listener port for IIOP
connections the IIOP listener called SSL listens on. |
IIOP_SSL_MUTUALAUTH_PORT | This property specifies which ORB listener port for IIOP
connections the IIOP listener called SSL_MUTUALAUTH listens on. |
JMX_SYSTEM_CONNECTOR_PORT | This property specifies the port number on which
the JMX connector listens. Valid values are 165535. On UNIX, creating
sockets that listen on ports 11024 requires superuser privileges. |
-
source_configuration_name
-
The name of the configuration you are copying.
-
destination_configuration_name
-
The name of the new configuration you are creating by copying
the source configuration. This name should be unique within a domain.xml.
It should not be the same as the cluster name, serverinstance name, another
config name, or node agent name.
Example 1. Using the copy-config command
asadmin> copy-config --user admin --passwordfile passwords.txt
--systemproperties HTTP_LISTENER_PORT=2000:HTTP_SSL_LISTENER_PORT=3000
default-config new-config
Command copy-config executed successfully.
- 0
-
command executed successfully
- 1
-
error in executing the command
list-configs(1), delete-config(1)
J2EE SDK 1.4 | Go To Top | Last Changed 31 Jan 2005 |
Company Info
|
Contact
|
Copyright 2004 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.
|