Functions required for setting up and controlling channels
A number of IBM MQ functions might be needed to set up and control channels. The channel functions are explained in this topic.
We can create a channel definition using the default values supplied by IBM MQ, specifying the name of the channel, the type of channel we are creating, the communication method to be used, the transmission queue name and the connection name.
The channel name must be the same at both ends of the channel, and unique within the network. However, we must restrict the characters used to those that are valid for IBM MQ object names.
For other channel related functions, see the following topics:- Getting started with objects
- Create associated objects
- Create default objects
- Create a channel
- Display a channel
- Display channel status
- Check links using Ping
- Starting a channel
- Stopping a channel
- Renaming a channel
- Resetting a channel
- Resolving in-doubt messages on a channel
Table 1 shows the full list of IBM MQ functions that you might need.
Function | Control commands | MQSC | IBM MQ Explorer equivalent? |
---|---|---|---|
Queue manager functions | |||
Change queue manager | ALTER QMGR | Yes | |
Create queue manager | crtmqm | Yes | |
Delete queue manager | dltmqm | Yes | |
Display queue manager | DISPLAY QMGR | Yes | |
End queue manager | endmqm | Yes | |
Ping queue manager | PING QMGR | No | |
Start queue manager | strmqm | Yes | |
Command server functions | |||
Display command server | dspmqcsv | No | |
End command server | endmqcsv | No | |
Start command server | strmqcsv | No | |
Queue functions | |||
Change queue | ALTER QALIAS ALTER QLOCAL ALTER QMODEL ALTER QREMOTE
See, ALTER queues. |
Yes | |
Clear queue | CLEAR QLOCAL | Yes | |
Create queue | DEFINE QALIAS DEFINE QLOCAL DEFINE QMODEL DEFINE QREMOTE
See, DEFINE queues. |
Yes | |
Delete queue | DELETE QALIAS DELETE QLOCAL DELETE QMODEL DELETE QREMOTE
See, DELETE queues. |
Yes | |
Display queue | DISPLAY QUEUE | Yes | |
Process functions | |||
Change process | ALTER PROCESS | Yes | |
Create process | DEFINE PROCESS | Yes | |
Delete process | DELETE PROCESS | Yes | |
Display process | DISPLAY PROCESS | Yes | |
Channel functions | |||
Change channel | ALTER CHANNEL | Yes | |
Create channel | DEFINE CHANNEL | Yes | |
Delete channel | DELETE CHANNEL | Yes | |
Display channel | DISPLAY CHANNEL | Yes | |
Display channel status | DISPLAY CHSTATUS | Yes | |
End channel | STOP CHANNEL | Yes | |
Ping channel | PING CHANNEL | Yes | |
Reset channel | RESET CHANNEL | Yes | |
Resolve channel | RESOLVE CHANNEL | Yes | |
Run channel | runmqchl | START CHANNEL | Yes |
Run channel initiator | runmqchi | START CHINIT | No |
Run listener 1 | runmqlsr | START LISTENER | No |
End listener |
endmqlsr, on the following
platforms only:
|
No |
- A listener might be started automatically when the queue manager starts.
Parent topic: Monitor and control channels on UNIX, Linux, and Windows