Listen Ports

import java
lineSeparator = java.lang.System.getProperty('line.separator')
def ListPort() :
        servers = AdminConfig.list( 'ServerEntry' ).splitlines()
        for server in servers :
            ServerName = server.split( '(', 1 )[ 0 ]
            print "System information: Server Name : " +  ServerName
 
            NamedEndPoints = AdminConfig.list( "NamedEndPoint" , server).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 "System information: Endpoint Name  : " +  endPointName + " Host : " + host + " port : " + port
 
ListPort()
Navigation
Print/export
Toolbox