List applications using the wsadmin scripting tool
We can list installed applications using the wsadmin tool and scripting.
See the topic on starting the wsadmin scripting client.
Tasks
- Query the configuration and create a list of installed applications, for example:
- Use Jacl:
$AdminApp list- Use Jython:
print AdminApp.list()
Element Description $ Jacl operator for substituting a variable name with its value AdminApp is an object that supports application object management list is an AdminApp command Example output:
DefaultApplication SampleApp app1serv2- Query the configuration and create a list of installed applications on a given target scope, for example:
- Use Jacl:
$AdminApp list WebSphere:cell=myCell,node=myNode,server=myServer- Use Jython:
print AdminApp.list("WebSphere:cell=myCell,node=myNode,server=myServer")
Element Description $ Jacl operator for substituting a variable name with its value AdminApp object that supports application object management list AdminApp command WebSphere:cell=myCell,node=myNode, server=myServer Optional target scope Example output:
DefaultApplication PlantsByWebSphere SamplesGallery ivtApp query
Start the wsadmin scripting client Commands for the AdminApp object