[Linux]

Configuring the channels on Linux

To configure IBM® MQ for the example configuration on Linux®, complete the basic configuration steps for the queue manager, then configure the sender and receiver channels.

Before you begin

Before beginning the process, ensure that you have first created the mqm user ID and the mqm group, and set the password.
Start any channel using the command:
runmqchl -c channel.name

About this task

Notes:
  1. Sample programs are installed in MQ_INSTALLATION_PATH/samp, where MQ_INSTALLATION_PATH represents the high-level directory in which IBM MQ is installed.
  2. Error logs are stored in /var/mqm/qmgrs/ qmgrname /errors.
  3. When you are using the command interpreter runmqsc to enter administration commands, a + at the end of a line indicates that the next line is a continuation. Ensure that there is a space between the last parameter and the continuation character.

Procedure

  1. Setup the basic configuration:
    1. Create the queue manager and a set of default objects, from the UNIX prompt, using the command:
      crtmqm -u dlqname -q linux
      
      where:
      linux
      Is the name of the queue manager
      -q
      Indicates that this is to become the default queue manager
      -u dlqname
      Specifies the name of the dead letter queue
    2. Start the queue manager, from the UNIX prompt, using the command:
      strmqm linux
      
      where linux is the name given to the queue manager when it was created.
  2. Configure the channels for the example configuration.
    For more information about the parameters used in the following examples, see Channel configuration parameters for Linux. In each case, the example shows the MQSC command. Either start runmqsc from an Linux command line and enter each command in turn, or build the commands into a command file.
    [Windows]These examples are for connecting IBM MQ on Linux with IBM MQ on Windows. To connect to IBM MQ on another platform, use the appropriate values from the tables in Channel configuration parameters for Linux instead of the values for Windows.
    1. Define the sender channel as shown in the following examples:
      • Using SNA
        def ql (WINNT) +                                   F
            usage(xmitq) +
            replace
        
        def qr (WINNT.REMOTEQ) +                           D
            rname(WINNT.LOCALQ) +                          E
            rqmname(WINNT) +                               C
            xmitq(WINNT) +                                 F
            replace
        
        def chl (LINUX.WINNT.SNA) chltype(sdr) +           G
            trptype(lu62) +
            conname('WINNTCPIC') +                         14
            xmitq(WINNT) +                                 F
            replace
        
      • Using TCP
        def ql (WINNT) +                                   F
            usage(xmitq) +
            replace
        
        def qr (WINNT.REMOTEQ) +                           D
            rname(WINNT.LOCALQ) +                          E
            rqmname(WINNT) +                               C
            xmitq(WINNT) +                                 F
            replace
        
        def chl (LINUX.WINNT.TCP) chltype(sdr) +           H
            trptype(tcp) +
            conname(remote_tcpip_hostname) +
            xmitq(WINNT) +                                 F
            replace
        
    2. Defining the receiver channel as shown in the following examples:
      • Using SNA:
        def ql (LINUX.LOCALQ) replace                     B
        
        def chl (WINNT.LINUX.SNA) chltype(rcvr) +          I
            trptype(lu62) +
            replace
        
      • Using TCP:
        def ql (LINUX.LOCALQ) replace                     B
        
        def chl (WINNT.LINUX.TCP) chltype(rcvr) +          J
            trptype(tcp) +
            replace