zoukankan      html  css  js  c++  java
  • python wlst 卸载包

    下面的例子删除businessApp  应用从所有的目标服务器 
    
    wls:/mydomain/serverConfig> undeploy('businessApp', timeout=60000) 
    Undeploying application businessApp ...
    <Jul 20, 2005 9:34:15 AM EDT> <Info> <J2EE Deployment SPI> <BEA-260121>
    <Initiating undeploy operation for application, businessApp [archive: null], 
    to AdminServer .>
    Completed the undeployment of Application with status
    Current Status of your Deployment:
    Deployment command type: undeploy
    Deployment State       : completed
    Deployment Message     : no message
    wls:/mydomain/serverConfig>
    
    
    targets
    Optional. List of the target servers from which the application will be removed
    
    
    . If not specified, defaults to all current targets.
    
    
    [weblogic@zjtlcb bin]$ java weblogic.WLST undeploy.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://localhost: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.
    
    Undeploying application DevOps ...
    <2019-10-29 下午08时07分37秒 CST> <Info> <J2EE Deployment SPI> <BEA-260121> <Initiating undeploy operation for application, DevOps [archive: null], to AdminServer .> 
    .Completed the undeployment of Application with status completed
    Current Status of your Deployment:
    Deployment command type: undeploy
    Deployment State       : completed
    Deployment Message     : [Deployer:149194]Operation 'remove' on application 'DevOps' has succeeded on 'AdminServer'
    weblogic.management.scripting.jsr88.WLSTProgressImpl@73b4f342
    <2019-10-29 下午08时07分40秒 CST> <Warning> <JNDI> <BEA-050001> <WLContext.close() was called in a different thread than the one in which it was created.> 
    [weblogic@zjtlcb bin]$ cat undeploy.py 
    from java.util import *
    from javax.management import *
    import javax.management.Attribute
    print 'starting the script .... '
    connect(adminServerName="AdminServer")
    print  undeploy(appName='DevOps', targets='AdminServer') 
    
  • 相关阅读:
    移动语义
    unordered_map/unordered_set & unordered_multimap/unordered_multiset非关联容器
    C++构造函数和析构函数,以及构造函数特殊成员变量和函数的初始化
    Valgrind,内存调试工具
    堆排序,图解,C/C++实现
    哈希表概念和实现,C/C++实现
    AVL平衡二叉树实现,图解分析,C++描述,完整可执行代码
    二叉排序树,Binary_Sort_Tree,C++完整实现
    [Codeforces Round #656 (Div. 3)] (E. Directing Edges)拓扑排序
    最短路 2 [HDU
  • 原文地址:https://www.cnblogs.com/hzcya1995/p/13348664.html
Copyright © 2011-2022 走看看