######
#  Print JVM Settings of all appservers, dmgr and nodeagent
#
#  Author:        Christoph Stoettner
#  Mail:          christoph.stoettner@stoeps.de
#  Documentation: http://scripting101.stoeps.de
#
#  Version:       2.0
#  Date:          2014-06-09
#
#  License:       Apache 2.0
#

#  Get a list of all servers in WAS cell (dmgr, nodeagents, AppServer, webserver)
servers = AdminTask.listServers().splitlines()
#  Get a list of all webservers
webservers = AdminTask.listServers( '[-serverType WEB_SERVER]' ).splitlines()

#  Remove webserver from servers list
for webserver in webservers:
    servers.remove( webserver )

jvmSettingsList = ['classpath', 'bootClasspath', 'verboseModeClass', 'verboseModeGarbageCollection', 'verboseModeJNI', 'initialHeapSize', 'maximumHeapSize', 'runHProf', 'hprofArguments', 'debugMode', 'debugArgs', 'genericJvmArguments', 'executableJarFileName', 'disableJIT', 'osName', 'internalClassAccessMode' ]

for server in servers:
    jvm = AdminConfig.list( 'JavaVirtualMachine', server )
    srv = server.split( '/' )
    cell = srv[1]
    node = srv[3]
    servername = srv[5].split( '|' )[0]
    print "%s - %s - %s" % ( cell, node, servername )
    for item in jvmSettingsList:
        print "\t" + item + ': \t' + AdminConfig.showAttribute( jvm, item )
        print ' '

@@ -1212,16 +1212,33 @@
 gsList:%0A
+        try:%0A    
         
@@ -1305,24 +1305,86 @@
  item )%0A    
+    except:%0A            print '%5Ct' + item + ': %5Ct read error'%0A
     print ' 

Read all jvm settings