Listing attributes of configuration objects using the wsadmin tool

 

Procedure

  1. Start wsadmin

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

    • Jacl:

      $AdminConfig attributes type
      

    • Jython

      AdminConfig.attributes('type')
      

    where:

    $ is a Jacl operator for substituting a variable name with its value
    AdminConfig is an object that represents the WAS 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:

    • Jacl:

      $AdminConfig attributes JDBCProvider
      
      

    • Jython

      AdminConfig.attributes('JDBCProvider')
      

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

    • Jacl:

      $AdminConfig required type
      

    • Jython

      AdminConfig.required('type')
      

    where:

    $ is a Jacl operator for substituting a variable name with its value
    AdminConfig is an object that represents the WAS 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:

    • Jacl:

      $AdminConfig required JDBCProvider
      

    • Jython

      AdminConfig.required('JDBCProvider')
      

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

    • Jacl:

      $AdminConfig defaults type
      

    • Jython

      AdminConfig.defaults('type')
      

    where:

    $ is a Jacl operator for substituting a variable name with its value
    AdminConfig is an object that represents the WAS 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:

    • Jacl:

      $AdminConfig defaults JDBCProvider
      

    • Jython

      AdminConfig.defaults('JDBCProvider')
      


 

See Also


AdminConfig object for scripted administration

 

See Also


Commands for the AdminConfig object