• weblogic wlst 例子


    [weblogic@zjtlcb bin]$ cat test_wlst.py 
    from java.util import *
    from javax.management import *
    import javax.management.Attribute
    print 'starting the script .... '
    connect('weblogic','weblogic1','t3://127.0.0.1:7001')
    #ls()
    aa= get('AppDeployments')
    print type(aa)
    for x in aa:
      print x
    [weblogic@zjtlcb bin]$ java weblogic.WLST test_wlst.py 
    
    Initializing WebLogic Scripting Tool (WLST) ...
    
    Welcome to WebLogic Server Administration Scripting Shell
    
    Type help() for help on available commands
    
    starting the script .... 
    Connecting to t3://127.0.0.1:7001 with userid weblogic ...
    Successfully connected to Admin Server 'AdminServer' that belongs to domain 'base_domain'.
    
    Warning: An insecure protocol was used to connect to the 
    server. To ensure on-the-wire security, the SSL port or 
    Admin port should be used instead.
    
    <type 'array'>
    com.bea:Name=TLMap,Type=AppDeployment
    com.bea:Name=SunDSPWP,Type=AppDeployment
    com.bea:Name=CMS,Type=AppDeployment
    com.bea:Name=SunCIS,Type=AppDeployment
    com.bea:Name=DevOps,Type=AppDeployment
    com.bea:Name=SunPLS,Type=AppDeployment
    
  • 相关阅读:
    Input标签与图片按钮水平对齐解决方法
    下载网页流
    GTD
    Eclipse 运行多个Tomcat实例
    Tomcat启动超时
    Javascript:谈谈JS的全局变量跟局部变量
    影响一生的习惯
    OpenSUSE 安装并启动Tomcat
    ExtJS实战 01——HelloWorld
    eclipse快捷键
  • 原文地址:https://www.cnblogs.com/hzcya1995/p/13348677.html
Copyright © 2020-2023  润新知