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 » WebSphere Message Broker (ACE) Support » How to view EventLog in shell?

Post new topic  Reply to topic
 How to view EventLog in shell? « View previous topic :: View next topic » 
Author Message
issac
PostPosted: Wed Jul 06, 2011 5:33 pm    Post subject: How to view EventLog in shell? Reply with quote

Disciple

Joined: 02 Oct 2008
Posts: 158
Location: Shanghai

Hello,

Does WMB come with any command or support pack which displays EventLogs in command line / unix shell? In our production installation of a GUI tool is quite inconvenient. Thanks!

PS> I knew how to get it done in CMP, however... is there something official about this?
_________________
Bazinga!
Back to top
View user's profile Send private message
smdavies99
PostPosted: Wed Jul 06, 2011 11:45 pm    Post subject: Re: How to view EventLog in shell? Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

issac wrote:
Hello,

Does WMB come with any command or support pack which displays EventLogs in command line / unix shell? In our production installation of a GUI tool is quite inconvenient. Thanks!

PS> I knew how to get it done in CMP, however... is there something official about this?


You didn't say what platform you are working on. But for Unix/Linux...

Code:

tail -f <path to log file>


This will work provided you have read access to the file. OOTB many Unix/Linux systems will not let mere mortal users read /var/log/messages.

This is why I recommend fixing syslog to write user messages such as broker event messages to somewhere mortals can read them. This is documented.
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
issac
PostPosted: Thu Jul 07, 2011 12:59 am    Post subject: Reply with quote

Disciple

Joined: 02 Oct 2008
Posts: 158
Location: Shanghai

Hello, thanks! but is event log identical to the syslog? I don't think so. I meant for Event Log of the WMBT.
_________________
Bazinga!
Back to top
View user's profile Send private message
smdavies99
PostPosted: Thu Jul 07, 2011 2:06 am    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

In Unix/Linux system the messages from broker that look like this
Code:

Jul  1 11:07:58 ebiz-live-esb-broker-4 WebSphere Broker v6109[9831]: [ID 702911 user.info] (TESTBKR.MY_Grp)[65]BIP2951I: Event generated by user code. Additional information : ' 'FAILED: throw a RecordNotFoundException | com.ibm.j2ca.sap.exception.SapBAPIException: Error while processing property IMaxNoHits FILEDNAME=I_MAX_NO_HITS Error Error data exceeds max length for BAPI attribute IMaxNoHits(I_MAX_NO_HITS). This exception is from SAP Request node for the Search Merchant operation' 'ERR:TBD' 'CRITICAL' '


are all handled by the 'syslod' daemon.

How this handles events is dictated by the /etc/syslog.conf (or similar) file.
The above message is a USER Message.
If the following line is in the /etc/syslogfile then all user events will be sent to the file shown below.
Code:

user.info                       /logs/mqsi/adm/wmbevent.log

In our systems this file is world readable.

Is this clearer?
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
issac
PostPosted: Thu Jul 07, 2011 6:31 am    Post subject: Reply with quote

Disciple

Joined: 02 Oct 2008
Posts: 158
Location: Shanghai

mmm.............. Thanks for it all the same. But it's not about the system log. I meant for what I see in the "Event Log" widget of WMB Toolkit. I'm trying to read contents there when there's only command line.
_________________
Bazinga!
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Thu Jul 07, 2011 6:44 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

There is a "deployment log" in the toolkit. There is also a "problems view". And a "console view". From the toolit main menu, click "Window", then mouse over "Show View".
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » How to view EventLog in shell?
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.