Each time after I had started my queue manager with strmqm, my client program was getting
MQCONN failed with CompCode:2, Reason:2538 MQRC_HOST_NOT_AVAILABLE
This was because my listener was not started.
I got fed up with using strtmq then using runmqsc to issue START LISTENER …
I found, to get it to start when the queue manager starts, use the command
ALTER LISTENER(SYSTEM.DEFAULT.LISTENER.TCP) trptype(TCP) control(QMGR)
The doc says for control(QMGR)
The listener being defined is to be started and stopped at the same time as the queue manager is started and stopped.
The default is Manual!
Easy when you know how!