Wednesday, August 29, 2012

MQSeries 7: Journal

http://publib.boulder.ibm.com/infocenter/ieduasst/v1r1m0/index.jsp?topic=/com.ibm.iea.wmq_v7/wmq/7.0.1/Details/iea_701_120_multi_instancei/player.html
http://publib.boulder.ibm.com/infocenter/wmqv7/v7r0/index.jsp?topic=%2Fcom.ibm.mq.amqzag.doc%2Ffa70162_.htm
http://publib.boulder.ibm.com/infocenter/wmqv7/v7r0/topic/com.ibm.mq.amqzag.doc/fa70154_.htm
/var/mqm/mqs.ini
AllQueueManagers:
   #********************************************************************#
   #* The path to the qmgrs directory, below which queue manager data  *#
   #* is stored                                                        *#
   #********************************************************************#
   DefaultPrefix=/var/mqm
LogDefaults:
   LogDefaultPath=/var/mqm/log
QueueManager:
   Name=QMANAGER1
   Prefix=/var/mqm
   Directory=QMANAGER1
   DataPath=/var/mqm/share/qmgrs/QMANAGER1
$ pwd
/var/mqm/share/qmgrs/QMANAGER1
$ cat qm.ini
#*******************************************************************#
#* Module Name: qm.ini                                             *#
#* Type       : WebSphere MQ queue manager configuration file      *#
#  Function   : Define the configuration of a single queue manager *#
#*                                                                 *#
#*******************************************************************#
#* Notes      :                                                    *#
#* 1) This file defines the configuration of the queue manager     *#
#*                                                                 *#
#*******************************************************************#
ExitPath:
   ExitsDefaultPath=/var/mqm/exits/
   ExitsDefaultPath64=/var/mqm/exits64/
#*                                                                 *#
#*                                                                 *#
Log:
   LogPrimaryFiles=31
   LogSecondaryFiles=21
   LogFilePages=32000
   LogType=LINEAR
   LogBufferPages=0
   LogPath=/var/mqm/share/log/QMANAGER1/
   LogWriteIntegrity=TripleWrite
Service:
   Name=AuthorizationService
   EntryPoints=13
ServiceComponent:
   Service=AuthorizationService
   Name=MQSeries.UNIX.auth.service
   Module=/opt/mqm/lib64/amqzfu
   ComponentDataSize=0
CHANNELS:
  MaxChannels = 1000
TuningParameters:   
     FileLockHeartBeatLen=30
$

Logs
$ pwd
/var/mqm/share/qmgrs/QMANAGER1/errors
$ ls
AMQERR01.LOG  AMQERR02.LOG  AMQERR03.LOG


$ pwd
/var/mqm/share/qmgrs/QMANAGER1
$ ls -l
total 38
drwxrwsr-x+  2 mqm      mqm           96 Sep  9  2010 @ipcc
-rw-rw-rw-   1 mqm      mqm           34 Aug 28 10:02 active
-rw-r-----   1 mqm      mqm           56 Aug 28 10:02 amqalchk.fil
drwxrws---+  2 mqm      mqm           96 Sep  9  2010 authinfo
drwxrws---+  2 mqm      mqm         1024 Jul 30 12:48 channel
drwxrws---+  2 mqm      mqm         1024 Jul 30 13:36 clntconn
drwxrws---+  2 mqm      mqm           96 Aug 28 09:57 errors
drwxrws---+  2 mqm      mqm           96 Feb  6  2012 listener
-rw-rw-rw-   1 mqm      mqm           34 Aug 28 10:02 master
drwxrws---+  2 mqm      mqm         1024 Sep  9  2010 namelist
drwxrwsr-x+  2 mqm      mqm           96 Sep  9  2010 plugcomp
drwxrws---+  2 mqm      mqm           96 Sep  9  2010 procdef
-rw-r-----   1 mqm      mqm         1390 Aug 28 09:46 qm.ini
-rw-r-----   1 mqm      mqm         1340 Aug 28 09:41 qm.ini.20120828
drwxrws---+  2 mqm      mqm           96 Sep  9  2010 qmanager
-rw-r-----   1 mqm      mqm          693 Aug 28 10:02 qmstatus.ini
drwxrws---+ 93 mqm      mqm         4096 Aug 14 16:26 queues
drwxrwx---+  2 mqm      mqm         1024 Jul 31 08:39 scratch
drwxrws---+  2 mqm      mqm           96 Sep  9  2010 services
drwxrwsr-x+  2 mqm      mqm         1024 Jul 18 15:46 ssl
-rw-rw-rw-   1 mqm      mqm           34 Aug 28 10:03 standby
drwxrwsr-x+  2 mqm      mqm           96 Aug 28 10:03 startprm
drwxrws---+  2 mqm      mqm         1024 Sep  9  2010 topic
$ cat qmstatus.ini
AuthorityData:
   Creator=mqm
QueueManagerStatus:
   CurrentStatus=Running
   PermitStandby=Yes
   PermitFailover=Yes
   PlatformSignature=8195
   PlatformString=SunOS 5.10
ManagedSets:
   QMANAGER1/@ipcc.IPCCPSet=41097
   QMANAGER1/@ipcc.IPCCP64S=914176
   QMANAGER1/@qmgr.ZDMPipe=7677
   QMANAGER1/@qmgr.OAMshmem=33134
   QMANAGER1/@qmgr.OAMPipe=11704
   QMANAGER1/@qmgr.KernelSet=5591856
   QMANAGER1/@qmgr.TopicSet=663808
   QMANAGER1/@qmgr.SelectorSet=560
   QMANAGER1/@qmgr.ObjectCatalogue=1979280
   QMANAGER1/@qmgr.QueueSessionSegment=3526888
   QMANAGER1/@qmgr.TransactionSessionSegment=194004
GhostPools:
   SYSTEM.DEFAULT.MODEL.QUEUE=3
   SYSTEM.MQEXPLORER.REPLY.MODEL=3

$ dspmq -x -m QMANAGER1
QMNAME(QMANAGER1)                                        STATUS(Running)
    INSTANCE(cipgwuatmq01) MODE(Active)
    INSTANCE(cipgwuatmq02) MODE(Standby)
$endmqm


root@artmqserver1:/root/MQ/bin:# cat restart-QMGR.sh
#!/bin/sh
if [ $# != 2 ]; then
echo "Usage: $0 <QMGR name> <port>"
exit 1
fi
QMGR=$1
PORT=$2
endmqm -p $QMGR
endmqlsr -m $QMGR
strmqm $QMGR
nohup runmqlsr -t tcp -p ${PORT} -m ${QMGR} >/dev/null 2>&1 &

amqiclen -x -m QMGR

runmqsc QMGR
 --> display channel(*)
end to quit runmqsc
crtmqm -lc  -lp 5 -ls 3 -u DEAD.LETTER.QUEUE  -ld /var/mqm/share/log -md /var/mqm/share/qmgrs W
RAP.DEV.QMGR01
addmqinf -s QueueManager -v Name=WRAP.DEV.QMGR01 -v Directory=WRAP\!DEV\!QMGR01 -v Prefix=/var/
mqm -v DataPath=/var/mqm/share/qmgrs/WRAP\!DEV\!QMGR01
strmqm -x WRAP.DEV.QMGR01

cat /usr/bin/runmqm
cat /var/run/.run_mq

gsk7cmd -cert -list -db key.kdb -pw passw0rd
gsk7cmd -cert -add -label WSMQM -file /tmp/cert.pem -db key.kdb -pw <your password>-trust
gsk7cmd -cert -add -label WSMQM -file /tmp/cert.pem -db key.kdb -pw <your password>-trust yes
gsk7cmd -cert -add -label WSMQM -file /tmp/cert.pem -db key.kdb -pw <your password>-trust true
gsk7cmd
gsk7cmd -cert -add
vi /tmp/ca.pem
gsk7cmd -cert -add -label FRB -file /tmp/ca.pem -db key.kdb -pw <your password>-trust true
gsk7cmd -cert -add -label FRB -file /tmp/ca.pem -db key.kdb -pw <your password>
vi /tmp/ca.pem
gsk7cmd -cert -add -label FRB -file /tmp/ca.pem -db key.kdb -pw <your password>
gsk7cmd -cert -add -label WSMQM -file /tmp/cert.pem -db key.kdb -pw <your password>
gsk7cmd -cert -list -db key.kdb -pw password
gsk7cmd -cert -list -db key.kdb -pw passw0rd
gsk7cmd -cert -details -label ibmwebspheremqQMANAGER1 -db key.kdb -pw passw0rd
endmqm -i QMANAGER1
endmqm -i QMANAGER1
export JAVA_HOME=/opt/mqm/ssl
cd /var/mqm/share/qmgrs/
keytool
keytool -list -keystore key.kdb -storpass passw0rd
keytool -list -keystore key.kdb -storepass passw0rd
keytool -list -keystore key.kdb -storepass <your password>-stoetype CMS
keytool -list -keystore key.kdb -storepass <your password>-storetype CMS
keytool -list -keystore key.kdb -storepass <your password>-storetype JMS
exit

/etc/inittab
mq0:3:respawn:/usr/bin/runmqm > /dev/null 2>&1 #Autostart MQ Multi-Instance Monitor
#mq2:3:respawn:/usr/bin/runmqlsr -t tcp -p 1415 -m QMANAGER1 >/dev/null 2>&1  #Autostart MQ Listner


below is NFS Veritas Cluster Configuration for MQ multiple instances fail over.
group MQnfsSG (
        SystemList = { cipgwuat2ap1 = 0, cipgwuat2ap2 = 1 }
        AutoStartList = { cipgwuat2ap1 }
        )
        Application NFSApp (
                StartProgram = "/apps/cluster/NFSOnline"
                StopProgram = "/apps/cluster/NFSOffline"
                MonitorProgram = "/apps/cluster/NFSmonitor"
                )
        IP MQnfsIP (
                Device = ce0
                Address = "10.115.199.42"
                NetMask = "255.255.255.0"
                )
        requires group CIPG_DATA online local firm
        MQnfsIP requires NFSApp

No comments:

Post a Comment