BPMListServers command
Traditional:
This command lists all the Workflow Server instances
that are federated into Workflow Center.
Use the BPMListServers command in connected mode from the Workflow Center server. It has no parameters, and returns a list of Workflow Server instances.
The BPMListServers command is run using the AdminTask object of the wsadmin scripting client.
Prerequisites
Note: In an environment with
multiple security domains configured, use the PALService MBean instead
of this wsadmin command. See The Process Application LifeCycle (PAL) MBean.
The following conditions must be met:
- Run the command in the connected mode; that is,
do not use the wsadmin
-conntype noneoption. - In a network deployment environment, you must run this command on the node containing the application cluster member that handles Workflow Server or Workflow Center applications. Do not run this command from the deployment manager profile.
- Note: If you are using a SOAP connection, the command can take longer to complete than the specified SOAP timeout value. Although the command continues to run until it is finished, you might see the exception java.net.SocketTimeoutException: Read timed out. To prevent this exception, set a higher value for the com.ibm.SOAP.requestTimeout property in the profile_root/properties/soap.client.props file.
Location
Start the wsadmin scripting client from the profile_root/bin directory.
Syntax
BPMListServers
Parameters
The command has no parameters.
Example
The following example illustrates how to list all federated Workflow Server instances for a workflow center. In the example, the user establishes a SOAP connection to the Workflow Center server.

Important: In a network
deployment environment, use the port configured for the application
cluster member that runs the Workflow Server or Workflow Center applications.
To determine the correct port number, see the WebSphere administrative
console Ports collection page (click and find the value for SOAP_CONNECTOR_ADDRESS).
wsadmin -conntype SOAP -port 8880 -host ProcessCenterServer01.mycompany.com -user admin -password admin -lang jython
AdminTask.BPMListServers()The output is a list
of servers that contains the following information.
Name:serverName
URL:URLIt looks similar to the following
example.Name:TEST_SERVER_1
URL:corbaname:iiop:server1.mycompany.com:2816
Name:TEST_SERVER_2
URL:corbaname:iiop:server2.mycompany.com:2816