Lists configuration objects of a specified type within either specified scope or matching specified pattern.

listConfigObjects( <typeName>, [ <scope> | <pattern> ] )

Arguments

typeName

name of configuration object type

scope

wdr.config.Object instance

pattern

wildcard pattern for filtering the results

Result

List of wdr.config.ConfigObject objects.

Examples

  • Listing all Server objects
print listConfigObjects('Server')
[dmgr(cells/wdrCell/nodes/wdrDMgrNode/servers/dmgr|server.xml#Server_1), nodeagent(cells/wdrCell/nodes/wdrNode01/servers/nodeagent|server.xml#Server_1340355137285), wdrServer(cells/wdrCell/nodes/wdrNode01/servers/wdrServer|server.xml#Server_1340355496917)]
  • Listing all Server objects in scope of node
node = getid1('/Node:wdrNode01/')
print listConfigObjects('Server', node)
[nodeagent(cells/wdrCell/nodes/wdrNode01/servers/nodeagent|server.xml#Server_1340355137285), wdrServer(cells/wdrCell/nodes/wdrNode01/servers/wdrServer|server.xml#Server_1340355496917)]
  • Listing all Server objects matching specified wildcard
print listConfigObjects('Server', 'nodeagent(*')
[nodeagent(cells/wdrCell/nodes/wdrNode01/servers/nodeagent|server.xml#Server_1340355137285)]

See also