|
|||||||||
mqsicreatedb <DBNAME> -i <USERNAME> -a <PASSWORD> | |||||||||
crtmqm -q <QUEUE_MGR_NAME> | |||||||||
strmqm <QUEUE_MGR_NAME> | |||||||||
mqsicreateconfigmgr <CONFIG_MGR_NAME> -i <USERNAME> -a <PASSWORD> -q <QUEUE_MGR_NAME> | |||||||||
mqsicreatebroker <BROKER_NAME> -i <USERNAME> -a <PASSWORD> -q <QUEUE_MGR_NAME> -n <DBNAME> | |||||||||
mqsicreatedb NDB -i patiln2 -a Sep@2012 | |||||||||
crtmqm -q NQMGR -p | |||||||||
strmqm N_QUEUEMGR | |||||||||
mqsicreateconfigmgr N_CONFIG_MGR -i patiln2 -a Sep@2012 -q N_QUEUEMGR | |||||||||
mqsicreatebroker N_BROKER -i patiln2 -a Sep@2012 -q N_QUEUEMGR -n NDB | |||||||||
mqsistart N_BROKER -e TEST | |||||||||
mqsilist WBRK61_DEFAULT_BROKER | |||||||||
|
|||||||||
mqsichangeproperties WBRK61_DEFAULT_BROKER -e Airline -o ComIbmJVMManager -n jvmDebugPort -v 6868 | |||||||||
|
|||||||||
mqsireportproperties WBRK61_DEFAULT_BROKER -e Airline -o ComIbmJVMManager -n jvmDebugPort | |||||||||
mqsireportproperties <<BrokerName>> -e <<ExecutionGroup>> -o ComIbmJVMManager -n jvmMaxHeapSize | |||||||||
mqsireportproperties <<BrokerName>> -e <<ExecutionGroup>> -o ComIbmJVMManager -n jvmMinHeapSize | |||||||||
mqsistop WBRK61_DEFAULT_CONFIGURATION_MANAGER | |||||||||
mqsisetdbparms MB7BROKER -n dsn::DSN -u UserId1 -p password1 | |||||||||
mqsisetdbparms WBRK61_DEFAULT_BROKER -n RESERVEDB -u patiln2 -p Swarali@003 | |||||||||
|
|||||||||
|
|||||||||
mqsideploy -n <<PathToConfigMgrFileInDblQuotes>> -c -b <<BrokerName>> -w <<TimeOutValueInSeconds>> | |||||||||
|
|||||||||
mqsideploy -n <<PathToConfigMgrFileInDblQuotes>> -b <<BrokerName>> -e <<ExecutionGroup>> -d <<ResourceName>> -w <<TimeOutValueInSeconds>> | |||||||||
|
|||||||||
mqsideploy -n <<PathToConfigMgrFileInDblQuotes>> -b <<BrokerName>> -e <<ExecutionGroup>> -a <<PathToBarFile>> -w <<TimeOutValueInSeconds>> | |||||||||
mqsideploy -n "C:\Reservation\LocalProject\LocalDomain.configmgr" -b WBRK61_DEFAULT_BROKER -e default -a "C:\Reservation\Database\Database.bar" -w 60 | |||||||||
mqsisetdbparms MB7BROKER -n dsn::DSN -u UserId1 -p password1 | |||||||||
mqsisetdbparms WBRK61_DEFAULT_BROKER -n RESERVEDB -u patiln2 -p Swarali@003 | |||||||||
|
|||||||||
runmqlsr -m WBRK61_DEFAULT_QUEUE_MANAGER -t tcp | |||||||||
mqsireportproperties WBRK61_DEFAULT_BROKER -e default -o ComIbmJVMManager -n jvmDebugPort | |||||||||
--------------------------------------------------------------------------------------------------------------------------------------------------- | |||||||||
Queue Manager Commands (For running these commands, the IBM MQ Series Service should be up & running) | |||||||||
--------------------------------------------------------------------------------------------------------------------------------------------------- | |||||||||
|
|||||||||
crtmqm QUEUE_MANAGER_NAME | |||||||||
|
|||||||||
crtmqm QUEUE_MANAGER_NAME -q | |||||||||
|
|||||||||
strmqm QUEUE_MANAGER_NAME | |||||||||
|
|||||||||
endmqm QUEUE_MANAGER_NAME | |||||||||
|
|||||||||
runmqsc QUEUE_MANAGER_NAME -> Press ENTER | |||||||||
dis qlocal(*) | |||||||||
end | |||||||||
[As an alternative to 'dis', 'display' or 'dsp' can also be used. 'end' is used to exit performing any operations on the QUEUE_MANAGER_NAME] | |||||||||
|
|||||||||
runmqsc QUEUE_MANAGER_NAME -> Press ENTER | |||||||||
DEFINE QLOCAL(QUEUE_NAME) | |||||||||
end | |||||||||
[This will create a local queue with default properties. If the queue has to be created with custom properties, it can be done by adding it at the end of the line by separating each by a Whitespace. | |||||||||
e.g.: DEFINE QLOCAL(QUEUE_NAME) MAXDEPTH(1000000) | |||||||||
|
|||||||||
runmqsc QUEUE_MANAGER_NAME -> Press ENTER | |||||||||
DEFINE CHANNEL(CHANNEL_NAME) CHLTYPE (SVRCONN) TRPTYPE (TCP) | |||||||||
|
|||||||||
runmqsc QUEUE_MANAGER_NAME -> Press ENTER | |||||||||
DEFINE LISTENER(LISTENER_NAME) TRPTYPE (TCP) CONTROL (QUEUE_MANAGER_NAME) PORT (PORT_NO) | |||||||||
|
|||||||||
runmqsc QUEUE_MANAGER_NAME -> Press ENTER | |||||||||
START LISTENER(LISTENER_NAME) | |||||||||
|
|||||||||
In AIX, | |||||||||
amqsput QUEUE_NAME QUEUE_MANAGER_NAME -> Press ENTER | |||||||||
Paste or Type the message and press ENTER. Each line (after pressing ENTER) when typed constitutes one message. However, each pasted text is treated as one message when ENTER command is given. | |||||||||
end | |||||||||
[Press ENTER key twice or type end and then press ENTER key to exit the MQ Script Command] | |||||||||
In WINDOWS, | |||||||||
runmqsc QUEUE_MANAGER_NAME -> Press ENTER | |||||||||
amqsput QUEUE_NAME -> Press ENTER | |||||||||
Paste or Type the message and press ENTER. Each line (after pressing ENTER) when typed constitutes one message. However, each pasted text is treated as one message when ENTER command is given. | |||||||||
end | |||||||||
[Press ENTER key twice or type end and then press ENTER key to exit the MQ Script Command] | |||||||||
--------------------------------------------------------------------------------------------------------------------------------------------------- | |||||||||
___________________________________________________________________________________________________________________________________________________ | |||||||||
___________________________________________________________________________________________________________________________________________________ | |||||||||
WebSphere Message Broker Commands (For running these commands, the IBM MQ Series Service should be up & running) | |||||||||
--------------------------------------------------------------------------------------------------------------------------------------------------- | |||||||||
|
|||||||||
mqsilist | |||||||||
|
|||||||||
mqsilist BROKER_NAME | |||||||||
|
|||||||||
mqsilist BROKER_NAME -e EXECUTION_GROUP_NAME | |||||||||
|
|||||||||
mqsireportproperties BROKER_NAME -e EXECUTION_GROUP_NAME -o ObjectName -n PropertyName | |||||||||
___________________________________________________________________________________________________________________________________________________ | |||||||||
|
|||||||||
mqsireportproperties BROKER_NAME -e EXECUTION_GROUP_NAME -o AllReportableEntityNames -r | |||||||||
|
|||||||||
mqsireportproperties BROKER_NAME -c AllTypes -o AllReportableEntityNames -r | |||||||||
|
|||||||||
mqsireportproperties BROKER_NAME -e EXECUTION_GROUP_NAME -o ComIbmJVMManager -n jvmMaxHeapSize | |||||||||
|
|||||||||
mqsireportproperties BROKER_NAME -e EXECUTION_GROUP_NAME -o ComIbmJVMManager -n jvmMinHeapSize | |||||||||
|
|||||||||
mqsireportproperties BROKER_NAME -e EXECUTION_GROUP_NAME -o ComIbmJVMManager -n jvmDebugPort | |||||||||
___________________________________________________________________________________________________________________________________________________ | |||||||||
|
|||||||||
mqsichangeproperties BROKER_NAME -e EXECUTION_GROUP_NAME -o ObjectName -n PropertyName -v ValueToBeSet | |||||||||
|
|||||||||
mqsichangeproperties BROKER_NAME -c ConfigurablePropertyName -o ObjectName -v NewValue | |||||||||
|
|||||||||
mqsichangeproperties BROKER_NAME -e EXECUTION_GROUP_NAME -o ComIbmJVMManager -n jvmMaxHeapSize -v NewValue | |||||||||
|
|||||||||
mqsichangeproperties BROKER_NAME -e EXECUTION_GROUP_NAME -o ComIbmJVMManager -n jvmMinHeapSize -v NewValue | |||||||||
|
|||||||||
mqsichangeproperties BROKER_NAME -e EXECUTION_GROUP_NAME -o ComIbmJVMManager -n jvmDebugPort -v NewValue | |||||||||
___________________________________________________________________________________________________________________________________________________ | |||||||||
|
|||||||||
Values of -l (Trace Level) parameter: | |||||||||
1. normal, | |||||||||
2. none, | |||||||||
3. debug. | |||||||||
Values of -m (Mode) parameter: | |||||||||
1. safe, | |||||||||
2. fast. | |||||||||
User Trace: | |||||||||
|
|||||||||
mqsireporttrace BROKER_NAME -u -e EXECUTION_GROUP_NAME -f MESSAGE_FLOW_NAME | |||||||||
|
|||||||||
mqsichangetrace BROKER_NAME -u -e EXECUTION_GROUP_NAME -f MESSAGE_FLOW_NAME -l TRACE_LEVEL -c SIZE_OF_TRACE_IN_KB | |||||||||
Service Trace: | |||||||||
|
|||||||||
mqsireporttrace BROKER_NAME -t -e EXECUTION_GROUP_NAME -f MESSAGE_FLOW_NAME | |||||||||
|
|||||||||
mqsichangetrace BROKER_NAME -t -e EXECUTION_GROUP_NAME -f MESSAGE_FLOW_NAME -l TRACE_LEVEL -c SIZE_OF_TRACE | |||||||||
|
|||||||||
mqsireadlog BROKER_NAME -u/-t -e EXECUTION_GROUP_NAME -f MESSAGE_FLOW_NAME -o PATH_TO_FILE_WITH_NAME_AND_EXTENSION | |||||||||
___________________________________________________________________________________________________________________________________________________ | |||||||||
To create a BAR file: | |||||||||
mqsicreatebar -data PATH_TO_BAR_DIRECTORY -b BAR_FILE_NAME -p PROJECT_NAME -o NAME_OF_THE_RESOURCE_TO_BE_ADDED_WITH_EXTN | |||||||||
['-cleanBuild' parameter can be used to refresh the workspace projects and perform a clean build before adding] | |||||||||
Syntax: mqsicreatebar -data workspace -b barName [-version id] [-esql21] [-p projectName [...]] -o filePath1 [filePath2 [...]] | |||||||||
Command Options: | |||||||||
'-data workspace' workspace location (Mandatory) | |||||||||
'-b barName' bar file name to create or replace | |||||||||
'-version id' appends '_' and id to compiled names in the archive (optional) | |||||||||
'-esql21' compile ESQL for brokers version 2.1 (optional) | |||||||||
'-p projectName' specify projects containing files to link (optional, multiple projects can be specified) | |||||||||
'-o filePath1' workspace relative path (including the project) of deployable files to add to the broker archive. Multiple deployable files can be compiled in a single mqsicreatebar command. | |||||||||
___________________________________________________________________________________________________________________________________________________ | |||||||||
|
|||||||||
mqsideploy -n PATH_TO_CONFIGURATION_MANAGER_FILE -c | |||||||||
|
|||||||||
mqsideploy -n PATH_TO_CONFIGURATION_MANAGER_FILE -b BROKER_NAME -e EXECUTION_GROUP_NAME -a PATH_TO_BAR_FILE_NAME | |||||||||
|
|||||||||
mqsideploy -n PATH_TO_CONFIGURATION_MANAGER_FILE -b BROKER_NAME -e EXECUTION_GROUP_NAME -d FLOW_OR_RESOURCE_NAME_TO_BE_UNDEPLOYED | |||||||||
NOTE: | |||||||||
1. For all the mqsideploy commands above, a combination of -i, -p & -q parameters can be used instead of -n. -i carries the machine name, -p indicates the port on which the Queue Manager is open and -q represents the name of the Queue Manager, | |||||||||
2. An additional '-w' parameter can be added at the end of the command to set a Timeout Value (in seconds). | |||||||||
___________________________________________________________________________________________________________________________________________________ | |||||||||
|
|||||||||
mqsireload BROKER_NAME -e EXECUTION_GROUP_NAME | |||||||||
|
|||||||||
mqsireload BROKER_NAME | |||||||||
___________________________________________________________________________________________________________________________________________________ | |||||||||
|
|||||||||
[CONFIGURATION_MANAGER_NAME, USER_NAME_SERVER or DATABASE_INSTANCE_MANAGER can be used in place of BROKER_NAME to stop the respective Component] | |||||||||
mqsistop BROKER_NAME | |||||||||
|
|||||||||
mqsistop BROKER_NAME -e EXECUTION_GROUP_NAME | |||||||||
|
|||||||||
mqsistopmsgflow BROKER_NAME -e EXECUTION_GROUP_NAME -m MESSAGE_FLOW_NAME | |||||||||
___________________________________________________________________________________________________________________________________________________ | |||||||||
|
|||||||||
[CONFIGURATION_MANAGER_NAME, USER_NAME_SERVER or DATABASE_INSTANCE_MANAGER can be used in place of BROKER_NAME to stop the respective Component] | |||||||||
mqsistart BROKER_NAME | |||||||||
|
|||||||||
mqsistart BROKER_NAME -e EXECUTION_GROUP_NAME | |||||||||
|
|||||||||
mqsistartmsgflow BROKER_NAME -e EXECUTION_GROUP_NAME -m MESSAGE_FLOW_NAME | |||||||||
___________________________________________________________________________________________________________________________________________________ | |||||||||
|
|||||||||
mqsisetdbparms BROKER_NAME -n DSN_NAME -u USER_ID -p PASSWORD | |||||||||
|
|||||||||
mqsisetdbparms BROKER_NAME -n DSN_NAME - -u USER_ID -p PASSWORD | |||||||||
|
|||||||||
mqsisetdbparms BROKER_NAME -n DSN_NAME -d | |||||||||
______________________________________________________________________________________ | |||||||||
|
|||||||||
mqsilistaclentry CONFIGURATION_MANAGER_NAME -n .configmgr_FILE_NAME -f FILE_TO_WHICH_THE_ACL_ENTRIES_ARE_EXPORTED | |||||||||
|
|||||||||
mqsilistaclentry CONFIGURATION_MANAGER_NAME -n .configmgr_FILE_NAME -f FILE_FROM_WHICH_THE_ACL_ENTRIES_ARE_IMPORTED | |||||||||
|
|||||||||
mqsideleteaclentry CONFIGURATION_MANAGER_NAME -n .configmgr_FILE_NAME -f FILE_FROM_WHICH_THE_ACL_ENTRIES_ARE_IMPORTED | |||||||||
___________________________________________________________________________________________________________________________________________________ | |||||||||
|
|||||||||
mqsicreatebroker BROKER_NAME -i USER_ID -a PASSWORD -q BROKER_QUEUE_MANAGER_NAME | |||||||||
|
|||||||||
mqsicreateconfigmgr CONFIGURATION_MANAGER_NAME -i USER_ID -a PASSWORD -q BROKER_QUEUE_MANAGER_NAME | |||||||||
|
|||||||||
mqsicreateusernameserver -i USER_ID -a PASSWORD -q BROKER_QUEUE_MANAGER_NAME | |||||||||
___________________________________________________________________________________________________________________________________________________ | |||||||||
|
|||||||||
[Optional '-w' parameter can be added to delete all the files related to the Broker under the work path mentioned by '-w's value] | |||||||||
mqsideletebroker BROKER_NAME | |||||||||
|
|||||||||
mqsideleteconfigmgr CONFIGURATION_MANAGER_NAME | |||||||||
|
|||||||||
[Optional '-w' parameter can be added to delete all the files related to the User Name Server under the work path mentioned by '-w's value] | |||||||||
mqsideleteusernameserver | |||||||||
___________________________________________________________________________________________________________________________________________________ | |||||||||
|
|||||||||
mqsicreateconfigurableservice BROKER_NAME -c CONFIGURABLE_SERVICE_NAME -o ObjectName -n PropertyName -v PropertyValue | |||||||||
|
|||||||||
mqsideleteconfigurableservice BROKER_NAME -c CONFIGURABLE_SERVICE_NAME -o ObjectName | |||||||||
___________________________________________________________________________________________________________________________________________________ | |||||||||
|
|||||||||
mqsicvp COMPONENT_NAME | |||||||||
[COMPONENT_NAME can be BROKER_NAME or CONFIGURATION_MANAGER_NAME] | |||||||||
INSERT INTO T2 (EMPID, EMPNAME, EMPADDR) VALUES (:hv_valid_emp_id, :hv_name, :hv_addr) | |||||||||
___________________________________________________________________________________________________________________________________________________ |
Monday, 11 August 2014
Message Broker Commands
Subscribe to:
Post Comments (Atom)
forget the tension of running after your kid for their learning, you can trust http://www.kidsfront.com/maths_mania.html for an interesting
ReplyDeleteinterface which grabs your kids attention and make the learning process easy
Nice post
ReplyDeletesalesforce interview questions
bootstrap interview questions
dbms interview questions
spring interview questions
I have bookmarked your blog, the articles are way better than other similar blogs.. thanks for a great blog! south african brokerage firms
ReplyDeleteAfter playing four years on a fourth-round salary, Prescott is surely eager to take his contract to the next level. As Elliott said, Prescott's pay day is coming. And it's most likely coming from the Cowboys. Executive VP Stephen Jones recently called signing Prescott the team's top priority after dubbing him "our quarterback of the future." super bowl 2020 streaming
ReplyDeleteD&B Hoovers provides sales leads and sales intelligence data on over 120 million companies like Bruc Bond UAB around the world, including contacts, financials, and competitor information. To witness the full depth and breadth of our data and for industry leading sales intelligence tools, take D&B Hoovers for a test drive.
ReplyDeleteInteresting Post. It is really Nice and lovely post. keep it up. keep blogging. otherwise anyone wants to learn SAS training course
ReplyDeleteWebsphere Message Broker Training in Bangalore
Virtual events are naturally more inclusive than in-person events in many respects but there are still a lot of things that planners can do to make them more accessible to people with disabilities. event marketing and creative biography examples
ReplyDeleteThe Loan Fund worked extensively with me to help me anticipate some of the issues that my business may face. Not many lenders would go to that length. They’ve been extremely supportive and a great resource.
ReplyDeleteWorking with Mr Pedro helped me develop my business plan, ideas and brand before getting started, so I was prepared to open a successful business when I received my loan from Mr Pedro, a loan officer with a huge heart of honesty.Contact Mr Pedro on pedroloanss@gmail.com
See still attention alone soldier person. Ability yeah race soldier southern.latest news headlines
ReplyDelete