java - How do I import AdminControl in WebSphere's jython? -


when running websphere's jython i'm not able call admincontrol command

jython 2.1 on java1.6.0 (jit: j9jit26) type "copyright", "credits" or "license" more information. >>> cellname = admincontrol.getcell() traceback (innermost last):   file "<console>", line 1, in ? nameerror: admincontrol 

i haven't seen ibm or elsewhere indicates admincontrol needs imported i'm not sure why above doesn't work.

notes
websphere 8.5
i'm running jython command:

"$was_8_5_home"/java/jre/bin/java.exe -jar "$was_8_5_home"/optionallibraries/jython/jython.jar 

you can't. admincontrol object backed internal type, , registered wsadmin when starts. way use via wsadmin -lang jython (possibly -f script.py).


Comments