Thursday, 4 October 2012

WebSphere MQSI commands 

----------------------------------------

1.Mqsisetdbparams
Mqsisetdbparms–brokername– -n –DataSourceName -u –DataSourceUserId -p DataSourcePassword
To delete the set dbparams command
Mqsisetdbparms–brokername– -n –DataSourceName

2.mqsisetcapacity  
The mqsisetcapacity command to set the number of valid product licenses on your system.
mqsisetcapacity -c n
where n is the number of valid licences

3. mqsilistaclgroup 
Use the mqsilistaclgroup command to view or list the currently defined:
• User groups
• Users
• Objects
• Access control lists
mqsilistaclgroup--+--------------------+--------------------><
+- -g --GroupName ---+
+- -u --UserName ----+
 +- -b --Broker-------+
+- -e --ExeGroup-----+
 ---+
‘- -t —————

4.mqsidisplaycapacity 
The mqsidisplaycapacity command to display the number of valid product licenses and the processor count values on
the system
 Mqsidisplaycapacity

5.mqsideploy
mqsideploy command to make a deploy request to the Configuration Manager
mqsideploy –b broker name – complete  delta/complete –topic topic name –topology topology name -cancel –r –w
timeoutValue – connection  connection filename –e   execution  groupname –bar bar file name  -rmMsgFlow name

6.mqsideleteaclgroup
 The mqsideleteaclgroup command to delete the Configuration Manager database table relating to the group or user access control lists that you have defined
Mqsideleteaclgroup –f filename –g groupname –u username –b broker name –e exegroup –s subscription –r –t filename: File from which to import the configuration. The output of the mqsilistaclgroupcommand is the correct forma

7.Mqsicustomize
      Mqsicustomize command to customize the broker from the root directory of your broker,  for example,    
/var/wmqi/MQP1BRK.This command is supported

8.Mqsicreatemsgdefs
    This command is used to create the message defination files in ma message sets
Syntax is
    Mqsicreatemsgdefs -p  -d    -rmp -rmd

9.mqsicreatebar
     The mqsicreatebar command provides a command line compiler that creates deployable broker archive files
containing message flows and dictionaries.
Syantax
Mqsicreatebar –data  workspacepath –b barfile –version vesionstring –p projectname –o file path
In the above command barflies and file path are required attributes.

10.mqsichangeflowstats
       The mqsichangeflowstats command to:
• Turn on or off accounting and statistics snapshot publication, or archive record output.
• Specify that the command be applied to a specific flow message flow, or all flows in an execution group, or
all execution groups belonging to a broker.
• Modify the granularity of the data collected in addition to the standard message flow accounting and
statistics. This extra data can include thread related data, node related data, node terminal related data, or a
mixture of this data.
Sample command
Mqsichangeflowstats BrokerA -s -g -j -b none

11.mqsireportflowstats
       mqsireportflowstats command to display the current options for accounting and statistics that have been set
using the mqsichangeflowstats command
mqsireportflowstars –reportflowwstars –a=yes –rs –s

Publish/subscribe commands
12.Mqsiclearmqpubsub
       The mqsiclearmqpubsub command to remove an MQSeries Publish/Subscribe broker as a neighbor of this
WebSphere Business Integration Event Broker broker.
Syntax
Mqsiclearmqpubsub – brokername –n neighborqueuemanagename

 13.mqsijoinmqpubsub
     The mqsijoinmqpubsub command to join this WebSphere Business Integration Event Broker broker to an Miseries Publish/Subscribe broker network. The command identifies a specific Miseries Publish/Subscribe broker to be the
parent of the WebSphere Business Integration Event Broker broker
Syntax
Mqsijoinmqpubsub –brokername –p –parentQueueManagerName

14.Mqsilistmqpubsub
The mqsilistmqpubsub command to display the status of the Miseries Publish/Subscribe neighbor brokers to the
specified WebSphere Business Integration Event Broker broker
Syntax
Mqsilistmqpubsub–brokername.

Migration commands
15.Mqsimigratemsgflows
       The mqsimigratemsgflows command to create new flows in the WebSphere Business Integration Event Broker
V5.0 format, based on existing exported flows from a WebSphere MQ Event Broker V2.1 Configuration Manager.
Mqsimigratemsgflows –data workspacepath –p projectname –d directoryname –rm –log logfilename

16.mqsimigratemsgsets
      The mqsimigratemsgsets command imports all the files with the extension .mrp in the directory specified by the -d
parameter. Files with any other extension are ignored.
Syntax
Mqsimigratemsgsets –d , -d ata workspace –rm –g –log -v

17.Mqsimigratetables
    The mqsimigratetables command to migrate the database tables for brokers or the Configuration Manager.
Syntax
Mqsimigratetables –brokername  -I serviceuseid –a service password
Mqsimigratetables –Configmgr  -I serviceuseid –a service password
Properties commands
Mqsichangeproperties,Mqsireportproperties

Trace Commands
18.Mqsichangetrace
    The mqsichangetrace command to set the tracing characteristics for a component
Syntax
usertrace
Mqsichangetrace – borker name u – e executiongroupname –f flow –r –l level – m mode –
Service trace
Mqsichangetrace – borker name -t – e executiongroupname –f flow –r –l level – m mode

19.mqsiformatlog
    The mqsiformatlog command to process the XML log created by mqsireadlog.
 Syntax
Mqsiformatlog –I inputfilename –o outfilename.

20.Mqsireadlog
    The mqsireadlog command to retrieve the trace log for the specified component
mqsireadlog –componet –u –e egroup –f flowname–o outfilename

21.mqsireporttrace
    The mqsireporttrace command to display the trace options currently in effect. This command is valid for:syntax
mqsireporttrace –componet –u –e egroup –f flowname –o outfilename

22.Mqsicreateusernameserver
     This command is used to create the usename server
Mqsicreateusernameserver –I service userid –a servicepassword –q queuemanagername –r intervel

23.Mqsichangeusernameserver
Mqsichangeusernameserver command to change various properties of the User Name Server.

24.Deleteusernameserver
Deleteusernameserver is used to delete the usenameserver
ConfigManager Commands

25.MqsicreateConfigMgr
      Syntax>>-mqsicreateconfigmgr– -i –ServiceUserID –a serviecpassword –q queuemanagername –n databasename
–u databaseuserid –p databasepassword –d securitydomainname –s username serverqueumanagername –w work path

26.MqsichangeconfigMgr
 syntax
MqsichangeconfigMgr – a servicepassword –I serviceuserid –p databasepassword –g usernameserver queuemgrname
–d securitydomainname –j maxjvmheapsize

Broker Commands
27.Mqsicreatebroker
Syntax
Mqsicreatebroker brokername –I serviceuserid –a servicepassword –q queuemanagername –n datasourecname –u
datasourecuserid –p datasourcepassword –s unsqm -w workpath –l userlilpath –g configurationtiemout –p http port

28.Mqsichangebroker
Syntax
Mqsicreatebroker brokername ––a servicepassword I serviceuserid   –p datasourcepassword –s unsqm -w workpath
–l userlilpath –g configurationtiemout –p http port

29.Mqsideletebroker
Syntax
Mqsideletebroker brokername

30 .Mqsireload  
To request the broker to stop and restart execution groups.
Syntax
Mqsireload brokername –egroup

31.mqsicbrreport
    The mqsicbrreport command to help identify applications that use a content-based routing filter. The program
inspects a broker’s subscriptions table, and reports any filters it finds that might cause incompatible behavior.
Syntax
Mqsicbrreport brokername

32.Mqsideleteconfigmg
Syntax mqsideleteconfigMgr

No comments: