Anda di halaman 1dari 6

[root@HOSTA Desktop]# dspmq

[root@HOSTA Desktop]# crtmqm QM2


WebSphere MQ queue manager created.
Directory '/var/mqm/qmgrs/QM2.000' created.
Creating or replacing default objects for QM2.
Default objects statistics : 65 created. 0 replaced. 0 failed.
Completing setup.
Setup completed.
[root@HOSTA Desktop]# strmqm QM2
WebSphere MQ queue manager 'QM2' starting.
5 log records accessed on queue manager 'QM2' during the log replay phase.
Log replay for queue manager 'QM2' complete.
Transaction manager state recovered for queue manager 'QM2'.
WebSphere MQ queue manager 'QM2' started.
[root@HOSTA Desktop]# runmqsc QM2
5724-H72 (C) Copyright IBM Corp. 1994, 2009. ALL RIGHTS RESERVED.
Starting MQSC for queue manager QM2.
define qalias(AQ) target(LQ)
1 : define qalias(AQ) target(LQ)
AMQ8006: WebSphere MQ queue created.
define qlocal(LQ) ?
2 : define qlocal(LQ) ?
AMQ8427: Valid syntax for the MQSC command:
DEFINE QLOCAL( q_name )
[ BOQNAME( string ) ]
[ BOTHRESH( integer ) ]
[ CLUSNL( namelist_name ) ]
[ CLUSTER( cluster_name ) ]
[ DEFBIND( NOTFIXED | OPEN ) ]
[ DEFPRESP( SYNC | ASYNC ) ]
[ DEFPRTY( integer ) ]
[ DEFPSIST( YES | NO ) ]
[ DEFREADA( NO | YES | DISABLED ) ]
[ DESCR( string ) ]
[ DEFSOPT( EXCL | SHARED ) ]
[ DISTL( YES | NO ) ]
[ GET( ENABLED | DISABLED ) ]
[ INITQ( string ) ]
[ LIKE( qlocal_name ) ]
[ MAXDEPTH( integer ) ]
[ MAXMSGL( integer ) ]
[ MSGDLVSQ( PRIORITY | FIFO ) ]
[ HARDENBO | NOHARDENBO ]
[ REPLACE | NOREPLACE ]
[ SHARE | NOSHARE ]
[ TRIGGER | NOTRIGGER ]
[ PROCESS( string ) ]
[ PUT( ENABLED | DISABLED ) ]
[ PROPCTL( COMPAT | NONE | ALL | FORCE ) ]
[ QDEPTHHI( integer ) ]
[ QDEPTHLO( integer ) ]
[ QDPHIEV( ENABLED | DISABLED ) ]
[ QDPLOEV( ENABLED | DISABLED ) ]
[ QDPMAXEV( ENABLED | DISABLED ) ]
[ QSVCIEV( NONE | HIGH | OK ) ]
[ QSVCINT( integer ) ]
[ RETINTVL( integer ) ]
[ SCOPE( QMGR | CELL ) ]
[ TRIGDATA( string ) ]
[ TRIGDPTH( integer ) ]
[ TRIGMPRI( integer ) ]
[ TRIGTYPE( FIRST | EVERY | DEPTH | NONE ) ]
[ USAGE( NORMAL | XMITQ ) ]
[ NPMCLASS( NORMAL | HIGH ) ]
[ STATQ( QMGR | ON | OFF ) ]
[ ACCTQ( QMGR | ON | OFF ) ]
[ MONQ( OFF | QMGR | LOW | MEDIUM | HIGH ) ]
[ CLWLRANK( integer ) ]
[ CLWLPRTY( integer ) ]
[ CLWLUSEQ( LOCAL | ANY | QMGR ) ]
define qlocal(LQ) trigger(trigger) trigtype(every) initq(IQ) process(gedit)
3 : define qlocal(LQ) trigger(trigger) trigtype(every) initq(IQ) process(ge
dit)
AMQ8405: Syntax error detected at or near end of command segment below:-

define qlocal(LQ) trigger(


AMQ8427: Valid syntax for the MQSC command:
DEFINE QLOCAL( q_name )
[ BOQNAME( string ) ]
[ BOTHRESH( integer ) ]
[ CLUSNL( namelist_name ) ]
[ CLUSTER( cluster_name ) ]
[ DEFBIND( NOTFIXED | OPEN ) ]
[ DEFPRESP( SYNC | ASYNC ) ]
[ DEFPRTY( integer ) ]
[ DEFPSIST( YES | NO ) ]
[ DEFREADA( NO | YES | DISABLED ) ]
[ DESCR( string ) ]
[ DEFSOPT( EXCL | SHARED ) ]
[ DISTL( YES | NO ) ]
[ GET( ENABLED | DISABLED ) ]
[ INITQ( string ) ]
[ LIKE( qlocal_name ) ]
[ MAXDEPTH( integer ) ]
[ MAXMSGL( integer ) ]
[ MSGDLVSQ( PRIORITY | FIFO ) ]
[ HARDENBO | NOHARDENBO ]
[ REPLACE | NOREPLACE ]
[ SHARE | NOSHARE ]
[ TRIGGER | NOTRIGGER ]
[ PROCESS( string ) ]
[ PUT( ENABLED | DISABLED ) ]
[ PROPCTL( COMPAT | NONE | ALL | FORCE ) ]
[ QDEPTHHI( integer ) ]
[ QDEPTHLO( integer ) ]
[ QDPHIEV( ENABLED | DISABLED ) ]
[ QDPLOEV( ENABLED | DISABLED ) ]
[ QDPMAXEV( ENABLED | DISABLED ) ]
[ QSVCIEV( NONE | HIGH | OK ) ]
[ QSVCINT( integer ) ]
[ RETINTVL( integer ) ]
[ SCOPE( QMGR | CELL ) ]
[ TRIGDATA( string ) ]
[ TRIGDPTH( integer ) ]
[ TRIGMPRI( integer ) ]
[ TRIGTYPE( FIRST | EVERY | DEPTH | NONE ) ]
[ USAGE( NORMAL | XMITQ ) ]
[ NPMCLASS( NORMAL | HIGH ) ]
[ STATQ( QMGR | ON | OFF ) ]
[ ACCTQ( QMGR | ON | OFF ) ]
[ MONQ( OFF | QMGR | LOW | MEDIUM | HIGH ) ]
[ CLWLRANK( integer ) ]
[ CLWLPRTY( integer ) ]
[ CLWLUSEQ( LOCAL | ANY | QMGR ) ]
define qlocal(LQ) trigger(trigger) trigtype(every) initq(IQ) process(gedit)
4 : define qlocal(LQ) trigger(trigger) trigtype(every) initq(IQ) process(ge
dit)
AMQ8405: Syntax error detected at or near end of command segment below:define qlocal(LQ) trigger(
AMQ8427: Valid syntax for the MQSC command:
DEFINE QLOCAL( q_name )
[ BOQNAME( string ) ]
[ BOTHRESH( integer ) ]
[ CLUSNL( namelist_name ) ]
[ CLUSTER( cluster_name ) ]
[ DEFBIND( NOTFIXED | OPEN ) ]
[ DEFPRESP( SYNC | ASYNC ) ]
[ DEFPRTY( integer ) ]
[ DEFPSIST( YES | NO ) ]
[ DEFREADA( NO | YES | DISABLED ) ]
[ DESCR( string ) ]
[ DEFSOPT( EXCL | SHARED ) ]
[ DISTL( YES | NO ) ]
[ GET( ENABLED | DISABLED ) ]
[ INITQ( string ) ]
[ LIKE( qlocal_name ) ]
[ MAXDEPTH( integer ) ]
[ MAXMSGL( integer ) ]
[ MSGDLVSQ( PRIORITY | FIFO ) ]
[ HARDENBO | NOHARDENBO ]
[ REPLACE | NOREPLACE ]
[ SHARE | NOSHARE ]
[ TRIGGER | NOTRIGGER ]
[ PROCESS( string ) ]
[ PUT( ENABLED | DISABLED ) ]
[ PROPCTL( COMPAT | NONE | ALL | FORCE ) ]
[ QDEPTHHI( integer ) ]
[ QDEPTHLO( integer ) ]
[ QDPHIEV( ENABLED | DISABLED ) ]
[ QDPLOEV( ENABLED | DISABLED ) ]
[ QDPMAXEV( ENABLED | DISABLED ) ]
[ QSVCIEV( NONE | HIGH | OK ) ]
[ QSVCINT( integer ) ]
[ RETINTVL( integer ) ]
[ SCOPE( QMGR | CELL ) ]
[ TRIGDATA( string ) ]
[ TRIGDPTH( integer ) ]
[ TRIGMPRI( integer ) ]
[ TRIGTYPE( FIRST | EVERY | DEPTH | NONE ) ]

[
[
[
[
[

USAGE( NORMAL | XMITQ ) ]


[ NPMCLASS( NORMAL | HIGH ) ]
STATQ( QMGR | ON | OFF ) ]
[ ACCTQ( QMGR | ON | OFF ) ]
MONQ( OFF | QMGR | LOW | MEDIUM | HIGH ) ]
CLWLRANK( integer ) ]
[ CLWLPRTY( integer ) ]
CLWLUSEQ( LOCAL | ANY | QMGR ) ]

define qlocal(LQ) trigger() trigtype(every) initq(IQ) process(gedit)


5 : define qlocal(LQ) trigger() trigtype(every) initq(IQ) process(gedit)
AMQ8405: Syntax error detected at or near end of command segment below:define qlocal(LQ) trigger(
AMQ8427: Valid syntax for the MQSC command:
DEFINE QLOCAL( q_name )
[ BOQNAME( string ) ]
[ BOTHRESH( integer ) ]
[ CLUSNL( namelist_name ) ]
[ CLUSTER( cluster_name ) ]
[ DEFBIND( NOTFIXED | OPEN ) ]
[ DEFPRESP( SYNC | ASYNC ) ]
[ DEFPRTY( integer ) ]
[ DEFPSIST( YES | NO ) ]
[ DEFREADA( NO | YES | DISABLED ) ]
[ DESCR( string ) ]
[ DEFSOPT( EXCL | SHARED ) ]
[ DISTL( YES | NO ) ]
[ GET( ENABLED | DISABLED ) ]
[ INITQ( string ) ]
[ LIKE( qlocal_name ) ]
[ MAXDEPTH( integer ) ]
[ MAXMSGL( integer ) ]
[ MSGDLVSQ( PRIORITY | FIFO ) ]
[ HARDENBO | NOHARDENBO ]
[ REPLACE | NOREPLACE ]
[ SHARE | NOSHARE ]
[ TRIGGER | NOTRIGGER ]
[ PROCESS( string ) ]
[ PUT( ENABLED | DISABLED ) ]
[ PROPCTL( COMPAT | NONE | ALL | FORCE ) ]
[ QDEPTHHI( integer ) ]
[ QDEPTHLO( integer ) ]
[ QDPHIEV( ENABLED | DISABLED ) ]
[ QDPLOEV( ENABLED | DISABLED ) ]
[ QDPMAXEV( ENABLED | DISABLED ) ]
[ QSVCIEV( NONE | HIGH | OK ) ]
[ QSVCINT( integer ) ]
[ RETINTVL( integer ) ]
[ SCOPE( QMGR | CELL ) ]
[ TRIGDATA( string ) ]
[ TRIGDPTH( integer ) ]
[ TRIGMPRI( integer ) ]
[ TRIGTYPE( FIRST | EVERY | DEPTH | NONE ) ]
[ USAGE( NORMAL | XMITQ ) ]
[ NPMCLASS( NORMAL | HIGH ) ]
[ STATQ( QMGR | ON | OFF ) ]
[ ACCTQ( QMGR | ON | OFF ) ]
[ MONQ( OFF | QMGR | LOW | MEDIUM | HIGH ) ]
[ CLWLRANK( integer ) ]
[ CLWLPRTY( integer ) ]
[ CLWLUSEQ( LOCAL | ANY | QMGR ) ]
define qlocal(LQ) trigger trigtype(every) initq(IQ) process(gedit)
6 : define qlocal(LQ) trigger trigtype(every) initq(IQ) process(gedit)
AMQ8006: WebSphere MQ queue created.
define
7 : define
AMQ8405: Syntax error detected at or near end of command segment below:define
AMQ8426: Valid MQSC commands are:
DEFINE
DEFINE
DEFINE
DEFINE
DEFINE
DEFINE
DEFINE
DEFINE
DEFINE
DEFINE

AUTHINFO
CHANNEL
PROCESS
NAMELIST
QALIAS
QLOCAL
QMODEL
QREMOTE
SERVICE
LISTENER

DEFINE TOPIC
DEFINE SUB
define qlocal(IQ) ?
8 : define qlocal(IQ) ?
AMQ8427: Valid syntax for the MQSC command:
DEFINE QLOCAL( q_name )
[ BOQNAME( string ) ]
[ BOTHRESH( integer ) ]
[ CLUSNL( namelist_name ) ]
[ CLUSTER( cluster_name ) ]
[ DEFBIND( NOTFIXED | OPEN ) ]
[ DEFPRESP( SYNC | ASYNC ) ]
[ DEFPRTY( integer ) ]
[ DEFPSIST( YES | NO ) ]
[ DEFREADA( NO | YES | DISABLED ) ]
[ DESCR( string ) ]
[ DEFSOPT( EXCL | SHARED ) ]
[ DISTL( YES | NO ) ]
[ GET( ENABLED | DISABLED ) ]
[ INITQ( string ) ]
[ LIKE( qlocal_name ) ]
[ MAXDEPTH( integer ) ]
[ MAXMSGL( integer ) ]
[ MSGDLVSQ( PRIORITY | FIFO ) ]
[ HARDENBO | NOHARDENBO ]
[ REPLACE | NOREPLACE ]
[ SHARE | NOSHARE ]
[ TRIGGER | NOTRIGGER ]
[ PROCESS( string ) ]
[ PUT( ENABLED | DISABLED ) ]
[ PROPCTL( COMPAT | NONE | ALL | FORCE ) ]
[ QDEPTHHI( integer ) ]
[ QDEPTHLO( integer ) ]
[ QDPHIEV( ENABLED | DISABLED ) ]
[ QDPLOEV( ENABLED | DISABLED ) ]
[ QDPMAXEV( ENABLED | DISABLED ) ]
[ QSVCIEV( NONE | HIGH | OK ) ]
[ QSVCINT( integer ) ]
[ RETINTVL( integer ) ]
[ SCOPE( QMGR | CELL ) ]
[ TRIGDATA( string ) ]
[ TRIGDPTH( integer ) ]
[ TRIGMPRI( integer ) ]
[ TRIGTYPE( FIRST | EVERY | DEPTH | NONE ) ]
[ USAGE( NORMAL | XMITQ ) ]
[ NPMCLASS( NORMAL | HIGH ) ]
[ STATQ( QMGR | ON | OFF ) ]
[ ACCTQ( QMGR | ON | OFF ) ]
[ MONQ( OFF | QMGR | LOW | MEDIUM | HIGH ) ]
[ CLWLRANK( integer ) ]
[ CLWLPRTY( integer ) ]
[ CLWLUSEQ( LOCAL | ANY | QMGR ) ]
define qlocal(IQ) process(gedit)
9 : define qlocal(IQ) process(gedit)
AMQ8006: WebSphere MQ queue created.
define listener(L1) ?
10 : define listener(L1) ?
AMQ8427: Valid syntax for the MQSC command:
DEFINE LISTENER( listener_name )
TRPTYPE( TCP )
define listener(L1) trptype(tcp) port(1502)
11 : define listener(L1) trptype(tcp) port(1502)
AMQ8626: WebSphere MQ listener created.
:
:
define channel(RCVR) ?
12 : define channel(RCVR) ?
AMQ8427: Valid syntax for the MQSC command:
DEFINE CHANNEL( channel_name )
CHLTYPE( SDR | SVR | RCVR | RQSTR | CLNTCONN | SVRCONN | CLUSSDR | CLUSRCVR )
define channel(TO.QM2) chltype(rcvr)
13 : define channel(TO.QM2) chltype(rcvr)

AMQ8014: WebSphere MQ channel created.


define
14 : define
AMQ8405: Syntax error detected at or near end of command segment below:define
AMQ8426: Valid MQSC commands are:
DEFINE AUTHINFO
DEFINE CHANNEL
DEFINE PROCESS
DEFINE NAMELIST
DEFINE QALIAS
DEFINE QLOCAL
DEFINE QMODEL
DEFINE QREMOTE
DEFINE SERVICE
DEFINE LISTENER
DEFINE TOPIC
DEFINE SUB
define process?
15 : define process?
AMQ8427: Valid syntax for the MQSC command:
DEFINE PROCESS( process_name )
[ APPLICID( string ) ]
[ APPLTYPE( CICS | DEF | DOS | OS2 | UNIX | WINDOWS | WINDOWSNT |
NOTESAGENT | OS400 | integer ) ]
[ DESCR( string ) ]
[ ENVRDATA( string ) ]
[ LIKE( process_name ) ]
[ REPLACE | NOREPLACE ]
[ USERDATA( string ) ]
define process(PD) applicid(gedit)
16 : define process(PD) applicid(gedit)
AMQ8010: WebSphere MQ process created.
start listener(L1)
17 : start listener(L1)
AMQ8021: Request to start WebSphere MQ Listener accepted.
display process(PD)
18 : display process(PD)
AMQ8407: Display Process details.
PROCESS(PD)
APPLTYPE(UNIX)
APPLICID(GEDIT)
ENVRDATA( )
USERDATA( )
DESCR( )
ALTDATE(2014-09-10)
ALTTIME(02.17.17)
alter process(PD) applictype('gedit')
19 : alter process(PD) applictype('gedit')
AMQ8405: Syntax error detected at or near end of command segment below:alter process(PD) a
AMQ8427: Valid syntax for the MQSC command:
ALTER PROCESS( process_name )
[ APPLICID( string ) ]
[ APPLTYPE( CICS | DEF | DOS | OS2 | UNIX | WINDOWS | WINDOWSNT |
OS400 | integer ) ]
[ DESCR( string ) ]
[ ENVRDATA( string ) ]

[ USERDATA( string ) ]
alter process(PD) applicid('gedit')
20 : alter process(PD) applicid('gedit')
AMQ8012: WebSphere MQ process changed.
display process(PD)
21 : display process(PD)
AMQ8407: Display Process details.
PROCESS(PD)
APPLTYPE(UNIX)
APPLICID(gedit)
ENVRDATA( )
USERDATA( )
DESCR( )
ALTDATE(2014-09-10)
ALTTIME(02.20.57)
stop listener(L1)
22 : stop listener(L1)
AMQ8706: Request to stop WebSphere MQ Listener accepted.
end
23 : end
22 MQSC commands read.
6 commands have a syntax error.
All valid MQSC commands were processed.
[root@HOSTA Desktop]# endmqm -i QM2
Waiting for queue manager 'QM2' to end.
WebSphere MQ queue manager 'QM2' ending.
WebSphere MQ queue manager 'QM2' ended.
[root@HOSTA Desktop]# strmqm QM2
WebSphere MQ queue manager 'QM2' starting.
5 log records accessed on queue manager 'QM2' during the log replay phase.
Log replay for queue manager 'QM2' complete.
Transaction manager state recovered for queue manager 'QM2'.
WebSphere MQ queue manager 'QM2' started.
[root@HOSTA Desktop]# runmqsc QM2
5724-H72 (C) Copyright IBM Corp. 1994, 2009. ALL RIGHTS RESERVED.
Starting MQSC for queue manager QM2.
start listener(L1)
1 : start listener(L1)
AMQ8021: Request to start WebSphere MQ Listener accepted.
alter qlocal(LQ) process(PD)
2 : alter qlocal(LQ) process(PD)
AMQ8008: WebSphere MQ queue changed.

[root@HOSTB Desktop]# runmqtrm -m QM2 -q IQ

Anda mungkin juga menyukai