zoukankan      html  css  js  c++  java
  • wlst 使用boot.properties

    使用任何是存储在 Administration Server的boot.properties file.
    
    
    默认情况下,当你创建一个Administration server 在开发模式 
    
    WebLogic Server 加密认证 用于创建server和存储他们到boot.properties file. 
    
    当你创建一个Adminstration server 在生产环境,
    
    没有 boot.properties file is created
    
    如果你的认证domain不包含一个 boot.properties file, 你可以手动创建一个 
    
    当你运行connect命令,如果有一个boot.properties文件包含加密的用户和密码对于domain
    
    你不需要输入username和password 来连接到Administration Server
    
    但是,必须在connect命令中指定管理服务器的名称。
    
    [weblogic@zjtlcb bin]$ cat test_wlst_admin.py 
    from java.util import *
    from javax.management import *
    import javax.management.Attribute
    print 'starting the script .... '
    connect(adminServerName="AdminServer")
    ls()
    aa= get('AppDeployments')
    print type(aa)
    for x in aa:
      print x
    bb=get('Servers')
    print bb
    print type(bb)
    for x in bb:
    print x
    print '-------------------------'
    print get('AdminConsole')
    cc= get('JDBCStores')
    for x in cc:
      print x
    dd=get('JoltConnectionPools')
    for x in dd:
    print x
    ee=get('JMX')
    print ee
    ff=get('JMSSystemResources')
    for x in ff:
      print x
    jvmrtlist = home.getMBeansByType('JVMRuntime')
    print jvmrtlist
    print type(jvmrtlist)
    print dir(jvmrtlist)
    for jvmRT in jvmrtlist:
       print jvmRT
       print type(jvmRT)
    disconnect()
    exit()
  • 相关阅读:
    16-1-6 kafka的操作
    16-1-5:MapReduce
    MapReduce概述
    MapReduce的代码实现过程分析
    MapReduce
    HDFS2—SequenceFile(小文件的解决方案)
    HDFS2—federation
    hdfs
    缓解爬虫ip被封的概率
    zookeeper集群搭建
  • 原文地址:https://www.cnblogs.com/hzcya1995/p/13348674.html
Copyright © 2011-2022 走看看