WebSphere Application Server & Liberty

WebSphere Application Server & Liberty

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  how to find dmgr process id using wsadmin scripting?

    Posted Fri February 22, 2013 06:51 AM
    how to find all process id using scripting.


  • 2.  how to find dmgr process id using wsadmin scripting?

    Posted Fri February 22, 2013 02:55 PM
    wsadmin is used for managing the WAS configuration and runtime objects. The process id is assigned by the OS. I don't see how the process id will be available / determined using wsadmin.

    You will have write a shell script to get the process id. Easiest way would be to read the .pid file which will be available in the logs directory.


  • 3.  how to find dmgr process id using wsadmin scripting?

    Posted Fri February 22, 2013 07:30 PM
    I stand corrected. Thanks for the post Ralph. It does work indeed. The Server MBean does have an attribute 'pid'

    wsadmin>dmgr=AdminControl.completeObjectName("name=dmgr,type=Server,*")
    wsadmin>
    wsadmin>print dmgr
    WebSphere:name=dmgr,process=dmgr,platform=proxy,node=homenetCellManager01,j2eeType=J2EEServer,version=8.5.0.1,type=Server,mbeanIdentifier=cells/Cell01/nodes/homenetCellManager01/servers/dmgr/server.xml#Server_1,cell=Cell01,spec=1.0,processType=DeploymentManager

    wsadmin>
    wsadmin>print AdminControl.getAttribute(dmgr,'pid')
    2677
    wsadmin>


  • 4.  how to find dmgr process id using wsadmin scripting?

    Posted Fri February 22, 2013 11:52 PM
    Thank you Deepak and Ralph Swartwood,
    for sharing Dmgr pid and server pid information through wsadmin,
    deepak which you post command it's working correctly,
    Ralph i am unable to execute server pid command,
    when i type for loop it's giving error can you give some more information regarding for loop.