0 Replies Latest reply: Dec 4, 2012 6:30 AM by BillS13087422 RSS

    wlst obiee restart .py script errors when cmd line; ok if type cmds

    BillS13087422
      I pulled the scripts that are posted at http://obiee101.blogspot.com/2011/08/obiee-wlst-useful-scripts.html to automate some admin tasks. I downloaded and installed the zip version of wl s106_dev on my desktop. When I start wlst from command line and type commands they work just fine. When I try to run them from the cmd line as "java weblogic.WLST RestartOBI.py" I get error message shown below...???

      Thanks

      ------------script start---------------------

      connect('weblogic','welcome1','t3://obi5.mnapps.state.mn.us:7101',adminServerName='AdminServer');

      print 'Connecting to Domain ...'
      try:
      domainCustom()
      except:
      print 'Already in domainCustom'
      cd('..\..')
      print 'Go to biee admin domain'
      cd('oracle.biee.admin')

      print 'Go to coreapplication_obips1 Mbean'
      cd('oracle.biee.admin:oracleInstance=EPM91TD,type=BIDomain.BIInstanceDeployment.BIComponent,biInstance=coreapplication,process=coreapplication_obis1,group=Service')
      ------------script end---------------------

      ---works fine if it start wlst and type commands
      when runing "java weblogic.WLST RestartOBI.py"

      -----------------------------output from command line execution--------------------------
      Welcome to WebLogic Server Administration Scripting Shell

      Type help() for help on available commands

      Error: No domain or domain template has been read.
      Connecting to Domain ...

      You will need to be connected to a running server to execute this command

      Go to biee admin domain
      Error: No domain or domain template has been read.
      Go to coreapplication_obips1 Mbean

      --------------------------------------------------------------------------------
      Thanks