How do I write a script that imports and allows for use of WLST commands (Doc ID 2278208.1)

Last updated on AUGUST 21, 2017

Applies to:

Oracle WebLogic Server - Version 10.3.6 and later
Information in this document applies to any platform.

Symptoms


When trying to import a .py script that includes functions for using Node Manager commands like nmConnect, the script is failing. If the script containing the functions is run independently then the commands work.

Example function, note that this is not a complete script.



Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms