如何通过wlst获取weblogic应用程序列表

如何通过wlst获取weblogic应用程序列表,weblogic,wlst,Weblogic,Wlst,我尝试为一些weblogic服务器编制清单,并希望使用WSLT完成这项工作。 我能够从示例中获得应用程序列表(100+) 但我在一些重要信息上失败了: 上下文根 测试点 有人能帮我把它取出来吗? 是否可以通过其他方式使用基本属性登记weblogic服务器上的所有应用程序 //WebLogic服务器版本:12.2.1.0.0对于上下文根:serverRuntime()cd('/ApplicationRuntimes/VigieApp')cc=cmo.getComponentRuntimes()

我尝试为一些weblogic服务器编制清单,并希望使用WSLT完成这项工作。 我能够从示例中获得应用程序列表(100+)

但我在一些重要信息上失败了:

  • 上下文根
  • 测试点
有人能帮我把它取出来吗? 是否可以通过其他方式使用基本属性登记weblogic服务器上的所有应用程序


//WebLogic服务器版本:12.2.1.0.0

对于上下文根:
serverRuntime()cd('/ApplicationRuntimes/VigieApp')cc=cmo.getComponentRuntimes()app=cc[0]app.getContextRoot()
对于上下文根:
serverRuntime()cd('/ApplicationRuntimes/VigieApp')cc=cmo.getComponentRuntimes()app=cc[0]app.getContextRoot()
connect('admin','xxxxxxx','t3://server1:7001')
cd('AppDeployments')
deplymentsList=cmo.getAppDeployments()

for app in deplymentsList:
      domainConfig()
      cd ('/AppDeployments/'+app.getName()+'/Targets')
      mytargets = ls(returnMap='true')
      domainRuntime()
      cd('AppRuntimeStateRuntime')
      cd('AppRuntimeStateRuntime')
      for targetinst in mytargets:
            curstate4=cmo.getCurrentState(app.getName(),targetinst)
            print '----', app.getApplicationName(), ' | ', app.getVersionIdentifier(), ' | ', app.getModuleType(), ' | ',  targetinst, ' | ', curstate4, ' | ', app.getSecurityDDModel(), ' | ', app.getAbsoluteSourcePath()