ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General IBM MQ Support » Printing the output of "dmpmqmsg" to console.

Post new topic  Reply to topic
 Printing the output of "dmpmqmsg" to console. « View previous topic :: View next topic » 
Author Message
krypton
PostPosted: Wed Nov 14, 2018 6:16 am    Post subject: Printing the output of "dmpmqmsg" to console. Reply with quote

Disciple

Joined: 14 Mar 2010
Posts: 186

Does this command print the output to the console? I tried many options but I am only able to print to the file but not able to print to LINUX console.
Does anyone knows what will work?

/opt/mqm/bin/dmpmqmsg
5724-H72 (C) Copyright IBM Corp. 1994, 2015.
WebSphere MQ Queue Load/Unload Utility

Usage: dmpmqmsg <Optional flags as below>
[-a <File access mode for fopen()>
a Append
b Binary
[-b <initial buffer size in Kb>]
[-c Connect in client mode]
[-C [A][I][a][i][d][n] Context]
A Set all context (default)
I Set identity context
a Pass all context
i Pass identity context
d Default context
n No context
[-d <Display Options>]
a Add ASCII columns to HEX file
A Write output file in ASCII lines rather than HEX
c Output ApplData MQMD fields as char
C Display Correlation Id in summary
H Don't write file header
i Write message index
p Write output file in printable characters format
s Display queue summary
M Display Message Ids in summary
N Don't write MQMD to file
t Write output file in text lines
T Display time on queue
w<Length> Data width
[-D <Delay>]
+ve fixed delay in milliseconds
-ve random delay in milliseconds
r[time%] relative delay
[-f <File Name> or -f <stdout>]
[-F <File Name> (forcing overwrite)]
[-g [x][c][m][g] <Id> Get by Id
x Id is in Hex
m Id is Message Id
c Id is Correlation Id
g Id is Group Id
[-h Strip headers
[-i <Input Queue> (Browse)]
[-I <Input Queue> (Get)]
[-m <Queue Manager name>]
[-o <Output Queue>]
[-p Purge source queue]
[-P <CCSID>[:X'Encoding'] CodePage conversion]
[-q Quiet]
[-r <Message Range>]
x Message x only
x..y Message x to message y
x#y y messages starting at message x
#x First x messages
[-t <Transaction Message Limit>]
[-T <Time on queue (Age) selection>
[[[DD:]HH:]MM ][,[[DD:]HH:]MM]
[-s <Ascii Search String>]
[-S <Ascii Not Search String>]
[-e <Ebcdic Search String>]
[-E <Ebcdic Not Search String>]
[-w <MQGET Wait interval(seconds)]
[-x <Hex Search String>]
[-X <Hex Not Search String>]

Examples
--------
Unload a queue to a file : dmpmqmsg -iQ1 -fmyfile
Load a queue from a file : dmpmqmsg -oQ1 -fmyfile
Copy a queue from Q1 to Q2 : dmpmqmsg -iQ1 -oQ2
Move a queue from Q1 to Q2 : dmpmqmsg -IQ1 -oQ2
Move old messages from Q1 to Q2 : dmpmqmsg -IQ1 -oQ2 -T1440
Provide Summary of messages : dmpmqmsg -iQ1 -ds
_________________
Dreams are not something which you watch when you are asleep,it is something which doesn't let you sleep.
Back to top
View user's profile Send private message
Vitor
PostPosted: Wed Nov 14, 2018 6:35 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

Why would you use that rather than one of the more traditional browsing utilities / samples? Which output to the console by default?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
bruce2359
PostPosted: Wed Nov 14, 2018 6:47 am    Post subject: Re: Printing the output of "dmpmqmsg" to console. Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9394
Location: US: west coast, almost. Otherwise, enroute.

krypton wrote:
Does this command print the output to the console?

Output from control commands (issued from stdin) usually goes to stdout. Where would you rather the output go?
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
Vitor
PostPosted: Wed Nov 14, 2018 7:02 am    Post subject: Re: Printing the output of "dmpmqmsg" to console. Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

bruce2359 wrote:
krypton wrote:
Does this command print the output to the console?

Output from control commands (issued from stdin) usually goes to stdout. Where would you rather the output go?


I assumed the OP wants the "output" to go to stdout but the -o won't allow it
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
krypton
PostPosted: Wed Nov 14, 2018 9:57 am    Post subject: Re: Printing the output of "dmpmqmsg" to console. Reply with quote

Disciple

Joined: 14 Mar 2010
Posts: 186

Vitor wrote:
bruce2359 wrote:
krypton wrote:
Does this command print the output to the console?

Output from control commands (issued from stdin) usually goes to stdout. Where would you rather the output go?


I assumed the OP wants the "output" to go to stdout but the -o won't allow it


Yes, that is right. I want it to go to "stdout", but none of the display options(-d) is allowing it in this command.
_________________
Dreams are not something which you watch when you are asleep,it is something which doesn't let you sleep.
Back to top
View user's profile Send private message
bruce2359
PostPosted: Wed Nov 14, 2018 10:30 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9394
Location: US: west coast, almost. Otherwise, enroute.

Amqsbcg and other supplied variants send to stdout. After dmpmqmsg writes a file, use an o/s utility to view on stdout.
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
Vitor
PostPosted: Wed Nov 14, 2018 11:48 am    Post subject: Re: Printing the output of "dmpmqmsg" to console. Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

krypton wrote:
Vitor wrote:
bruce2359 wrote:
krypton wrote:
Does this command print the output to the console?

Output from control commands (issued from stdin) usually goes to stdout. Where would you rather the output go?


I assumed the OP wants the "output" to go to stdout but the -o won't allow it


Yes, that is right. I want it to go to "stdout", but none of the display options(-d) is allowing it in this command.


I repeat my earlier question.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Vitor
PostPosted: Wed Nov 14, 2018 11:48 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

bruce2359 wrote:
Amqsbcg and other supplied variants send to stdout. After dmpmqmsg writes a file, use an o/s utility to view on stdout.


As I said
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
tczielke
PostPosted: Wed Nov 14, 2018 2:14 pm    Post subject: Reply with quote

Guardian

Joined: 08 Jul 2010
Posts: 939
Location: Illinois, USA

You can have dmpmqmsg print the output to stdout by specifying "-f stdout".

The usage doc for dmpmqmsg documents this, too:
"[-f <File Name> or -f <stdout>]"
_________________
Working with MQ since 2010.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » Printing the output of "dmpmqmsg" to console.
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.