WebSphere Application Server - Express, Version 6.0.x     Operating Systems: AIX, HP-UX, Linux, Solaris, Windows

Modifying configuration objects with the wsadmin tool

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

  1. Retrieve the configuration ID of the objects that you want to modify, for example:
    • Using Jacl:

      set jdbcProvider1 [$AdminConfig getid /JDBCProvider:myJdbcProvider/]
      
    • Using Jython:
      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 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
  2. Show the current attribute values of the configuration object with the show command, for example:
    • Using Jacl:

      $AdminConfig show $jdbcProvider1
    • Using Jython:
      AdminConfig.show(jdbcProvider1)
    where:
    $ 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
  3. Modify the attributes of the configuration object, for example:
    • Using Jacl:

      $AdminConfig modify $jdbcProvider1 {{description "This is my new description"}}
    • Using Jython list:
      AdminConfig.modify(jdbcProvider1, [['description', "This is my new description"]])
    • Using Jython string:
      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 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
    You can also modify several attributes at the same time. For example:
    • Using Jacl:

      {{name1 val1} {name2 val2} {name3 val3}}
    • Using Jython list:
      [['name1', 'val1'], ['name2', 'val2'], ['name3', 'val3']]
    • Using Jython string:
      '[[name1 val1] [name2 val2] [name3 val3]]'
  4. Save the configuration changes. See the Saving configuration changes with the wsadmin tool article for more information.
  5. In a network deployment environment only, synchronize the node. See the Synchronizing nodes with the wsadmin tool article for more information.



Related concepts
AdminConfig object for scripted administration

Related reference
Commands for the AdminConfig object

Task topic    

Terms of Use | Feedback

Last updated: Jun 8, 2005 12:45:23 PM EDT
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/com.ibm.websphere.express.doc/info/exp/ae/txml_calladminconfig.html

© Copyright IBM Corporation 2002, 2005. All Rights Reserved.
This information center is powered by Eclipse technology. (http://www.eclipse.org)