Products Resources Support About Us

Rocket Software

IBM MQ connection using Telnet for Universe DB

We have set the IBM MQ and its running with MQ manager. Trying to run CallMQI api and receiving error code = “2”. Hence trying to correct the connection using Telnet on Ubuntu/Linux.But facing problem in how to start the Telnet services?

Ubuntu telnet services are part of the Linux kernel packages:

(install)

sudo apt-get install telnetd -y

(check the status)

sudo systemctl status inetd

root@ubuntu:/temp# sudo systemctl status inetd
● inetd.service - Internet superserver
Loaded: loaded (/lib/systemd/system/inetd.service; enabled; vendor preset: en
Active: active (running) since Wed 2020-01-29 09:38:06 PST; 3 weeks 0 days ag
Docs: man:inetd(8)
Main PID: 76801 (inetd)
Tasks: 1 (limit: 4646)
CGroup: /system.slice/inetd.service
└─76801 /usr/sbin/inetd

Jan 29 09:38:06 ubuntu systemd[1]: inetd.service: Service hold-off time over, sc
Jan 29 09:38:06 ubuntu systemd[1]: inetd.service: Scheduled restart job, restart
Jan 29 09:38:06 ubuntu systemd[1]: Stopped Internet superserver.
Jan 29 09:38:06 ubuntu systemd[1]: Starting Internet superserver…
Jan 29 09:38:06 ubuntu systemd[1]: Started Internet superserver.
root@ubuntu:/temp#

You should now be able to use TELNET (firewalls permitting) , though you could also use SSH if wished.

In UniVerse 12 there’s an internal ‘uvdb’ user which needs access to MQ. In my tests I have done something similar to this:

usermod -a -G mqm uvdb

#runmqsc my.queue.manager
SET AUTHREC OBJTYPE(QMGR) PRINCIPAL(‘uvdb’) AUTHADD(CONNECT)
SET AUTHREC PROFILE(QUEUE1) OBJTYPE(QUEUE) PRINCIPAL(‘uvdb’) AUTHADD(PUT,GET)
SET CHLAUTH(CHANNEL1) TYPE(ADDRESSMAP) ADDRESS(‘192.168.194.139’) MCAUSER(‘uvdb’)