Skip Headers
Oracle® Traffic Director Command-Line Reference
11g Release 1 (11.1.1.7)

Part Number E21037-03
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Index
Index
Go to Feedback page
Contact Us

Go to previous page
Previous
Go to next page
Next
PDF · Mobi · ePub

create-config

Syntax

tadm create-config common_options [--server-user=user_id] 
[--ip=ip] --server-name=server_name  [--origin-server-type=http|https|tcp] --listener-port=port --origin-server=host:port[,host:port,..] config_name

Description

Use this command to create a new configuration that listens to HTTP and TCP traffic on a given port and front-ends a set of HTTP and TCP origin servers. By using this command, you can create a default virtual server that handles HTTP traffic and a default tcp proxy that handles TCP traffic. In addition, it creates a default route and forwards all traffic to the origin server.

Options

For information about common_options, run the help command.

--server-user|-r

Specify the user ID of a server user, for example, root. This option is mandatory if the administration server is on UNIX.

--ip|-I

Specify the Internet Protocol (IP) address for the default listener. If you provide the IP address, the server will bind to the IP address for the default listener. Only traffic sent to this IP address will be serviced.

--listener-port|-

Specify the listener port details for creating the configuration.

--origin-server-type|

Specify the type of requests handled by the origin servers.

--server-name|-s

Specify the host name of the server.

--origin-server|-O

Specify the comma separated list of origin servers of the format host:port. If the origin server is specified and the origin server port is 80, the port need not be specified. For example: os1.example.com and os2.example.com

Note:

The property origin-server enables you to specify multiple values, with each value enclosed in quotes and separated by commas.

Operands

config-name

Specify the name of the configuration that you want to create. Configuration name should not contain spaces, invalid characters or non-ASCII characters.

Example

Creating a configuration with an HTTP listener.

tadm create-config --user=admin --password-file=./admin.passwd --host=admin.example.com --port=8989 --no-prompt 
--listener-port=18022 --server-name=test1 --origin-server=www.mail.com,www.hotmail.com:8081 
config-1

Creating a configuration with a TCP listener.

tadm create-config --user=admin --password-file=./admin.passwd --host=admin.example.com --port=8989 --no-prompt 
--listener-port=8080 --origin-server=www.mail.com,www.hotmail.com:8081 
config-1

Exit Codes

The following exit values are returned:

0: command executed successfully

>0: error in executing the command

For more information about exit codes and syntax notations, run the help command.

See Also

help, list-backups, list-configs, delete-config, copy-config, pull-config, restore-config, list-config-files, get-config-file, set-config-file, deploy-config