• wlst脚本调用


    cd /app/weblogic/wlserver/server/bin
    
    [sence@zjtlcb bin]$ sh ./setWLSEnv.sh 
    CLASSPATH=/app/sence_apiweb/jdk1.8.0_144/lib/tools.jar:/app/weblogic/wlserver/modules/features/wlst.wls.classpath.jar:.:/app/sence_apiweb/jdk1.8.0_144/lib/dt.jar:/app/sence_apiweb/jdk1.8.0_144/lib/tools.jar
    
    PATH=/app/weblogic/wlserver/server/bin:/app/weblogic/wlserver/../oracle_common/modules/thirdparty/org.apache.ant/1.9.8.0.0/apache-ant-1.9.8/bin:/app/sence_apiweb/jdk1.8.0_144/jre/bin:/app/sence_apiweb/jdk1.8.0_144/bin:/app/sence_apiweb/jdk1.8.0_144/bin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/sence/bin:/app/weblogic/wlserver/../oracle_common/modules/org.apache.maven_3.2.5/bin
    
    Your environment has been set.
    [sence@zjtlcb bin]$ export CLASSPATH=/app/sence_apiweb/jdk1.8.0_144/lib/tools.jar:/app/weblogic/wlserver/modules/features/wlst.wls.classpath.jar:.:/app/sence_apiweb/jdk1.8.0_144/lib/dt.jar:/app/sence_apiweb/jdk1.8.0_144/lib/tools.jar
    [sence@zjtlcb bin]$ export PATH=/app/weblogic/wlserver/server/bin:/app/weblogic/wlserver/../oracle_common/modules/thirdparty/org.apache.ant/1.9.8.0.0/apache-ant-1.9.8/bin:/app/sence_apiweb/jdk1.8.0_144/jre/bin:/app/sence_apiweb/jdk1.8.0_144/bin:/app/sence_apiweb/jdk1.8.0_144/bin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/sence/bin:/app/weblogic/wlserver/../oracle_common/modules/org.apache.maven_3.2.5/bin
    [sence@zjtlcb bin]$ 
    [sence@zjtlcb bin]$ set -o vi
    [sence@zjtlcb bin]$ java weblogic.WLST
    
    Initializing WebLogic Scripting Tool (WLST) ...
    
    Welcome to WebLogic Server Administration Scripting Shell
    
    Type help() for help on available commands
    
    wls:/offline> exit()
    
    
    Exiting WebLogic Scripting Tool.
    
    [sence@zjtlcb bin]$ pwd
    /app/weblogic/wlserver/server/bin
    [sence@zjtlcb bin]$ 
    
    [sence@zjtlcb bin]$ cat test1.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')
    disconnect()
    print 'End of script ...'
    exit()
    [sence@zjtlcb bin]$  java weblogic.WLST test1.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.
    
    Disconnected from weblogic server: AdminServer
    End of script ...
    
    
    Exiting WebLogic Scripting Tool.
    
    
  • 相关阅读:
    转职游戏策划第四周
    转职游戏策划第三周
    HTML表单验证库SMValidator
    win7通过easyBCD引导ubuntu
    SWF混淆工具(智能提取需要混淆的字段)
    图文混排组件(RichTextField)
    windows下gvim使用vundle插件
    AirMVC
    再战中原之地图编辑器
    再战中原之菜单系统
  • 原文地址:https://www.cnblogs.com/hzcya1995/p/13348787.html
Copyright © 2020-2023  润新知