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

Listing attributes of configuration objects using 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 create a list of attributes of configuration objects:

Steps for this task

  1. List the attributes of a given configuration object type, using the attributes command, for example:
    • Using Jacl:

      $AdminConfig attributes type
    • Using Jython:
      AdminConfig.attributes('type')
    where:
    $ is a Jacl operator for substituting a variable name with its value
    AdminConfig is an object that represents the WebSphere Application Server configuration
    attributes is an AdminConfig command
    type is an object type
    This command returns a list of attributes and its data type.

    To get a list of attributes for the JDBCProvider type, use the following example command:

    • Using Jacl:

      $AdminConfig attributes JDBCProvider
      
    • Using Jython:
      AdminConfig.attributes('JDBCProvider')
  2. List the required attributes of a given configuration object type, using the required command, for example:
    • Using Jacl:

      $AdminConfig required type
    • Using Jython:
      AdminConfig.required('type')
    where:
    $ is a Jacl operator for substituting a variable name with its value
    AdminConfig is an object that represents the WebSphere Application Server configuration
    required is an AdminConfig command
    type is an object type
    This command returns a list of required attributes.

    To get a list of required attributes for the JDBCProvider type, use the following example command:

    • Using Jacl:

      $AdminConfig required JDBCProvider
    • Using Jython:
      AdminConfig.required('JDBCProvider')
  3. List attributes with defaults of a given configuration object type, using the defaults command, for example:
    • Using Jacl:

      $AdminConfig defaults type
    • Using Jython:
      AdminConfig.defaults('type')
    where:
    $ is a Jacl operator for substituting a variable name with its value
    AdminConfig is an object that represents the WebSphere Application Server configuration
    defaults is an AdminConfig command
    type is an object type
    This command returns a list of all the attributes, types, and defaults.

    To get a list of attributes with the defaults displayed for the JDBCProvider type, use the following example command:

    • Using Jacl:

      $AdminConfig defaults JDBCProvider
    • Using Jython:
      AdminConfig.defaults('JDBCProvider')



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_listattribute.html

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