Author |
Message
|
akil |
Posted: Thu Apr 14, 2016 8:59 am Post subject: IIB9: CMP API, mqsireadlog |
|
|
 Partisan
Joined: 27 May 2014 Posts: 338 Location: Mumbai
|
Is there a CMP equivalent for mqsireadog & mqsiformatlog ?
Unable to find it in the documentation. _________________ Regards |
|
Back to top |
|
 |
mqjeff |
Posted: Thu Apr 14, 2016 10:24 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
If it's not documented, it's a reasonably good guess that you can't do it.
The CMP is not a total solution for monitoring Broker. In fact, it's not really a solution for monitoring broker. It's a set of tools for running certain kinds of config, and viewing certain kinds of things. _________________ chmod -R ugo-wx / |
|
Back to top |
|
 |
akil |
Posted: Thu Apr 14, 2016 10:36 am Post subject: |
|
|
 Partisan
Joined: 27 May 2014 Posts: 338 Location: Mumbai
|
Possibly, but there have been instances where I have missed finding it , hence the question ..
This is one command that does not run against a remote broker , so I guess it could be true that there's something magical that it does, instead of communicating with the broker like other CMP commands..
The fact that this command requires one to login to the broker's machine, is one reason why I am looking for a programmatic way to get this .. _________________ Regards |
|
Back to top |
|
 |
mqjeff |
Posted: Thu Apr 14, 2016 10:39 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
They read files off of the broker file system.
They don't read information from any of the broker processes. _________________ chmod -R ugo-wx / |
|
Back to top |
|
 |
akil |
Posted: Thu Apr 14, 2016 10:42 am Post subject: |
|
|
 Partisan
Joined: 27 May 2014 Posts: 338 Location: Mumbai
|
The documentation mentions
"f
(Optional for User trace; required for Service trace). Read the log file directly from the file system. If you do not specify this option, the command sends an XML message to the component to request the log contents. If you have specified -t (service trace), you must specify this flag as well."
I am hoping that without the -f option, there's some other thing that the command does .. _________________ Regards |
|
Back to top |
|
 |
Vitor |
Posted: Thu Apr 14, 2016 10:45 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
akil wrote: |
I am hoping that without the -f option, there's some other thing that the command does .. |
Yes:
Quote: |
If you do not specify this option, the command sends an XML message to the component to request the log contents |
_________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
akil |
Posted: Thu Apr 14, 2016 7:17 pm Post subject: |
|
|
 Partisan
Joined: 27 May 2014 Posts: 338 Location: Mumbai
|
That XML message to the component is making me hope that there is a programmatic way as well, albeit not documented .
Any ideas ? _________________ Regards |
|
Back to top |
|
 |
akil |
Posted: Sat Apr 16, 2016 1:00 am Post subject: |
|
|
 Partisan
Joined: 27 May 2014 Posts: 338 Location: Mumbai
|
Further, if I stop the Broker, the following command gives an error
iibadm@iib:~$ mqsireadlog IB9NODE -e Q -u
BIP8032E: Unable to connect to a WebSphere MQ queue.
An attempt was made to connect to the component's WebSphere MQ Queue Manager and queue, this attempt was unsuccessful.
Ensure that the components WebSphere MQ Queue Manager and queue are available, running and that the user has sufficient authority to access them.
While the the command with -f works..
So there's definitely a MQ message communication that's happening, any way to figure out what it would be ? This'll help read logs remotely.. _________________ Regards |
|
Back to top |
|
 |
|