Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1499
  • Last Modified:

WebSphere Application Server JVM log path with by wsadmin

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
sunilsagar
Asked:
sunilsagar
  • 2
1 Solution
 
HonorGodCommented:
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
 
sunilsagarAuthor Commented:
thanks so much .. it works ..
0
 
HonorGodCommented:
Great!  I'm happy to hear it.

Thanks for the grade & points.

Good luck & have a great day.
0

Featured Post

The Firewall Audit Checklist

Preparing for a firewall audit today is almost impossible.
AlgoSec, together with some of the largest global organizations and auditors, has created a checklist to follow when preparing for your firewall audit. Simplify risk mitigation while staying compliant all of the time!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now