Performing operations on running objects using the wsadmin tool

Why and when to perform this task

Steps for this task

  1. Invoke the AdminContol object commands interactively, in a script, or use the wsadmin -c command from an operating system command prompt.
  2. Obtain the object name of the running object with the following command:

    Using Jacl:

    $AdminControl completeObjectName name

    where:
    $ is a Jacl operator for substituting a variable name with its value
    AdminControl is an object that enables the manipulation of MBeans running in a WebSphere server process
    completeObjectName is an AdminControl command
    name is a fragment of the object name. It is used to find the matching object name. For example: type=Server,name=serv1,*. It can be any valid combination of domain and key properties. For example, type, name, cell, node, process, etc.


  3. Issue the following command:

    Using Jacl:

    set s1 [$AdminControl completeObjectName type=Server,name=server1,*]

    where:
    set is a Jacl command
    s1 is a variable name
    $ is a Jacl operator for substituting a variable name with its value
    AdminControl is an object that enables the manipulation of MBeans running in a WebSphere server process
    completeObjectName is an AdminControl command
    type is the object name property key
    Server is the name of the object
    name is the object name property key
    server1 is the name of the server where the operation will be invoked


  4. Invoke the operation with the following command:

    Using Jacl:

    $AdminControl invoke $s1 stop

    where:
    $ is a Jacl operator for substituting a variable name with its value
    AdminControl is an object that enables the manipulation of MBeans running in a WebSphere server process
    invoke is an AdminControl command
    s1 is the ID of the server specified in step number 3
    stop is an operation to be invoked on the server


Example

Using Jacl:

set traceServ [$AdminControl completeObjectName type=TraceService,process=server1,*]
$AdminControl invoke $traceServ appendTraceString "com.ibm.ws.management.*=all=enabled"




Searchable topic ID:   txml_invokerunobj
Last updated: Jun 21, 2007 4:12:58 PM CDT    WebSphere Application Server Express, Version 5.0.2
http://publib.boulder.ibm.com/infocenter/wasinfo/index.jsp?topic=/com.ibm.websphere.exp.doc/info/exp/ae/txml_invokerunobj.html

Library | Support | Terms of Use | Feedback