Before starting this task, the wsadmin tool must be running. See the Starting the wsadmin scripting client article for more information.
Perform the following steps to modify a configuration object:
set jdbcProvider1 [$AdminConfig getid /JDBCProvider:myJdbcProvider/]
jdbcProvider1 = AdminConfig.getid('/JDBCProvider:myJdbcProvider/')
where:
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 representing 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 |
where:
$ | is a Jacl operator for substituting a variable name with its value |
AdminConfig | is an object representing the WebSphere Application Server configuration |
show | is an AdminConfig command |
jdbcProvider1 | evaluates to the ID of host node specified in step number 2 |
$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"]]')
where:
$ | is a Jacl operator for substituting a variable name with its value |
AdminConfig | is an object representing the WebSphere Application Server configuration |
modify | is an AdminConfig command |
jdbcProvider1 | evaluates to the ID of host node specified in step number 3 |
description | is an attribute of server objects |
This is my new description | is the value of the description attribute |
{{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