These examples are based on Link. Switch to the mqm user.
su - mqm
Start the amqsput utility. This assumes the name of the local queue is QUEUE01 and the name of the manager queue is MANAGER01.
<mq install root>/samp/bin/amqsput QUEUE01 MANAGER01
Type a message, such as Hello World, and press enter twice.
The current depth of the queue should now be increased by one. The display qstatus command can be used to show the current depth of the queue. You can use the amqsbcg command to view the messages in a queue.