Ken
Ken
Thanks. I'm probably doing something wrong (being new around here) but I've been through what appears to be all posts from Feb 20 and don't see one by Mark Lewis. Could you post the URL to that thread - or at least the title so I can search for it?
Duncan
Thanks very much, there was an extra space in the URL but having removed that the script was just what I needed. In case it helps anyone else, I've translated Mark's script from JACL to Jython as follows:
# can 't use splitlines() with WAS 6.0, so break lines with split(lineSeparator)
lineSeparator = java.lang.System.getProperty( "line.separator" )
nodes=AdminConfig.list( "Node" ).split(lineSeparator)
for node in nodes:
nodeName = AdminConfig.showAttribute(node, "name" )
serverEntries = AdminConfig.list( "ServerEntry" , node).split(lineSeparator)
for serverEntry in serverEntries:
serverName = AdminConfig.showAttribute(serverEntry, "serverName" )
print
print "Node:" +nodeName+ "/Server:" +serverName
namedEndPoints = AdminConfig.list( "NamedEndPoint" , serverEntry).split(lineSeparator)
for namedEndPoint in namedEndPoints:
endPointName = AdminConfig.showAttribute(namedEndPoint, "endPointName" )
endPoint = AdminConfig.showAttribute(namedEndPoint, "endPoint" )
host = AdminConfig.showAttribute(endPoint, "host" )
port = AdminConfig.showAttribute(endPoint, "port" )
print endPointName+ ": " +host+ ":" +port
Thanks again Ken for all your help.