Before you begin
Before starting this task, the wsadmin tool must be running. See the Starting the wsadmin scripting client article for more information.Why and when to perform this task
Perform the following steps to modify a configuration object:Steps for this task
Using Jacl:
set jdbcProvider1 [$AdminConfig getid /JDBCProvider:myJdbcProvider/]
jdbcProvider1 = AdminConfig.getid('/JDBCProvider:myJdbcProvider/')
set | is a Jacl command |
jdbcProvider1 | is a variable name |
$ | is a Jacl operator for substituting a variable name with its value |
AdminConfig | is an object that represents the WebSphere Application Server configuration |
getid | is an AdminConfig command |
/JDBCProvider:myJdbcProvider/ | is the hierarchical containment path of the configuration object |
JDBCProvider | is the object type |
myJdbcProvider | is the optional name of the object |
Using Jacl:
$AdminConfig show $jdbcProvider1
AdminConfig.show(jdbcProvider1)
$ | is a Jacl operator for substituting a variable name with its value |
AdminConfig | is an object that represents the WebSphere Application Server configuration |
show | is an AdminConfig command |
jdbcProvider1 | evaluates to the ID of the host node that is specified in step number 1 |
Using Jacl:
$AdminConfig modify $jdbcProvider1 {{description "This is my new description"}}
AdminConfig.modify(jdbcProvider1, [['description', "This is my new description"]])
AdminConfig.modify(jdbcProvider1, '[[description "This is my new description"]]')
$ | is a Jacl operator for substituting a variable name with its value |
AdminConfig | is an object that represents the WebSphere Application Server configuration |
modify | is an AdminConfig command |
jdbcProvider1 | evaluates to the ID of the host node that is specified in step number 1 |
description | is an attribute of server objects |
This is my new description | is the value of the description attribute |
Using Jacl:
{{name1 val1} {name2 val2} {name3 val3}}
[['name1', 'val1'], ['name2', 'val2'], ['name3', 'val3']]
'[[name1 val1] [name2 val2] [name3 val3]]'
Related concepts
AdminConfig object for scripted administration
Related reference
Commands for the AdminConfig object