List applications with the wsadmin tool
You can list installed applications using the wsadmin tool and scripting.
Before starting this task, the wsadmin tool must be running.
Procedure
- Query the configuration and create a list of installed applications, for example:
- Use Jacl:
$AdminApp list
- Use Jython:
print AdminApp.list()For example...
$ ../bin/wsadmin.bat -lang jython < listapps.py AccountManagement AccountReport AlbumCatalog CompanyContext CurrencyExchange DefaultApplication DynamicQuery FacesClientTutorial JTAExtensionsSamples PlantsByWebSphere SamplesGallery TechnologySamples WebServicesSamples WebSphereTrader activitysession wsadminwhere:
$ Jacl operator for substituting a variable name with its value AdminApp object that supports application object management list AdminApp command Example output:
DefaultApplication
SampleApp
app1serv2
- Query the configuration and create a list of installed applications on a given target scope...
- Use Jacl:
$AdminApp list WebSphere:cell=myCell,node=myNode,server=myServer
- Use Jython:
print AdminApp.list("WebSphere:cell=myCell,node=myNode,server=myServer")where:
$ 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
Commands for the AdminApp object