Photo of the cover of WebSphere Application Server Administration Using Jython

Official companion web site

Show and Tell (Part 2)

Most recently modified on 2011-09-25
This article supplements the following sections of our book:
Chapter 8: The AdminConfig Object
Show and Tell Methods
page 155 to 159
You can buy our book from
Back to home pageBack to table of contents pageBack to interesting articles page

The AdminConfig commands that return information about configuration elements all require a configuration ID.

commanddescription
getid

Given a containment path, return all the configuration IDs that match. Can be more selective than AdminConfig.list()

raw = AdminConfig.getid( '/Node:C01N01/Server:/' ) s = raw.splitlines() len( s )

list

Return all configured instances of a given WAS configuration type. The sample code below will show how many DataSources are configured in this cell.

raw = AdminConfig.list( 'DataSource' ) ds = raw.splitlines() print len(ds)

See also these related articles:
AdminConfig SyntaxThe WAS Configuration TreeConfiguration TypesConfiguration IDsShow and Tell (Part 1)Show and Tell (Part 2)Show and Tell (Part 3)Preserving ChangesModifyCreateConfiguration Validation (Part 1)Configuration Validation (Part 2)Almost Never Used Commands (Part 1)Almost Never Used Commands (Part 2)
Click here to schedule a speaker at your locationClick here to inquire about consulting for your companyClick here to inquire about training for your company.