我正在尝试如下执行wlst脚本,但不知道为什么会收到该错误。
DEV3_INTF_Domain$ ./stopDomain.sh "DEV3_INTF_Domain"
Initializing WebLogic Scripting Tool (WLST) ...
Welcome to WebLogic Server Administration Scripting Shell
Type help() for help on available commands
Problem invoking WLST - Traceback (innermost last):
File "/home/applmgr/duquesnewlst/lib/stopDomain_wlst.py", line 13, in ?
NameError: X
脚本代码:
import duquesnewlst
from stopNodeManager_wlst import stopNM
from stopServer_wlst import stopMS
domCfg = duquesnewlst.domainConfig()
# Preload security modules
domCfg.adminUser()
domCfg.bootOrder.reverse()
for (None,msName) in domCfg.bootOrder:
if X in domCfg.serversOnHost:
stopMS(msName, domCfg)
stopNM(domCfg)
答案 0 :(得分:0)
如果...中的X,应替换为...中的msName。