List attributes of configuration objects using the wsadmin scripting tool
Use scripting to generate a list of attributes of configuration objects.
See the topic on starting wsadmin.
Run an AdminConfig command to create a list of attributes of configuration objects.
Tasks
- List the attributes of a given configuration object type, using the attributes command, for example:
- Jacl:
$AdminConfig attributes type- Jython:
AdminConfig.attributes('type')
This command returns a list of attributes and its data type.
Element Description $ Jacl operator for substituting a variable name with its value AdminConfig Object representing the product configuration attributes AdminConfig command type Object type To get a list of attributes for the JDBCProvider type, use the following example command:
- Jacl:
$AdminConfig attributes JDBCProvider- Jython:
AdminConfig.attributes('JDBCProvider')
- List the required attributes of a given configuration object type, using the required command, for example:
- Jacl:
$AdminConfig required type- Jython:
AdminConfig.required('type')
This command returns a list of required attributes.
Element Description $ Jacl operator for substituting a variable name with its value AdminConfig object that represents the product configuration required n AdminConfig command type object type To get a list of required attributes for the JDBCProvider type, use the following example command:
- Jacl:
$AdminConfig required JDBCProvider- Jython:
AdminConfig.required('JDBCProvider')
- List attributes with defaults of a given configuration object type, using the defaults command, for example:
- Jacl:
$AdminConfig defaults type- Jython:
AdminConfig.defaults('type')
This command returns a list of all the attributes, types, and defaults.
Element Description $ Jacl operator for substituting a variable name with its value AdminConfig object that represents the product configuration defaults n AdminConfig command type object type 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')
Start the wsadmin scripting client wsadmin AdminConfig Commands for the AdminConfig object