TOP IBM MQ Interview Question’s and Answer’s Part4

Sequence number wrap?

This is the highest number the message sequence number reaches before it restarts at 1.
The value of the number should be high enough to avoid a number being reissued while it is still being used by an earlier message. The two ends of a channel must have the same sequence number wrap value when a channel starts up; otherwise, an error occurs.
The value may be set from 100 through 999 999 999

Difference between Full & Partial Repository?

Full repository: This will contains all the information of Cluster QMgrs and other objects.
Partial repository: This will Contains the information of that particular Qmgr and Other instances for communication.

Where do we find the cluster information?

We have one Queue i.e SYSTEM.CLUSTER.REPOSITORY.QUEUE, in that all the cluster info will stored

What does contain in Auto define channel?

It contains channel name, port No. and Ip address That are mentioned in the Receiver channel

What is the backup Queue of the QMGR?

Dead letter queue

How you set Authentication?

Using SETMQAUT, this is used assign permissions to the user
SETMQAUT -M QMname -n objname -t objtype -p principle/-g group +all
dmpmqaut -m qmname -n objectname -t objecttype -p user to display set of all users given permission on the object
dspmqaut —— to display set of all the permission for the user on the object

Will you give permission only for USER or GROUP, if GROUP why?

We can assign permissions to user and if you want assign permissions to group also.if asign permissions to group that are assign all the user who are under that group.
Difference between Receiver & Requester channel?
requester and reciver are same except that the reuqesters can starts the sender from requester side.

Why do we go clustering?

we have so many advantages using cluster
1.administration task will be redused
2.work load balancing
3.increase resource utilization
4.high availability

Components of the cluster?

Clussend and clusrcvr channels
SYSTEM.CLUSTER.REPOSITORY.QUEUE
SYSTEM.CLUSTER.COMMAND.QUEUE
SYSTEM.CLUSTER.TANSMISSION.QUEUE (Please do not disable the put or get attribute on cluster)

Which types of Logs are using in your Organization?

Depending upon client requirement we are using both linear and circular loggings

How you check the Status of the Queue?

dis qs(qname) type(handle)

Default path of the Error logs & Transaction Logs?

In windows:\Program files\IBM/Web spear MQ\Log\ Qmgrs\active
C:\Program file\IBM\Web spear MQ\Qmgrs\QMname\Errors
In Unix:/var/mqm/log/Qmgrs/active
/var/mqm/Qmgrs/Qmname/errors

What is the use of PROBID in Fdc?

Using ProbID: we can find the solution in IBM info center, If before anybody face that problem, otherwise we will rise PMR(problem management report) and it will contains Application name, major error, minor error and so on..

Difference stopping status of QMGRs?

End immediately, End abnormally, ended normally

How do you enable the Trigger?

we need to set some properties on queue’s
Trigger on
Trigtype (First/every/depth)
Trigdepth
Trigdata(chalname)
initq()


How to Suspend a Qmgr from the cluster?
Suspend qmgr cluster (clusname)

How to add existing Qmgr into the cluster?

If you add it as full repository, you need to add repos keyword to Qm, and create one clussdr and clusrcvr channels, add cluster attributes to other objects
If you want to add it as partial repository, create clusrcvr channel to that QM and a clussdr to a queue manager in full repository and set cluster attribute to objects

What is the use of alias queue?

This queue is act as reference queue to local, remote and cluster queue’s.
the advantage of alias queue is

  1. Hide the details of reference queue to clients.
  2. used for follow the naming conventions,
  3. Provide different levels of access.

Why do we give ‘Conname’ at Receiver Channel side in Cluster?

In cluster sdr channels are auto generated, based on the receiver channel attributes only the sdr channel will generated

How can you install all the Packages in Linux at a time?

rpm -ivh name of the packages with spaces

Tell me the process of installation on Windows and Linux?

on linux
df -k df -h to check the disk space
rpm (redhat package manager)
Create mqm userid and make mqm as its primary group.
the installation directory for mqm are opt/mqm
the working data is stored in var/mqm
./mqlicense.sh -accept — to accept the license
then run the commands to install all the packages required. rpm -ivh packagename
rpm -ivh ( i- install v- verbose h- hash format)
to check the packages installed rpm -qa ! grep mq
ps -ef | grep mq to end all the processes.

Differences between persistent and non persistent messages?

  1. Persistent msg’s are important, at any cost those must be deliver to destination QM,if any problem occur Those are placed in Xmitq or in DLQ.
  2. Nonpersistent msg’s are not important; if any problem occurs those are discarded.

How many Qmgrs are in your current project?

Nearly 100.

How do you convert linear to circular?

we don’t have that type of operation if you want to change,

  1. First stop the channels
  2. Stop the Qmgr
  3. Take the back up of qmanager using save queue manager
  4. Delete the Qmgr
  5. Recreate it with linear logging
  6. Recreate all the queue definitions and give the permission to the queues

How many applications connect to your current project?

Display conn(*)
Reason codes for 2033, 2053, 2085, 2035, 2537…
2033: Msg not available
2053: Q full
2085: unknown obj name
2035: Not authorized
2537: channel not available
2016 (07E0) (RC2016): MQRC_GET_INHIBITED
2030 (07EE) (RC2030): MQRC_MSG_TOO_BIG_FOR_Q
2031 (07EF) (RC2031): MQRC_MSG_TOO_BIG_FOR_Q_MGR
2042 (07FA) (RC2042): MQRC_OBJECT_IN_USE
2051 (0803) (RC2051): MQRC_PUT_INHIBITED
2057 (0809) (RC2057): MQRC_Q_TYPE_ERROR
2058 (080A) (RC2058): MQRC_Q_MGR_NAME_ERROR
2059 (080B) (RC2059): MQRC_Q_MGR_NOT_AVAILABLE

What are the errors we can get at the time of installation?

  1. user is not a member of mqm group.
  2. Some mq series processes are running while installing.

How do you connect MQ Client to MQ Server?

we have three types options for connecting client to server
1.MQCONNX
2.MQSERVER
3.Clientchannel tab

Qmgr attributes?

DEADQ,REPOS(),REPOSNL(),CLWLUSEQ(),MAXHANDS(),MAXPRTY()

What is listener and port?

Listener is a program running continuously listening for request msg from sdr
Port:unique entry point for a QManager

Where the configuration information stores on Linux and windows?

in windows it is stored at registry. in linux it is stored in mqs.ini file.

What is the difference between qm.ini and mqs.ini file?

A queue manager configuration file, qm.ini, contains information relevant to a specific queue manager. There is one queue manager configuration file for each queue manager. The qm.ini file is automatically created when the queue manager with which it is associated is created.
The WebSphere® MQ configuration file, mqs.ini, contains information relevant to all the queue managers on a WebSphere MQ installation. It is created automatically during installation. In particular, the mqs.ini file is used to locate the data associated with each queue manager

Difference between upgradation and migration?

An “upgrade” generally refers to an enhanced version of the software
if you migrate from a previous version of WebSphere MQ for Linux, you must uninstall your current version before installing WebSphere MQ Version

Which tool you use to connect with Linux and mainframes?

putty to connect to linux.
telnet or ssh to connect to mainframes.

How many channels we can create in Distribution Queuing for a Qmgr?

One sender and receiver channel
If you create 100 channels for a Qmgr… How can you create 101 Channel?
Normal way like:Define chl(chlname) chltype(type) conname(Ip&port)

How can you recover the damaged object and its syntax?

using media recovery we can recreate damaged objects
rcrmqobj -m Qmname -t objtype -n objname

Channel attributes?

chltype(), discint(), batchhb(), trptype(), maxmsgl(), xmitq(), conname(), rqmname()

Different status of channel?

initializing, binding, retrying, running, inactive, stopped, paused

Why do we go for MQ Client?

. No need for a full WebSphere MQ implementation on the client machine.
. Hardware requirements on the client system are reduced.
. System administration requirements are reduced.
. Application running on a client can connect to multiple queue managers on different systems.
. Alternative channels using different transmission protocols can be used
. Reduce the burden on other clients

Differences between MQI and MSG Channels?

MQI channels are used between MQ client and MQ sever, those are bi-directional
Types: server connection channel
Client connection channel
MSG channels are uni-directional, and used between QM

  • Sender
  • Receiver
  • Cluster sender
  • cluster receiver
  • server
  • Client
  • requester

Default objects in Cluster?

SYSTEM.CLUSTER.REPOSITORY.QUEUE
SYSTEM.CLUSTER.COMMAND.QUEUE
SYSTEM.CLUSTER.TRANSMISSION.QUEUE
Queues and channels.

Difference between Dead-Letter Header and Handler?

if msg’a are come to DLQ, QM will add dead letter header to msg,it contains reason for failure, destination queue and QM details such type of info’n
using dead letter handler you pick the msg’s from DLQ placed it in destination queue

What is sync point?

This is nothing but unit of work in two phase commit

What is the command to check the disk space on Linux?

df -k ,df -h

Which command we use to check the installed packages on Linux?

rpm -qa | grep mq

Command to kill the process on Linux?

$ ps ux ———-to list all the processes.
$ kill -9 Pid ————-to kill particular process…

Do you run the runmqdlq program every time?

Depending upon the messages those are coming to the DLQ.
How can you check the listener port is running from your desktop?
NETSTAT -a
What is the use of telnet, ping and tracert?
ping is used to check the status of remote channel.
telnet is used for remote access of another system.
it shows path taken to reach a particular destination over a network.

How can you connect to remote server from your desktop?

Using MSTSC

What are the attributes of workload balance?

Defbind(notfixed)
put()
clwluseq(local/any/QMGR)
clwlrank(0-9)
clwlprty(0-9)
clwlwght()
clwlmruse()

What are the pre-requisites for MQ before install?

  1. Hardware requirements—-disk space
  2. Software requirements—-o/s specifications

How can we take the Qmgr backup?

  • create the backup queue manager
  • copy the data and log files from your primary queue manager over the backup queue manager’s data and logs
  • flag backup qmgr as a backup and replay log extents (strmqm -r)
  • periodically copy over the log files prior to the CURRLOG value from the queue manager
    saveqmgr -m MQ_BACKUP -r MQ_C1_01 -f MQ_C1_01.txt

Error log file name?

error log file name is:AMQERR01,AMQERR02,AMQERR03

What is the use of client channel tables?

Using client channel table we can connect with different QM’s and different clients will connect to single QM

How many max channels can connect to a Qmgr?

The default for maximum channels is 100 for qmgr. it can be set to higher in the qm.ini.

How can you find the max channels are connected to a Qmgr?

dis qmstatus conns

Channel components?

chltype() conname() trptype() xmitq() batchsz() hbint()

What is the use of trig data in channel?

which channel you want to start up at trigger event fired. Provide channel name

What does initiation queue contain?

This will contains trigger massage generated by QM

How can we check whether the Qmgr contain Dead-latter queue or not?

DIS QMGR DEADQ(*)

How many servers, Qmgrs in your environment?

100 servers. 400 qmgrs. be genuine

Which programs you use for running the trigger monitor when you use your own initiation queue?(in application and channel triggering)

In application triggering we are using RUNMQTRM
in channel RUNMQCHI INITQ()

What is the default size of /var /mqm and /opt /mqm?

Allow 130 MB as a minimum for a WebSphere MQ server and 15 MB as a minimum for a WebSphere MQ client.
x-86 201 mb iseries -183

What is the difference between Control & Runmqsc Commands?

RUNMQSC commands are used with in Qm for creating Qm objects and altering QMGR.
CONTROL commands are used for creating starting and running QM, and for set authentication …

In Cluster for Round-Robin process defbind (open) what is happen?

if you set defbind open, all msg’s are placed where the first msg is place

What is difference between distribution and clustering?

in distributions queing we have to create more no of objects like remoteqs. transmission ques and sender, reciever channels for every remote queue manager.
in clustering we can logically connect queue managers with the creation of less no.of qmgr objects .

Why we go for clustering?

1.simplifying system administration
2.work load management
3.less no of qm objects like rqd, channels.
4.high availability


In cluster we have 4 Qmgrs and having same instance in all Qmgrs I have to send messages to a particular Qmgr then how u configure?


assign clwlrank and clwlprty for particular queue.

ssl address following important security considerations.
1.authantication
2.confidentiality
3.integrity
to install and configure ssl we need

  1. a server certificate key store.
  2. an https connector

Which key u r using in SSL?

symmetric key— secret keys
Asymmetric key———-public private key pairs

What may be reasons for getting channel is in retrying state?

  1. if other side receiver channel is not defined
  2. may channel was not started

What are the reasons for getting messages in dead letter queue?

1.if queue is full

  1. Queue put inhibited.
  2. 3.Mag’s length is exceeded

What happen to messages (persistence& non persistence) if destination queue is full if there is no dead letter queue?

PERSISTENT: if queue is full, msg are coming back to xmitq and channel will be going to retrying state.
NON-PERSISTENT: That type of msg’s are discarded.

What is channel state in above case?

retrying

Tel me some system default queues?

1.SYSTEM.DEFAULT.ALIAS.QUEUE
2.SYSTEM.DEFAULT.INITIATIONS.QUEUE
3.SYSTEM.DEFAULT.LOCAL.QUEUE
4.SYSTEM.DEFAULT.MODELS.QUEUE
5.SYSTEM.DEFAULT.REMOTE..QUEUE

can we define remote queue definition without XMITQ? is it working?

we can define remote queue defination without XMITQ,but XMITQ name should be remote Queue manager name.

can we take the backup from XMIT queue massages?

when you are trying to get the backup of xmit queue massages,it will store error information the file. i.e 2016=MQRC_GET_INHIBITED.

How to take backup of massages from queue?

amqbcg Qname QMname > E:/mq

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *