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
|