Warning: Cannot modify header information - headers already sent by (output started at /data/web/virtuals/85063/virtual/www/domains/waldauf.org/lib/plugins/color/syntax.php:1) in /data/web/virtuals/85063/virtual/www/domains/waldauf.org/inc/actions.php on line 180
sw:websphere:listenports - WiKi

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