Creating the IBM MQ Connection server connection channel


Following the installation of the MVMM  (MVMM ) product, you may create the MainView Middleware Administrator (MVMM ) IBM MQ Connection for a queue manager for any queue manager that exists in the  object repository.  

MVMA

You may also create a IBM MQ Connection whenever a new queue manager is discovered and added to the MVMM  object repository.  This occurs after distribution and installation of an agent or creation of a new queue manager on a machine with an existing agent.

You create a IBM MQ Connection so that you can perform administration of that queue manager. See Working-with-queue-managers-queues-and-channels.

Before deciding on the method to use to create the server connection channel IBM MQ connection, review this topic to familiarize yourself with the channel options and methods available to you.

Connection channel options

A queue manager in MVMAis represented as a IBM MQ Connection, which contains the necessary information to connect to the queue manager as a client. MVMM can assist in creating the IBM MQ Connections as agent and IBM MQ extension packages are deployed and configured or immediately after an upgrade for existing installations. The following configurations are supported:

MVMM monitoring with local agent

In this setup, MVMA uses its own server connection channel to connect to the queue manager and you can set up channel authentication. MVMM  has a local bindings connection to the queue manager.

MVMM agentless monitoring with separate channels

In this setup, MVMM  uses its own server connection channel to connect to the queue manager and you can set up channel authentication. MVMM has a local bindings connection to the queue manager.

agentlessSeperateChannel.png

MVMM agentless monitoring with shared channel

In this setup, each connection to the queue manager uses its own server connection channel, which enables you to restrict connections to those from Host A or Host B, respectively.

Because each channel can specify different authentication, BMC recommends this configuration when MVMM uses an agentless configuration on the queue manager host server.

Multi-instance queue managers

IBM defines multi-instance queue managers as instances of the same queue manager configured on different servers. One instance of the queue manager is defined as the active instance and another instance is defined as the standby instance. All instances of a multi-instance queue manager can be identified by the same queue manager identifier, or qmid.

There are two ways to multi-instance queue managers can be handled in MVMM . The first is to have an agent and extension for each queue manager instance. In this case, each queue manager instance of the same name will exist under a different agent in the MVMM hierarchy. If you are using an agentless configuration, the connection string may be specified such that the IBM MQ extension connects to the active queue manager instance. In this case, there is a single agent and queue manager hierarchy representing all the queue manager instances.

By default, MVMM  will collate by queue manager identifier and create a single MVMM  IBM MQ Connection representing all the queue manager instances. When this occurs the name of the IBM MQ Connection is the queue manager identifier and the connection string consists of all known host names and MVMM  will connect to the active queue manager instance. You can override this behavior by setting the collate_by_qmid=false keyword under the [Admin] stanza in services.cfg. When doing so, the IBM MQ Connection will be created using the standard convention of the agent name concatenated with the queue manager name separated by an underscore. Each IBM MQ Connection represents a single queue manager instance and therefore will only successfully connect if it is the active instance.

Listener port determination and channel definitions

Each queue manager that MVMM  manages requires a channel listener, server connection channel and channel authentication records. When MVMM creates the MVMM  IBM MQ Connection it can also create the channel listener, server connection channel and channel authentication records based on the inputs provided to a policy action, dialog or mqtool utility. If the replace option is specified, any existing listeners and channels are stopped and deleted prior to being recreated. Corresponding channel authority records are also removed. 

A channel listener specifies the TCP port to which TMVMM  will connect to as a MQ client. This port must be exclusively used by a single queue manager. If a specific port is specified it is assumed a channel listener already exists and specifies that port. On z/OS this is the only option allowed. You would also use this option when using an external listener such as inetd or runmqlsr. An alternative is to specify a range of ports to try. However, prior to using a port from the port range, if a TCP listener already exists then that port is used. If other queue managers exist, listeners from accessible queue managers are examined and any of those ports are excluded from the port range specified. Additionally, a port scan is performed and if any ports are found to be listening, those ports are also excluded. If any ports remain, the first one available remaining in the range is used and a listener with the name MVMA.LISTENER is created. Using a port range is recommended for policies or when using mqtool options that match multiple queue managers on the same agent machine since an exclusive port must be determined.

A channel is created with the name specified. You should consider company naming standards when choosing a name. Channel authority records are set for this channel. Any channel authority records with wildcards that apply to multiple channel are not altered. If a user is specified, the channel authority records for the created channel are defined to allow access only to that user from the MVMM host machine by default. If no user is specified the channel authority records for the created channel are defined to allow access only from the MVMM  host machine by default. If you specify an ip address input, it overrides the default of the MVMM host machine. Make sure you include the MVMM host IP address in the IP address input. Note this field may contain the same values as the channel authority record allows so it can be a wildcarded IP address.

The queue manager is altered via an API that uses PCF or by a single mqsc script. When using a mqsc script you may specify additional channel values as a single string when specifying the inputs. For example, you might specify the channel description or set some additional security settings. If additional security settings are specified you may need to manually make corresponding changes to the MVMM IBM MQ Connection. 

If you do not wish MVMM to modify your queue manager you can use mqtool to define the mqsc script that would be applied. You can then modify as required and apply the mqsc script yourself either using mqtool or runmqsc. For details about these and other mqtool commands, see Managing integration with MainView Middleware Administrator with the CLI 

If you alter the channel definitions directly, make sure to change your policy action to not replace existing definitions so the channel is not accidentally reverted back to its original settings. Additionally, if using mqtool or the dialog, do not select the checkbox to replace the definition.

Supported methods to define the server connection channel and MVMA IBM MQ Connection

The following table describes the methods, and the benefits of each method, that you can use to configure the connection. 


Synchronization

MVMM  may periodically synchronize with MVMA and will add or remove MVMAIBM MQ Connections to correspond with the queue managers that exist in the MVMM  object repository. By default, synchronization is enabled and occurs every five minutes. See Managing integration with MainView Middleware Administrator with the CLI to change the synchronization interval. An interval of 0 will disable synchronization. A MVMA IBM MQ Connection will only be created if inputs have been defined by one of the methods above. However, if the server connection channel has not yet been created it will not do so, and one of the methods above should be used. You may notice a IBM MQ Connection in this state if it fails when you test the connection from within the MVMAconsole or the Object Repository tab of the MVMM  Management Console. 

Obtaining information about your MQ environment

You can use the following commands in the mqtool utility to display some MQ information that is useful for defining the server conn channel. For details about these and other mqtool commands, see Managing integration with MainView Middleware Administrator with the CLI.

  • --list-listeners
  • --list-srvrconn-channels
  • --list-chlauth
  •  --list-qm-authrec

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*