List of all applications deployed in a server
 Technote (troubleshooting)
 
Problem(Abstract)
Sample JACL script is needed to list all applications that are deployed because a command to perform this task does not exist.
 
Cause
The IBM® WebSphere® Application Server Information Center currently provides examples for listing running applications only.
 
Resolving the problem
The output will appear when you run the script, which will map to the EAR file install:

output:
appName:WebServicesSamples.ear/deployments/WebServicesSamples
this means the WebServicesSamples is the app name in the console.

Note: This script is an example only and is not supported

Sample JACL that customer tested follows:


if { !($argc == 2) } {
   puts "this script requires 2 parameters: node and server name"
   return
}

set node      [lindex $argv 0]  
set server    [lindex $argv 1]

set nodeId  [$AdminConfig getid  /Node:$node/]
set serverId [$AdminConfig getid  /Node:$node/Server:$server/]
set entries [$AdminConfig list ServerEntry $nodeId]
foreach entry $entries {
 set apps [$AdminConfig showAttribute $entry deployedApplications ]
 set serverName [$AdminConfig showAttribute $entry serverName ]
 if {[string compare $serverName $server] == 0} {
  set appList [split $apps ";"]
  foreach appName $appList {
   puts " appName:$appName "
  }
 }
}

exit 0

 
 
 


Document Information


Current web document: swg21201575.html
Product categories: Software > Application Servers > Distributed Application & Web Servers > WebSphere Application Server for z/OS > Administrative Scripting Tools (for example: wsadmin or ANT)
Operating system(s): z/OS
Software version: 5.1
Software edition:
Reference #: 1201575
IBM Group: Software Group
Modified date: May 26, 2005