Listing the modules in an installed application with scripting
Use the AdminApp object listModules command to list the modules in an installed application. Before starting this task, the wsadmin tool must be running. See the Start the wsadmin scripting client article for more information.
Overview
Use this example:
Procedure
- Use Jacl:
$AdminApp listModules DefaultApplication -server
- Use Jython:
print AdminApp.listModules('DefaultApplication', '-server')where:
$ Jacl operator for substituting a variable name with its value Jython command AdminApp object that supports application object management listmodules AdminApp command DefaultApplication name of the application -server optional option specified Example output:
DefaultApplication#IncCMP11.jar+META-INF/ejb-jar.xml#WebSphere:cell=mycell,node=mynode,server=myserver DefaultApplication#DefaultWebApplication.war+WEB-INF/web.xml#WebSphere:cell=mycell,node=mynode,server=myserver
Example: Listing the modules in an appserver
Related Reference
Commands for the AdminApp object