WAS v8.5 > Script the application serving environment (wsadmin) > Use the wsadmin scripting AdminApp object for scripted administrationList applications using wsadmin.sh
We can list installed applications using wsadmin and scripting.
Before starting this task, wsadmin 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
- Using Jython:
print AdminApp.list()
AdminApp list command description. Run the list command with no arguments.
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
- Using Jython:
print AdminApp.list("WebSphere:cell=myCell,node=myNode,server=myServer")
AdminApp list command with target description. Run the list command with an optional argument.
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
Start the wsadmin scripting client using wsadmin.sh
Reference:
Commands for the AdminApp object using wsadmin.sh