Solved

WebSphere Application Server JVM log path with by wsadmin

Posted on 2012-04-04
3
1,287 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
SCCM Issues 2 61
Best Automatic build tool 3 92
SBS 2011 on HP Proliant ML 310 Gen8 can not promote to a Domaincontroller , 10 77
UAC Issues 8 97
Convert websphere application server default chained Certificates from 1024 to 2048 keysize or higher size and also you can change signatureAlgorithm . Please make sure Websphere Application Server fixpack 7.0.0.23 or Above. The following steps a…
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 Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.

911 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

15 Experts available now in Live!

Get 1:1 Help Now