Perform the following steps to invoke an administrative command in interactive mode. To invoke an administrative command in batch mode, see Invoking an administrative command in batch mode.
$AdminTask commandName {-interactive}Using Jython:
AdminTask.commandName('[-interactive]')where:
$ | is a Jacl operator for substituting a variable name with its value |
AdminTask | is an object allowing administrative command management |
commandName | is the name of the administrative command being invoked |
-interactive | is the interactive option |
$AdminTask commandName targetObject {-interactive}Using Jython:
AdminTask.commandName(targetObject, '[-interactive]')where:
$ | is a Jacl operator for substituting a variable name with its value |
AdminTask | is an object allowing administrative command management |
commandName | is the name of the administrative command being invoked |
targetObject | is the target object string for the invoked administrative command. The target object is different for each administrative command. View the online help for the invoked administrative command to learn more about what to specify as a target object. |
-interactive | is the interactive option |
$AdminTask commandName {-interactive commandOptions}Using Jython:
AdminTask.commandName('[-interactive commandOptions]')where:
$ | is a Jacl operator for substituting a variable name with its value |
AdminTask | is an object allowing administrative command management |
commandName | is the name of the administrative command being invoked |
-interactive | is the interactive option |
commandOptions | is the command option available for the associated administrative command. Available command options are different for each administrative command.
View the online help for the invoked administrative command to obtain more information about which options are available. Arguments and steps listed on the online administrative command help are specified as command options.
Each option consists of a dash followed immediately by an option name, and then followed by an option value if the option requires a value. For example,
using the output of the following online help for createJ2CConnectionFactory:WASX8006I: Detailed help for command: createJ2CConnectionFactory Description: Create a J2C connection factory *Target object: The parent J2C resource adapter of the created J2C connection factory. Arguments: *connectionFactoryInterface - A connection factory interface that is defined in the deployment description of the parent J2C resource adapter. *name - The name of the J2C connection factory. *jndiName - The JNDI name of the created J2C connection factory. description - The description for the created J2C connection factory. authDataAlias - the authentication data alias of the created J2C connection factory. Steps: NoneIn this example, there are five options available:
Each requires an option value. Only three of the options are required and are denoted with a *. |
$AdminTask commandName targetObject {-interactive commandOptions}Using Jython:
AdminTask.commandName(targetObject, '[-interactive commandOptions]')where:
$ | is a Jacl operator for substituting a variable name with its value |
AdminTask | is an object allowing administrative command management |
commandName | is the name of the administrative command being invoked |
targetObject | is the target object string for the invoked admin command. The expect target object varies with each admin command. Consult the on-line help on the invoked admin command to learn more about what to specify as target object. |
-interactive | is the interactive option |
commandOptions | is the command option available for the associated administrative command. Available command options are different for each administrative command.
View the online help for the invoked administrative command to obtain more information about which options are available. Arguments and steps listed on the online administrative command help are specified as command options.
Each option consists of a dash followed immediately by an option name, and then followed by an option value if the option requires a value. For example,
using the output of the following online help for createJ2CConnectionFactory:WASX8006I: Detailed help for command: createJ2CConnectionFactory Description: Create a J2C connection factory *Target object: The parent J2C resource adapter of the created J2C connection factory. Arguments: *connectionFactoryInterface - A connection factory interface that is defined in the deployment description of the parent J2C resource adapter. *name - The name of the J2C connection factory. *jndiName - The JNDI name of the created J2C connection factory. description - The description for the created J2C connection factory. authDataAlias - the authentication data alias of the created J2C connection factory. Steps: NoneIn this example, there are five options available:
Each requires an option value. Only three of the options are required and are denoted with a *. |
Example
$AdminTask createJ2CConnectionFactory {-interactive}Using Jython:
AdminTask.createJ2CConnectionFactory('[-interactive]')Example output:
Create a J2C connection factory *The J2C resource adapter: "WebSphere Relational ResourceAdapter (cells/myCell/nodes/myNode|resources.xml#builtin_rra)" A connection factory interface (connectionFactoryInterface):javax.resource.cci.ConnectionFactory *Name (name): myJ2CCF *The JNDI name (jndiName): j2c/cf Description (description): authentication data alias (authDataAlias): create J2C connection factory F (Finish) C (Cancel) Select [F, C]: [F] myJ2CCF(cells/myCell/nodes/myNode|resources.xml#J2CConnectionFactory_1069690568269)
set ra [$AdminConfig getid /J2CResourceAdapter:myResourceAdapter/] $AdminTask createJ2CConnectionFactory $ra {-interactive}Using Jython:
ra = AdminConfig.getid('/J2CResourceAdapter:myResourceAdapter/') AdminTask.createJ2CConnectionFactory(ra, '[-interactive]')Example output:
Create a J2C connection factory *The J2C resource adapter: ["WebSphere Relational ResourceAdapter (cells/myCell/nodes/myNode|resources.xml#builtin_rra)"] A connection factory interface (connectionFactoryInterface): javax.resource.cci.ConnectionFactory *Name (name): myJ2CCF *The JNDI name (jndiName): j2c/cf Description (description): authentication data alias (authDataAlias): create J2C Connection Factory F (Finish) C (Cancel) Select [F, C]: [F] myJ2CCF(cells/myCell/nodes/myNode|resources.xml#J2CConnectionFactory_1069690568269)
set ra [$AdminConfig getid /J2CResourceAdapter:myResourceAdapter/] $AdminTask createJ2CConnectionFactory $ra {-name myNewCF -interactive}Using Jython:
ra = AdminConfig.getid('/J2CResourceAdapter:myResourceAdapter/') AdminTask.createJ2CConnectionFactory(ra, '[-name myNewCF -interactive]')Example output:
Create a J2C connection factory *The J2C resource adapter: ["WebSphere Relational ResourceAdapter (cells/myCell/nodes/myNode|resources.xml#builtin_rra)"] A connection factory interface (connectionFactoryInterface):javax.resource.cci.ConnectionFactory *Name (name): [myNewCF] *The JNDI name (jndiName): j2c/cf Description (description): authentication data alias (authDataAlias): create J2C Connection Factory F (Finish) C (Cancel) Select [F, C]: [F] myNewCF(cells/myCell/nodes/myNode|resources.xml#J2CConnectionFactory_3839439380269)