Author |
Message
|
krypton |
Posted: Wed Nov 14, 2018 6:16 am Post subject: Printing the output of "dmpmqmsg" to console. |
|
|
 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 |
|
 |
Vitor |
Posted: Wed Nov 14, 2018 6:35 am Post subject: |
|
|
 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 |
|
 |
bruce2359 |
Posted: Wed Nov 14, 2018 6:47 am Post subject: Re: Printing the output of "dmpmqmsg" to console. |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 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 |
|
 |
Vitor |
Posted: Wed Nov 14, 2018 7:02 am Post subject: Re: Printing the output of "dmpmqmsg" to console. |
|
|
 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 |
|
 |
krypton |
Posted: Wed Nov 14, 2018 9:57 am Post subject: Re: Printing the output of "dmpmqmsg" to console. |
|
|
 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 |
|
 |
bruce2359 |
Posted: Wed Nov 14, 2018 10:30 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 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 |
|
 |
Vitor |
Posted: Wed Nov 14, 2018 11:48 am Post subject: Re: Printing the output of "dmpmqmsg" to console. |
|
|
 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 |
|
 |
Vitor |
Posted: Wed Nov 14, 2018 11:48 am Post subject: |
|
|
 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 |
|
 |
tczielke |
Posted: Wed Nov 14, 2018 2:14 pm Post subject: |
|
|
Guardian
Joined: 08 Jul 2010 Posts: 941 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 |
|
 |
|