A system administrator has created a Python script called globalScript. py.
What should the administrator do to ensure globalScript. py is loaded when the wsadmin shell is
used?
A.
Compile globalScript.py to a Java class in the bin directory.
B.
Invoke wsadmin with the argument-profileName globalScript.py.
C.
Modify the configureCustomProperty script to import globalScript. py.
D.
D. Set the script profiles in the wsadmin.properties file to load globalScript .py.
D
0
0
#————————————————————————-
# The profiles property is a list of profiles to be run before
# running user commands, scripts, or an interactive shell.
# securityProcs is included here by default to make security
# configuration easier.
#————————————————————————-
com.ibm.ws.scripting.profiles=/opt/IBM/WebSphere/AppServer/bin/securityProcs.py;/opt/IBM/WebSphere/AppServer/bin/LTPA_LDAPSecurityProcs.py;/home/localuser/scriptLibrary/WASscriptingImports.py
0
0
D
wsadmin.properties has this entry com.ibm.ws.scripting.profiles where we can add the scripting files to be loaded
https://www-01.ibm.com/support/knowledgecenter/SSAW57_8.5.5/com.ibm.websphere.nd.doc/ae/rxml_propscript.html
0
0