Network Deployment (Distributed operating systems), v8.0 > Scripting the application serving environment (wsadmin) > Use the wsadmin scripting AdminConfig object for scripted administration
List attributes of configuration objects using wsadmin.sh
We can use scripting to generate a list of attributes of configuration objects.
Run an AdminConfig command to create a list of attributes of configuration objects.
Procedure
Start the wsadmin scripting client using wsadmin.sh
- 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.
To get a list of attributes for the JDBCProvider type:
### 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.
To get a list of required attributes for the JDBCProvider type:
### 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.
To get a list of attributes with the defaults displayed for the JDBCProvider type:
### Jacl $AdminConfig defaults JDBCProvider ### Jython AdminConfig.defaults('JDBCProvider')
Use the wsadmin scripting AdminConfig object for scripted administration
Commands for the AdminConfig object using wsadmin.sh