代码之家  ›  专栏  ›  技术社区  ›  mauek unak

Weblogic WLST获取部署状态

  •  0
  • mauek unak  · 技术社区  · 6 年前

    我发现使用:

    cd ('AppDeployments')
    print cmo.getAppDeployments()
    

    1 回复  |  直到 6 年前
        1
  •  4
  •   devwebcl    6 年前

    我列出应用程序的脚本:

    connect('weblogic','welcome1','t3://127.0.0.1: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()
    

    有关更多脚本,请访问: https://github.com/devwebcl/wls_contraption/tree/master/wlst