Listing attributes of configuration objects using the wsadmin tool

Overview

  1. Invoke the AdminConfig object commands interactively, in a script, or use the wsadmin -c command from an operating system command prompt.

  2. List the attributes of a given configuration object type, using the attributes command, for example:

    Using Jacl:

    $AdminConfig attributes type

    [V5.1 and later]Using Jython:

    AdminConfig.attributes('type')

    where:

    $ is a Jacl operator for substituting a variable name with its value
    AdminConfig is an object representing 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
    

    [V5.1 and later]Using Jython:

    AdminConfig.attributes('JDBCProvider')

  3. List the required attributes of a given configuration object type, using the required command, for example:

    Using Jacl:

    $AdminConfig required type

    [V5.1 and later]Using Jython:

    AdminConfig.required('type')

    where:

    $ is a Jacl operator for substituting a variable name with its value
    AdminConfig is an object representing 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

    [V5.1 and later]Using Jython:

    AdminConfig.required('JDBCProvider')

  4. List attributes with defaults of a given configuration object type, using the defaults command, for example:

    Using Jacl:

    $AdminConfig defaults type

    [V5.1 and later]Using Jython:

    AdminConfig.defaults('type')

    where:

    $ is a Jacl operator for substituting a variable name with its value
    AdminConfig is an object representing the WebSphere Application Server configuration
    defaults is an AdminConfig command
    type is an object type


    This command returns a list of all attributes, types, and defaults.

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

    Using Jacl:

    $AdminConfig defaults JDBCProvider

    [V5.1 and later]Using Jython:

    AdminConfig.defaults('JDBCProvider')