create-variable

Syntax

tadm create-variable common_options [--vs=vs_name] 
[--description=text] --config=config_name (var_name=value)+

Description

Use this command to create a server.xml variable. You can create a variable at the server as well as the virtual server levels. The variable element defines a variable for use in expressions, log formats, and obj.conf parameters.

Options

For information about common_options, run the help command.

--vs|-s

Specify the name of the virtual server for which you want to create a variable.

--description|-D

Specify the description of the server.xml variable that you want to create.

--config|-c

Specify the name of the configuration for which you want to create a variable.

Operands

var-name=value

Specify name=value pairs for one or more properties that you want to define. The name=value pairs should be separated by spaces.

Example

tadm create-variable --user=admin --host=admin.example.com 
--password-file=./admin.passwd --port=8989 
--no-prompt --config=www.example.org foo=bar

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, delete-variable, list-variables