Thanks for visiting the site !!! Visit below intrested Ads to support us if you like the site .Sharing is caring .keep distance and keep safe . Happy Learning ... 馃榾

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

Is the MQSC attributes are Case sensitive?

MQSC commands, including their attributes, can be written in uppercase or lowercase. Object names in MQSC commands are folded to uppercase (that is, QUEUE and queue are not differentiated), unless the names are enclosed within single quotation marks. If quotation marks are not used, the object is processed with a name in uppercase.

SCRIPT COMMANDS:-

After entering in to queue manager we can find script commands.Script commands are same for every queue manager.
(These Commands should be used in CAPITAL LETTERS) even if we type in small it uses upper case.

路 DEFINE :-To define/create MQ manager objects like queue, Channels, process, and listener.

路 ALTER :-to update or modify the existing objects

路 DISPLAY :-to view all the properties of a particular object or to Display all objects

路 DELETE :-to delete created objects

路 CLEAR :-to clear the message from the queue. If the QUEUE is in use can not clear the queue.

路 END :-to come out of the queue manager terminal

路 PING :-to check whether other side channel / queue manager is ready to accept our request.This is a kind of communication test .

路 START :- to start the particular channel or listener

路 STOP :-to stop particular channel or listener

路 REFRESH :-used to refresh the security every time after giving or executing, set mgr or command for
queue manager or object

路 RESET :-used to reset channel,cluster,queue manager

路 RESOLVE :-to resolve the channel which is in indoubt state

路 SUSPEND :-to suspend a queue manager from a cluster environment

路 RESUME :-to remove a queue manager from a cluster environment

How can we write the MQSC commands that have too many parameters?

For commands that have too many parameters to fit on one line, use continuation characters to indicate that a command is continued on the following line:

  • A minus sign ( ) indicates that the command is to be continued from the start of _ the following line.
  • A plus sign (+) indicates that the command is to be continued from the first nonblank character on the following line.

What is programmable command format (PCF) commands?

These commands are issued from a programme for local or remote administration done by programmers.

What are commands used for creating the Queue manager from the Command prompt?

crtmqm -q -d MY.DEFAULT.XMIT.QUEUE -u DEAD.LETTER.QUEUE QM1

Here -q used to define the Queue manager QM1 as a Default Queue manager

-d is used to define the default transmission Queue -u is used to define the default dead letter queue.

How can U make the existing Queue Manager as an default Queue Manager?

On Windows systems, use the Web Sphere MQ Services snap-in to display the properties of the queue manager, and check the Make queue manager the default box. You need to stop and restart the queue manager for the change to take effect.

Where are backup files present can been seen after creating the Queue Manager?

1.When you install the product, the Web Sphere MQ configuration file (mqs.ini) is created. It contains a list of queue managers that is updated each time you create or delete a queue manager. There is one mqs.ini file per node.

  1. When you create a new queue manager, a new queue manager configuration file (qm.ini) is automatically created. This contains configuration parameters for the queue manager.

What is the command used for starting the Queue Manager?

strmqm QMName

What is the command used for stopping the Queue manager?

endmqm -w QMName

The command waits until all applications have stopped and the queue manager has ended.

endmqm 鈥搃 QMName

This type of shutdown does not wait for applications to disconnect from the queue manager.

What鈥檚 the message code for Stopping a Queue Manager?

AMQ4044 Queue manager stopping

What is the command used to delete the QueueManager?

dltmqm QMName

Display the attributes of the Queue Manager QM1?

runmqsc QM1 Display qmgr

What is Queue?

A queue is a data structure used to store messages. A queue manager owns each queue. The queue manager is responsible for maintaining the queues it owns, and for storing all the messages it receives onto the appropriate queues

What is the Default max Queue depth?

5000
Types of Queues?

Local Queue Remote Queues Alias Queues

Model Queue Dynamic Queues Cluster Queues.

Queue: A safe place to store messages for Prior-To-Delivery, it belongs to the Qmgr to which the application is connected.

Model Queue: Model queue is a template of a queue definition that uses when creating a dynamic queue.

Alias Queue: Queue definition, which is Alias to an actual Local or Remote Q. Used for security and easy maintenance.

Remote Queue: Object that defines a Queue belongs to another Q Manager (Logical Def).

Initiation Queue: An initiation queue is a local queue to which the queue manager writes a trigger message when certain conditions are met on another local queue

Dynamic Queue: Such a queue is defined 鈥渙n the fly鈥 when the application needs it. Dynamic queues may be retained by the queue manager or automatically deleted when the application program ends. Use- To store intermediate results.

Cluster Queue: Custer queue is a local queue that is known throughout a cluster of queue managers.

Reply-To-Queue: A request message must contain the name of the queue into which the responding program must put the Reply Message.

Queue Manager: Provides Messaging services and manages the Queues, Channels, and Processes that belongs to it.

Alias Q Manager: Queue-manager aliases, are created using a remote-queue definition with a blank RNAME.

What are the attributes required for the Remote Queue Definition?

1.Name of the Queue 2. Transmission Queue Name.

  1. Remote QueueManager name 4. Remote Local Queue Name

How can U define Queues in MQ?

Queues are defined to Web Sphere MQ using:

  1. The MQSC command DEFINE
  2. The PCF Create Queue command

What is Transmission Queue?

Transmission queues are queues that temporarily store messages that are destined for a remote queue manager. You must define at least one transmission queue for each remote queue manager to which the local queue manager is to send messages directly.

What is Initiation Queues?

Initiation queues are queues that are used in triggering. A queue manager puts a trigger message on an initiation queue when a trigger event occurs. A trigger event is a logical combination of conditions that is detected by a queue manager.

What is Dead Letter Queue?

A dead-letter (undelivered-message) queue is a queue that stores messages that cannot be routed to their correct destinations. This occurs when, for example, the destination queue is full. The supplied dead-letter queue is called SYSTEM.DEAD.LETTER.QUEUE. For distributed queuing, define a dead-letter queue on each queue manager involved.

How can u create a Transmission Queue from a local Queue?

Change the usage attribute from normal to Transmission . usage(xmitq) need to set in the local queue.

Define a Local Queue LQ using the MQSC Commands in the QM QM1

runmqsc QM1

Define qlocal (LQ)

What are the Difference B/W Predefined & Dynamic Queues?

Queues can be characterised by the way they are created:

  1. Predefined queues are created by an administrator using the appropriate MQSC or PCF commands. Predefined queues are permanent; they exist independently of the applications that use them and survive Web Sphere MQ restarts.

2 Dynamic queues are created when an application issues an MQOPEN request specifying the name of a model queue. The queue created is based on a template queue definition, which is called a model queue.

What is the Algorithm followed in retrieving the Messages from the Queue?

1.First-in-first-out (FIFO).

2.Message priority, as defined in the message descriptor. Messages that have the same priority are retrieved on a FIFO basis.

  1. A program request for a specific message.

What is Process Definition and what are the attributes does it contain?

A process definition object defines an application that starts in response to a trigger event on a WebSphere MQ queue manager. The process definition attributes include the application ID, the application type, and data specific to the application.
What is intercommunication and its components to send message ?

What is Intercommunication?

In Web Sphere MQ, intercommunication means sending messages from one Queue manager to another. The receiving queue manager could be on the same machine or another; nearby or on the other side of the world. It could be running on the same platform as the local queue manager, or could be on any of the platforms supported by Web Sphere MQ. This is called a distributed environment.

Message channels Message channel agents

Transmission queues Channel initiators and listeners

Channel-exit programs

Related Posts

Leave a Reply

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