Wednesday, March 22, 2017

Display List Of Websphere Servers using Jython script


To display the list of servers in Websphere Application Server Jython is using AdminTask object.

The AdminTask,listServers will list down the servers. The server type is the parameter passed to list down different types of servers.

To list the Websphere Application Servers
AdminTask.listServers('[-serverType APPLICATION_SERVER]')

To list the Websphere Web Servers
AdminTask.listServers('[-serverType WEB_SERVER]')

To list the Websphere Proxy Servers
AdminTask.listServers('[-serverType PROXY_SERVER]')

To list the Websphere Liberty Servers
AdminTask.listServers('[-serverType LIBERTY_SERVER]')

To list the Websphere on-demand routers
AdminTask.listServers('[-serverType ONDEMAND_ROUTER]')

To list the Websphere PHP servers
AdminTask.listServers('[-serverType PHP_SERVER]')







How to find the WAS Console Port Details from the Server

In WAS Server go to the below path <WebSphere Installation Path>/Profiles/<Dmgr profile name>/logs You can see the below fi...