Websphere MQ Version 6.0.1.0
This post describes the installation and configuration of IBM MQ 6 (6.0.1.0) on Solaris 10 (5.10)
Important
May be installed on a global zone
OR
If installed on a non-global zone, should be installed on a whole root zone(Cannot be installed on a sparse root zone)
Installation to be done as 'root'
Steps to be followed
1. Add the group called 'mqm'
groupadd mqm
2. Add the user 'mqm' - member of group 'mqm'
useradd -g mqm -d /export/home/mqm -m mqm
3. Run the command
project -l
If no project for group 'mqm' exist, use projadd
4. untar the installer(for example C87RWML.tar)
tar -xvf C87RWML.tar
5. Run './mqlicense.sh'
Read the license and accept the same
6. run the following command
pkgadd -d. (including the dot at the end)
This displays the list of all packages
Select the option 'all'
Note: Errors like the following may be ignored
Executing post install scripts
Insufficient privilege error
YOU HAVE SUCCESSFULLY INSTALLED WEBSPHERE MQ
Runs on default port 1414
To start using MQ:
1. Configure Q Manager
crtmqm (Create MQ Manager)
crtmqm HACSTG01
2. Start MQ Manager
strmqm (Start MQ Manager)
strmqm HACSTG01
3. Start MQ Listener
runmqlsr -m HACSTG01 -t TCP &
For many other administrative tasks open the MQ Command Prompt - This is an interactive program
runmqsc HACSTG01
You can create local/ remote/ trans, etc queues using the command 'DEFINE'
DEFINE QLOCAL(IMO.NM.IN)
Using Windows based MQ Explorer to administer MQ
Create an OS user(in the group mqm) with which the explorer will connect - (for example name can be mqadmin)
This should be the same name as the Windows account using which we are running the MQ Explorer.
Create a channel using runmqsc
SRVCON -channeltype
Channel name - SYSTEM.ADMIN.SRVCONN=
This is intended to be a notepad on which I scribe the technologies and experience - that I come across daily. Something that I can refer later. And if it helps anyone on the internet, I would be really happy. Post your comments and suggestions. Also anything you would like to know about. Will try my best to post it. Anything goes - Architecture, design, Java, J2EE, Groovy, Grails, Linux, Solaris, Weblogic, IBM MQ, Networking, Security, Compliance(PCI, SAS-70)
Showing posts with label Solaris. Show all posts
Showing posts with label Solaris. Show all posts
Sunday, October 10, 2010
Friday, November 14, 2008
Finding lines of text following a text match - awk
Suppose you need to display x lines following a search condition.
For example, display the first 5 lines of trace following an Exception in Tomcat log.
If you are using Solaris/ Linux/ *nix, one way of doing it is to "awk" it.
Get the first five lines after a Keyword named "Exception". Feel free to change the keyword as required.
BEGIN {flag = 0}
/Exception/
{print;
flag = 5;
next}
flag >= 1 {print;
flag--;
next}
Use awk or nawk(if you have a long line - awk has a limitation on line length)
Run it as follows:
nawk -f checkex.awk *
Redirect to a file as follows
nawk -f checkex.awk * > output.txt
For example, display the first 5 lines of trace following an Exception in Tomcat log.
If you are using Solaris/ Linux/ *nix, one way of doing it is to "awk" it.
Get the first five lines after a Keyword named "Exception". Feel free to change the keyword as required.
BEGIN {flag = 0}
/Exception/
{print;
flag = 5;
next}
flag >= 1 {print;
flag--;
next}
Use awk or nawk(if you have a long line - awk has a limitation on line length)
Run it as follows:
nawk -f checkex.awk *
Redirect to a file as follows
nawk -f checkex.awk * > output.txt
Subscribe to:
Posts (Atom)