Listing applications using wsdmin.sh
We can list installed applications and scripting.
Before starting this task, wsadmin.sh must be running. See the topic on starting the wsadmin scripting client.
- Query the configuration and create a list of installed applications, for example:
- Jacl:
$AdminApp list
- Jython:
print AdminApp.list()
Element Description $ is a 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:
- Jacl:
$AdminApp list WebSphere:cell=myCell,node=myNode,server=myServer
- Jython:
print AdminApp.list("WebSphere:cell=myCell,node=myNode,server=myServer")
Element Description $ is a Jacl operator for substituting a variable name with its value AdminApp is an object that supports application object management list is an AdminApp command WebSphere:cell=myCell,node=myNode, server=myServer is an optional target scope Example output:
DefaultApplication PlantsByWebSphere SamplesGallery ivtApp query
Related tasks
Start the wsadmin scripting client
Commands for the AdminApp object