Saturday, September 14, 2013

Weblogic Shell (wlsh)

wlsh is third party tool that provides access to weblogic server mbeans, similarly to WLST. wlsh is not recommended by BEA, but it is mentioned in their training materials. Users are encouraged by BEA to use the inferior WLST tool which was written by a BEA employee, but is still not supported by BEA.
The tool can be downloaded from http://www.wlshell.net/v2/index.html
That site also provides documentation.

Environment

wlsh uses log4j, so to start it, you must add log4j and wlshell to your classpath.
pitblade:II:root: > set | grep -i class
CLASSPATH=/dsk2/local/bea81/jdk141_02/lib/tools.jar:
/dsk2/local/bea81/weblogic81/server/lib/weblogic_sp.jar:
/dsk2/local/bea81/weblogic81/server/lib/weblogic.jar:
/dsk2/local/bea81/weblogic81/server/lib/ojdbc14.jar::
/dsk1/AdvIngres/ing26/ingres/lib/edbc.jar:
/dsk1/AdvIngres/ing26/ingres/lib/edbc.jar:
/home/rday/wlst.jar:/home/rday/jython.jar:
/home/rday/wlshell-2.0.2.jar:
/home/rday/logging-log4j-1.2.13/dist/lib/log4j-1.2.13.jar
Also, if you wish to use the gui components of wlshell, you should use xhost to allow connections from the weblogic server machine and set your DISPLAY variable appropriately before starting wlshell.

Invocation

Invoke the tool with this command:
pitblade:II:root: > java wlshell.Main

  wlshell, a shell for BEA WebLogic Server. Version 2.0.2
  by Paco Gomez (c) 2002 - 2004. www.wlshell.com

  type "help" for a list of commands

wlsh [not connected]>

Connect


wlsh [not connected]> connect pitblade user password
connecting to t3://pitblade as admin...done

connection information:
- the server name is "myserver" and belongs to "mydomain" domain
- this server is running as the administration server
- the shell is accessing all MBeans in this domain
- the server version is:
WebLogic Server 8.1  Thu Mar 20 23:06:05 PST 2003 246620
WebLogic XMLX Module 8.1  Thu Mar 20 23:06:05 PST 2003 246620
- see /ServerRuntime/myserver for more runtime information.

connected to myserver*

Searching for MBeans in myserver...done
- Domains: [JMImplementation, Security, WeblogicManagement, mydomain, weblogic]
- Types:   87
- MBeans:  1009

accessing jndi@myserver...done

No comments:

Post a Comment