Wednesday, December 11, 2013

wsadmin List Server Port Details jython

servers = AdminConfig.list( 'ServerEntry' ).splitlines()
for server in servers :
    print '\n'
    print "Server Name : " +  server[0:server.find('(')]
    print "=" *30
    NamedEndPoints = AdminConfig.list( "NamedEndPoint" , server).splitlines()
    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 "Endpoint Name  : " +  endPointName + " Host : " + host + " port : " + port



 


No comments:

Post a Comment

Your suggestions please