Verifying a server-to-server installation using the Postcard application on Windows
We can use two instances of the Postcard application to verify that a server-to-server installation is working.
Before you begin
We can use the Postcard application on two servers, one instance of the Postcard application on each server, to verify that a server-to-server installation is working. Successful sending and receiving of messages verifies that IBM MQ is successfully installed, and that communication between the two servers is working correctly. Note:
- If the system has multiple IBM MQ installations, ensure that Postcard has not been run before on any installations on that server. As the default configuration can only exist on one IBM MQ MQ installation per system, the Default Configuration wizard and Postcard can not be used for verification of a second or any subsequent installation.
- The two server installations must be on different systems to do a server-to-server verification using the postcard application. To verify a server-to-server installation on the same machine, you can use the command line.
- Make sure that TCP/IP and IBM MQ are installed on both servers.
- Make sure that your systems are able to view a graphical display.
- Make sure that you are a member of the IBM MQ administrators group ( mqm ) on each server.
- Check that one of the following scenarios applies:
- Neither server has had any queue managers created.
- Use the Default Configuration wizard to create default queue managers on each server and link them to the default cluster.
Details on how to use the Default Configuration wizard are provided in this topic.
- Both servers have existing queue managers and these queue managers are in the same cluster.
If your queue managers are not in the same cluster, create new queue managers on both servers. Then create a cluster, and ensure that the queue managers that you create on each server belong to that cluster.
- You have configured channels to communicate between the two servers.
For instructions on how to set up the channels, see Verifying a server-to-server installation using the command line on Windows. After we have set up the channels, follow the instructions in this topic to verify your server-to-server installation.
Procedure
- On the first server, log on as a user in group mqm.
- Start the postcard application in one of the following ways:
- From the command line:
- Change the directory to MQ_INSTALLATION_PATH\java\bin. MQ_INSTALLATION_PATH represents the high-level directory in which IBM MQ is installed.
- Run the postcard application by entering the following command:
postcard- From the IBM MQ Explorer: On Windows systems, we can start IBM MQ Explorer by using the system menu, the MQExplorer executable file, or the strmqcfg command.
- If the Welcome to IBM MQ Explorer Content view page does not show, click IBM MQ in the Navigator view to show the Welcome page.
- Click Launch Postcard to start the Postcard.
- At the Postcard - Sign On window, type a nickname to use to send messages within the Postcard application. For example, User1 for the first server, and User2 for the second server.
- Select the queue manager to use as the mailbox:
When your selection is complete, click OK.
- If we do not have any queue managers, you are prompted to either launch the Default Configuration or close the Postcard application. Work through the Default Configuration wizard. When you get to the option to join the queue manager to the default cluster, tick the check box. On the next screen:
- For the first server, select yes, make it the repository for the cluster.
- For the second server, select No another computer has already joined the cluster as a repository. When requested, enter the location of the repository, by typing the name of the sender server.
- If the only queue manager on your server is the default queue manager, this queue manager is used automatically for the postcard application. The default queue manager is created by running the Default Configuration wizard
- If we have created your own queue managers, but we have not run the Default Configuration wizard, select an appropriate queue manager from the list.
- If we have run the Default Configuration wizard and you want to use the default queue manager, but there are other queue managers on your server, select the Advanced check box. Then select Use Default Configuration as mailbox.
- If we have run the Default Configuration wizard and also created your own queue managers, and we do not want to use the default queue manager, select the Advanced check box. Then select Choose queue manager as mailbox, and then select the appropriate queue manager from the list.
- Select the queue manager to use as the mailbox:
When your selection is complete, click OK.
- If we do not have any queue managers, you are prompted to either launch the Default Configuration or close the Postcard application. Work through the Default Configuration wizard. When you get to the option to join the queue manager to the default cluster, tick the check box. On the next screen:
- For the first server, select yes, make it the repository for the cluster.
- For the second server, select No another computer has already joined the cluster as a repository. When requested, enter the location of the repository, by typing the name of the sender server.
- If the only queue manager on your server is the default queue manager, this queue manager is used automatically for the postcard application. The default queue manager is created by running the Default Configuration wizard
- If we have created your own queue managers, but we have not run the Default Configuration wizard, select an appropriate queue manager from the list.
- If we have run the Default Configuration wizard and you want to use the default queue manager, but there are other queue managers on your server, select the Advanced check box. Then select Use Default Configuration as mailbox.
- If we have run the Default Configuration wizard and also created your own queue managers, and we do not want to use the default queue manager, select the Advanced check box. Then select Choose queue manager as mailbox, and then select the appropriate queue manager from the list.
- Complete steps 1 - 5 for the second server.
- In the Postcard on the first server:
- Enter the nickname ( user2) for the Postcard application on the second server in the To: field.
- Enter the queue manager on the second server in the On: field.
- Type a message in the Message: field and click Send.
- In the Postcard on the second server:
The messages verify that IBM MQ is correctly installed and that your communication link between the two servers is working correctly.
- In the Postcards sent and received, double-click the message marked as received to view the message from the first server.
- Optional: Send a postcard to the first server by adapting the instructions in step 7. You must enter details of the first server in the To: field and the On: field.