简体   繁体   中英

NameError: X while executing WebLogic Scripting Tool (WLST) script

I am trying to execute a wlst script as below,but have no idea why i get that error.

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

Script code:

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)

if X in ... 应替换为 if msName in ...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM