Modifying configuration objects with the wsadmin tool

Why and when to perform this task

When using the modify command for the AdminConfig object, use the configuration object ID to modify the attribute you want to change. If you use the parent object ID to modify the attribute, the command resets all other attributes that are not specified to the default values. For example, you use the modify command to change the monitoring policy settings through its parent object, the process definition object. All attributes for the process definition object that were not modified with the command, such as the pingInterval and pingTimeout attributes, are reset to their default values.

Steps for this task

  1. Invoke the AdminConfig object commands interactively, in a script, or use wsadmin -c from an operating system command prompt.
  2. Retrieve the configuration ID of the objects that you want to modify, for example:

    Using Jacl:

    set 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


  3. Show the current attribute values of the configuration object with the show command, for example:

    Using Jacl:

    $AdminConfig show $jdbcProvider1
    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


  4. Modify the attributes of the configuration object, for example:

    Using Jacl:

    $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


    You can also modify several attributes at the same time. For example:

    Using Jacl:

    {{name1 val1} {name2 val2} {name3 val3}}
  5. Save the configuration changes with the following command:

    Using Jacl:

    $AdminConfig save
    Use the reset command of the AdminConfig object to undo changes that you made to your workspace since your last save.



Searchable topic ID:   txml_calladminconfig
Last updated: Jun 21, 2007 4:12:58 PM CDT    WebSphere Application Server Express, Version 5.0.2
http://publib.boulder.ibm.com/infocenter/wasinfo/index.jsp?topic=/com.ibm.websphere.exp.doc/info/exp/ae/txml_calladminconfig.html

Library | Support | Terms of Use | Feedback