print "CellName,NodeName,ClusterName,ServerName,host,portRMI,portWeb" clusters = AdminConfig.list('ServerCluster').splitlines() for cluster in clusters : ClusterName = cluster.split( '(', 1 )[ 0 ] servers = AdminConfig.list('ClusterMember', cluster).splitlines() for server in servers : ServerName = server.split( '(', 1 )[ 0 ] ServerId = AdminConfig.getid('/ServerEntry:'+ServerName+'/') CellName = ServerId.split( '/' )[ 1 ] NodeName = ServerId.split( '/' )[ 3 ].split('|',1)[0] NamedEndPoints = AdminConfig.list('NamedEndPoint', ServerId).splitlines() for namedEndPoint in NamedEndPoints: endPointName = AdminConfig.showAttribute(namedEndPoint, "endPointName" ) endPoint = AdminConfig.showAttribute(namedEndPoint, "endPoint" ) if endPointName=='WC_defaulthost': portWeb = AdminConfig.showAttribute(endPoint, "port" ) if endPointName=='BOOTSTRAP_ADDRESS': host = AdminConfig.showAttribute(endPoint, "host" ) portRMI = AdminConfig.showAttribute(endPoint, "port" ) print CellName+","+NodeName+","+ClusterName+","+ServerName+","+host+","+portRMI+","+portWeb