Solved

WebSphere Application Server JVM log path with by wsadmin

Posted on 2012-04-04
3
1,268 Views
Last Modified: 2012-04-12
Is it possible to find the JVM log path for all the JVMs, nodeagent and DMGR using wsadmin script.

If yes I want to find the path separately  for :

JVMs
DMGR
NodeAgent

Thanks .
0
Comment
Question by:sunilsagar
  • 2
3 Comments
 
LVL 41

Accepted Solution

by:
HonorGod earned 500 total points
ID: 37810514
Something like this perhaps?

wsadmin>for server in AdminConfig.list( 'Server' ).splitlines() :
wsadmin>    log = AdminConfig.list( 'TraceLog', server )
wsadmin>    name = AdminConfig.showAttribute( server, 'name' )
wsadmin>    logfile = AdminConfig.showAttribute( log, 'fileName' )
wsadmin>    print '%10s %s' % ( name, logfile )
wsadmin>
      dmgr ${LOG_ROOT}/dmgr/trace.log
 nodeagent ${LOG_ROOT}/${SERVER}/trace.log
   server1 ${SERVER_LOG_ROOT}/trace.log
wsadmin>

Open in new window

0
 

Author Closing Comment

by:sunilsagar
ID: 37837736
thanks so much .. it works ..
0
 
LVL 41

Expert Comment

by:HonorGod
ID: 37839268
Great!  I'm happy to hear it.

Thanks for the grade & points.

Good luck & have a great day.
0

Featured Post

Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

Join & Write a Comment

Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now