Monday, December 16, 2013

wsadmin jython Tutorial

Jython is the preferred scripting language in Websphere from version 6.

Jython is the java version of python.

Refer Python Official Website for more details on python

We are not going to teach jython coding here rather we will be telling how to use wsadmin objects with  jython.

There are 5 wsadmin objects:
1.AdminApp
2.AdminTask
3.AdminConfig
4.AdminControl
5.AdminHelp

We will see all the available commands in these objects with exampls and which is the best one to use in complex environment.

Thursday, December 12, 2013

Wednesday, December 11, 2013

wsadmin Check Automatic Synchronisation jython

na= AdminConfig.list('NodeAgent').splitlines()
for i in na:
    fs=AdminConfig.showAttribute(i,'fileSynchronizationService')
    sy=AdminConfig.showAttribute(fs,'autoSynchEnabled')
    print "=" *30
    print "Automatic Synchronization Enabled : "+sy
    print "=" *30

ClassUnloadign Issue IBM Websphere

</con>
  <gc type="global" id="18" totalid="1830" intervalms="5375702.871">
    <classunloading classloaders="97276" classes="96598" timevmquiescems="0.000" timetakenms="27654.667" />
    <finalization objectsqueued="159" />
    <timesms mark="313.364" sweep="5.282" compact="0.000" total="31012.005" />
    <nursery freebytes="320865168" totalbytes="360956928" percent="88" />
    <tenured freebytes="411184336" totalbytes="1282799616" percent="32" >
      <soa freebytes="411184336" totalbytes="1282799616" percent="32" />
      <loa freebytes="0" totalbytes="0" percent="0" />
    </tenured>
  </gc>
  <nursery freebytes="320865168" totalbytes="360956928" percent="88" />
  <tenured freebytes="411184336" totalbytes="1282799616" percent="32" >
    <soa freebytes="411184336" totalbytes="1282799616" percent="32" />
    <loa freebytes="0" totalbytes="0" percent="0" />
  </tenured>
  <refs soft="97660" weak="68715" phantom="2543" dynamicSoftReferenceThreshold="10" maxSoftReferenceThreshold="32" />
  <time totalms="31057.771" />
</con>



The time taken by classunloading is 27654ms.the total time taken is 31057ms.
If its repeating in the gc logs then we have to tune the JVM.

If the environment you are 
Use -Xgc:classUnloadingKickoffThreshold=<number> to specify the
number of classes to be available for unloading to kick off a
Global GC earlier, this will reduce the impact of the class
unloading time.
 
Also analyse the  application is having problem from the  dump using MAT tool.
  


Refer IBM Document
-Xnoclassgc should not be used to prevent class loading and unloading as it may lead to native OOM.

IBM link for noclassgc lead to OOM

wsadmin List Server Port Details jython

servers = AdminConfig.list( 'ServerEntry' ).splitlines()
for server in servers :
    print '\n'
    print "Server Name : " +  server[0:server.find('(')]
    print "=" *30
    NamedEndPoints = AdminConfig.list( "NamedEndPoint" , server).splitlines()
    for namedEndPoint in NamedEndPoints:
        endPointName = AdminConfig.showAttribute(namedEndPoint, "endPointName" )
        endPoint = AdminConfig.showAttribute(namedEndPoint, "endPoint" )
        host = AdminConfig.showAttribute(endPoint, "host" )
        port = AdminConfig.showAttribute(endPoint, "port" )
        print "Endpoint Name  : " +  endPointName + " Host : " + host + " port : " + port



 


wsadmin Global Security Enable jython

gs=AdminTask.isGlobalSecurityEnabled()
if gs == true:
    print "=" *30
    print "Global Security is Enabled"
    print "=" *30
else:
    print "=" *30
    print "Global Security is disabled and enabling it"
    AdminTask.setGlobalSecurity ('[-enabled true]')
    print "=" *30

Monday, December 9, 2013

wsadminjython view VirtualHost Port Details

vh=AdminConfig.list('VirtualHost').splitlines()
for i in vh:
      x=len(AdminConfig.list('HostAlias',i).splitlines())
      iname=i.find('(')
      print "Port Details of "+i[0:iname]
      while x > 0:
        print AdminConfig.showAttribute(AdminConfig.list('HostAlias',i).splitlines()[x-1],'port')
        x=x-1






In Python indent is very important so please be careful while copying it.

Thursday, December 5, 2013

zgrep,zcat command to grep ,view zipped file

grep is a unix command to search in a file
cat will be used to open a file

zgrep and zcat will be used for zipped files

Ex:
zgrep CPU SystemOut.log.gz
zcat SystemOut.log.gz

Sunday, November 24, 2013

Troubleshoot Large objects allocation in websphere

In gc logs you may find a line like below
<af type="nursery" id="2233" timestamp="Sep 24 09:20:52 2013" intervalms="24.176">
  <minimum requested_bytes="3660242" />

From the above line we understand that a large object allocation request was made and we are interested in finding what that object would be.

In google just put the line 3660242bytes to mb to find how much exact  mb is allocated.

There is a jvm argument options available to find the large objects.
-Xdump:stack:events=allocation,filter=#3m

 -Xdump option to add and remove dump agents for various JVM events, update default dump settings (such as the dump name), and limit the number of dumps that are produced.

Here we have given stack so stack trace will be dumped when allocation events is done above 3megabytes

Restart the server after the parameter is added and you will get stack trace in native_stderr logs whenever  a large allocation of more than 3 mb is done.



Wednesday, November 20, 2013

SRVE0255E: A WebGroup/Virtual Host to handle /favicon.ico has not been defined

We can ignore this error coming in SystemOut logs.There will be no impact with this error.


favicon means favorite icon which is related to browsers.
W3C has recommended .ico format from 2003

For more information please refer the below .
IBM TechNote 


Wednesday, October 16, 2013

Debug Paging Space issue IBM AIX

We would have faced issues that paging space is more and need to find which process is using more page space.

Let's start by understanding what is Paging Space.
All process will require memory and that will be taken from RAM .In unix 4kb blocks of memory will be allocated.So in a case if there is no memory in our RAM for the new process then process wont be completed.To nullify this OS has paging space in the disk which will be used by the inactive process in the RAM and the new active process will get space in RAM for processing.This is called Page Out .If the inactive process in hard disk once got active will  move again to RAM.This process is called Page In.So this will be a continuous process in the operating system.

.
lsps -a  command is used to find on which disk paging space is alloted.
Page Space  Physical Volume       Size   %Used  
hd6         hdisk0              768MB      47   

lsps -s will give the  percentage of paging space used.
If percentage is less then no issue.

svmon -G to find free memory.
               size      inuse       free        pin    virtual
memory      1048576     417374     631202      66533     151468
pg space     262144      31993

If free memory is very less then we can increase the RAM size if its less .It seems like application issue please follow the below steps:
Use topas command to find which process is using more paging.
Click here for complete topas explanation .The link has very good explanation.Once spotted the most used process you can use the below two commands .

ps -mo THREAD -p <PID>|sort -nk6.This command be used to know which application is causing more paging .
svmon -P <PID>
In detail svmon commands are explained here.Hope this post will help to spot the bottleneck with paging

Monday, September 30, 2013

Log rotation for last week files

find . -type f -name *.log -mtime +1 -mtime -8 -exec rm -f {} \;

type f =its for file
-mtime +1 = modified time greater than 1 day.
-mtime -8=modified time less than 8 days.
-exec = executes a following commands here its removal of *.log files

Wednesday, September 18, 2013

J2CA0045E: Connection not available while invoking method createOrWaitForConnection for resource jdbc/xx solution

The reason this error is coming is lack of connection pool to create connections.

Solution:

Increase the maximum connection pool size .If you are increasing the connection pool size at cluster scope remember use the below logic to set.

maxpoolsize * number of cluster members should not be greater than connection setting in database.
If above solution does not resolve then enable database trace to analyse further the PoolManager.
 

Tuesday, September 17, 2013

JVM argument to solve frequent garbage collection due to System.gc() or Runtime.gc()

System.gc() or Runtime.gc() is called in java codes to do explicit garbage collection.
Since JVM has the capability to do garbage collection on its own we should avoid the
use of sytem.gc() in our codes

If you have the below kind of lines in your gc  logs
<sys id="1" timestamp="Jul 15 12:56:26 2005" intervalms="0.000">
  <time exclusiveaccessms="0.018" />

  <tenured freebytes="821120" totalbytes="4194304" percent="19" >
    <soa freebytes="611712" totalbytes="3984896" percent="15" />
    <loa freebytes="209408" totalbytes="209408" percent="100" />
  </tenured>
  <gc type="global" id="1" totalid="1" intervalms="0.000">
    <classloadersunloaded count="0" timetakenms="0.012" />
    <refs_cleared soft="0" weak="4" phantom="0" />
    <finalization objectsqueued="6" />
    <timesms mark="3.065" sweep="0.138" compact="0.000" total="3.287" />
    <tenured freebytes="3579072" totalbytes="4194304" percent="85" >
      <soa freebytes="3369664" totalbytes="3984896" percent="84" />
      <loa freebytes="209408" totalbytes="209408" percent="100" />
    </tenured>
  </gc>
  <tenured freebytes="3579072" totalbytes="4194304" percent="85" >
    <soa freebytes="3369664" totalbytes="3984896" percent="84" />
    <loa freebytes="209408" totalbytes="209408" percent="100" />
  </tenured>

  <time totalms="3.315" />
</sys>
 
The tag <sys> meant that garbage collection is done due to System.gc() calls.
 
The intervalms is the time used to know how frequent the garbage collection 
happened for this kind.
0.00 ms represent that this is the first time gc happened due to system.gc call.

Please add the below JVM argument if you face frequent gc due to system.gc call

IBM JVM:-Xdisableexplicitgc
Sun JVM: -XX:+DisableExplicitGC 
 

Thursday, August 8, 2013

HPEL logging websphere

High Performance Extensible Logging (HPEL) is a new log and trace facility. It provides a convenient
mechanism for storing and accessing log, trace, System.err, and System.out information produced by the application server or applications. It is an alternative to the basic log and trace facility, which provides the JVM logs, diagnostic trace, and service log files commonly named SystemOut.log/SystemErr.log, trace.log, andactivity.log. HPEL provides a log data repository, a trace data repository, and a text log file. 
 
Enable HPEL and configuring using adminconsole:
1.    Go to Troubleshooting and Logs and Trace.
2.Switch to HPEL mode.
3.Configure HPEL logging like path for the logs and trace ,purging time ,maximum log size etc.
 
4.You can configure trace for the logic you wanted.In the above picture I had configured for connection leak .Once done please save the configuration and do a restart to make it effective.

5.Click on View Hpel logs and trace on the server you want to see  the logs.
6.In HPEL you can filter the log and view only the content you want like only warning,fatal, from startdate  to stopdate etc.This can be done in the adminconsole or using LogViewer command you can view .

Wednesday, July 24, 2013

Wednesday, July 17, 2013

How to install Wepshere application server 8 or 8.5 by IBM Installation MANAGER

From version 8 onwards Websphere is using IBM Installation Manager as a single software to do all
installation and upgrades.No need of update installer to  install fixpacks as IBM installation manager will take care of this.

There is a good post in IBM developer works by Scott Johnston
Installing websphere using IBM Installation Manager

Silently Install IBM Installation manager:

  ./installc -acceptLicense

Record a response file to silently install WebSphere Application Server:

  Go to /Installation Manager/eclipse where the IBMIM is present 
 
   ./IBMIM -record /tmp/install_was.xml -skipInstall /tmp/imregistry
   install_was.xml is the name of response file
  skipInstall is used to perform a mock install it wont do the installation

Once IM opens select File->Preferences and click Add Repository.
The repository can be located in local machine ,network drive or IBM passport Advantage

Click Ok.
Explore the IM preferences for the way you want.
Click Ok to  save and close preference window.

Click Install  and then
Select appropriate version,accept license,accept product installation directory and select all features needed.After reviewing the summary click install to record the response file.

Exit on successful recording of response file

Next use the response file to silently install the websphere
Go to InstallationManager/eclipse/tools
./imcl -acceptLicense -input /tmp/install_was.xml -log /tmp/install_was.log

If Installation is success the log file will be empty.

Saturday, July 13, 2013

manageprofiles delete all profiles

APPSERVER_ROOT/bin>manageprofiles.bat -deleteAll

INSTCONFSUCCESS: Success: All profiles are deleted.

After that you can confirm using listProfiles

APPSERVER_ROOT/bin>manageprofiles.bat -listProfiles

[]

If deletion is not success then 
Delete the profile directory  in the system and issue the below command


manageprofiles.bat -validateAndUpdateRegistry

IVT(Installation Verification Tool) in websphere

IVT tool will be present in app_server_root/bin
ex:C:\Program Files (x86)\IBM\WebSphere\AppServer\bin\ivt.bat
ivt.sh in unix environment

C:\Program Files (x86)\IBM\WebSphere\AppServer\bin>ivt.bat
IVTL0150I: The IVT command requires the following arguments:
<SERVER_NAME>
<PROFILE_NAME>
For example, on Linux:
ivt.sh server1 profile01
The IVT tool will first start the server given in the argument and then it scan the sysout log for errors and warnings.  

>ADMU0128I: Starting tool with the Dmgr01 profile
>ADMU3100I: Reading configuration for server: dmgr
>ADMU3200I: Server launched. Waiting for initialization status.
>ADMU3000I: Server dmgr open for e-business; process id is 4452
Server port number is:9060
IVTL0010I: Connecting to the  WebSphere Application Server on port: 90
60
IVTL0015I: WebSphere Application Server  is running on port: 9060 for
profile Dmgr01
IVTL0035I: The Installation Verification Tool is scanning the C:\Program Files (
x86)\IBM\WebSphere\AppServer\profiles\Dmgr01\logs\dmgr\SystemOut.log file for er
rors and warnings.
[13/7/13 22:56:53:169 IST] 00000001 PMIImpl       W   CWPMI0032W: PMI Service is
 not available in the Deployment Manager process.
[13/7/13 22:57:01:624 IST] 00000001 ThreadPoolMgr W   WSVR0626W: The ThreadPool
setting on the ObjectRequestBroker service is deprecated.
[13/7/13 22:57:37:583 IST] 00000080 webapp        W com.ibm.ws.webcontainer.weba
pp.WebApp initializeStaticFileHandler SRVE0278E: Error while adding servlet mapp
ing --> /*.
IVTL0040I: 3 errors/warnings are detected in the C:\Program Files (x86)\IBM\WebS
phere\AppServer\profiles\Dmgr01\logs\dmgr\SystemOut.log file
IVTL0070I: The Installation Verification Tool verification succeeded.
IVTL0080I: The installation verification is complete.




Friday, July 12, 2013

Script to Find server startup time

We have startServer.sh StartManager.sh .. in a  websphere ND environment.If you want to find out the time taken to start a server after some performance changes pleaes add the below lines to the start
script

After the magic line in your start script please add startime=`date "+%s"`
and at the end of the script add
endtime=`date "+%s"`
time=`expr $endtime - $starttime`
echo "time taken to start server in seconds is:" $time

Saturday, July 6, 2013

Change IBM Websphere Admin Console Timeout from 30 mins

1.Go to \profiles\Dmgr01\config\cells\cellname\applications\isclite.ear\deployments\isclite\

2.Open deployment.xml
3.Change invalidationTimeout to the desired value, in minutes, where the maximum value is -1 (do not time out)
4.Restart the WebSphere service on the Network Deployment machine.

Thursday, July 4, 2013

Virtual Host Configuration in Websphere Using Jython and Webserver(Apache or IHS)

What is Virtual Host?

      A virtual host is a configuration  that enables a single host machine to resemble multiple host machines.
Example:Consider  a web hosting company with one webserver.But they can host one or more websites using the same webserver with virtual host configuration.

Virtual Host Configuration in Webserver:

   In httpd.conf file the below lines will be there for virtual host settings:

<VirtualHost *:80>
  ServerName www.example.com
  DocumentRoot /var/www/example
</VirtualHost>
 
<VirtualHost *:80>
  ServerName www.test.com
  DocumentRoot /var/www/test
</VirtualHost> 

In this example Both the  websites www,example.com and www.test.com 
are using the port 80.The files needed for those websites are present in
the respective document root location.
 
Once configuration changes are done in httpd.conf for webserver we can check the 
settings are proper by the command httpd -S.This will result in Syntax OK if 
everything is fine,else corresponding error will be displayed.
 
Use curl command to test the website URL :
curl -I www.example.com 

nslookup ipaddress of the server to check DNS mapping is fine.

Virtual Host Configuration in Websphere:

  1.In Administration Console,Under Environment ->VirtualHosts ->New .
  2.Enter a name for your virtual Host and Save.
  3.Click on newly created Virtual Host and Under Additional Properties, click Host Aliases.
  4.Click New to create host aliases Enter the hostname and port.Use * for all hosts.
  5.Save the configuration.

Jython Script to configure Virtual Host: 

 import sys

new_host=sys.argv[1]
host_name=sys.argv[2]
port=sys.argv[3]
AdminConfig.create('VirtualHost', AdminConfig.getid('/Cell:AdminControl.getCell()/'), '[[name, "+new_host+"]]')
AdminConfig.create('HostAlias', AdminConfig.getid('/Cell:AdminControl.getCell()/VirtualHost:"+new_host+"/'), '[[port ,"+port+"] [hostname ,"+host_name+"]]')

Save this into virtual.py and execute  with cmd ./wsadmin.sh -lang jython -f virtual.py test localhost 9080
test - Virtual Host Name
localhost-HostName
9080-Port
  
  


Tuesday, July 2, 2013

Application already exists in the repository

TimeZone settings websphere

Start applications using wsadmin websphere

from java.lang import Exception as JavaException
myapps=AdminApp.list().splitlines()
for app in myapps:
  x=AdminControl.queryNames('type=Application,name='+app+',*')
  if (len(x) == 0):
    print app 'Application is not started'
    mycell=AdminControl.getCell()
    mynode=AdminControl.getNode()
    mserver=AdminControl.queryNames('node='+mynode+',type=Server,*')
    myserver=AdminControl.getAttribute(mserver,'name')
    appManager = AdminControl.queryNames('type=ApplicationManager,cell='+mycell+',node='+mynode+',process='+myserver+',*')
    try:
     AdminControl.invoke(appManager,'startApplication',app)
    except JavaException,target:
     "WSADMIN EXCEPTION",target 
      
 
Place these lines in jython file named appstatus.py and execute wsadmin using the below option:
 
Go to $WAS_PROFILE/bin and issue the below command
./wsadmin.sh -lang jython -f appstatus.py

Wednesday, June 19, 2013

wsimport command for JAX-WS

The wsimport command-line tool processes an existing Web Services Description Language (WSDL) file and generates the required portable artifacts for developing Java API for XML-Based Web Services (JAX-WS) Web service applications.Following are the wsimport commands which can be used:

wsimport -d classes -s src -verbose C:\ProcessRetailDeliveryReporting.wsdl 
  
d - will set the directory generated output classes
s - java source directory
verbose - will display action happening in the console
wsdllocation - wsdlfilelocation

Complete implementation reference of JAX-WS is available @starstandard.org

Thursday, May 30, 2013

Complete Websphere Administration Commands

1.Backup Config
2.Restore Config
3.Delete Profile

backupConfig command


backupConfig.sh /tmp/backup.zip -nostop -quiet (If security is enabled please use -user and -password)

restoreConfig command


restoreConfig.sh backup.zip -location /tmp -nostop

Delete Profile command

manageprofiles.sh -delete -profileName YourProfileName

Collecting data using the IBM Support Assistant Data Collector

Collector tool is deprecated in websphere higher version like 8.5.
Instead of collector tool there is another tool called isadc(IBM Support Assistant Data Collector) is used.
The isadc when executed will ask you series of entries like nodename ,the issue category etc..
You have to enter the number option for selecting the category.
If security is enabled then it will ask for username and password.
Once all inputs are collected it will ask for problem description and solution tried.

Please refer below IBM link for reference
ISADC Tool

Wednesday, May 29, 2013

Unix Commands for Websphere Administrator

1.Remove files
2.Find files
3.View files
4.Performance
5.Network Commands
6.Change Owner
7.Tar commands
8.Unix Function to restart WAS

Remove files


rm -f *.log will remove all files ending with .log
rm -rf * will be used to  delete directories

Finding files


find . -type f -name *.log is used to find files
find . -type d -name server1 is used to search for directories

Viewing files


cat test.txt

Performance in AIX


sar-system activity recorder
vmstat-virtual memory statistics
iostat-input output statistics
pstat-paging size statistics

Network Commands


ifconfig -a -To know status of ethernet

Change owner of a file


chown ora11gr2 system.log - Change the ownership of file named system.log to ora11gr2>

Used to reduce the size


tar -cvf mytar.tar * -This will create a tar named mytar.tar with all directories and files included in current directory
c-create
x-extract
v-verbose
f-file name
tar -xvf mytar.tar -This will extract the tar
If you want to extract a tar in different path then use the below command in the path where you want it to be extracted
tar -xvf /tmp/mytar.tar
tar -tvf mytar.tar -This is used to view the content of a tar without extracting.
If you want to add some extra files or directories use the below command
tar -rvf mytar.tar extra.Here extra is a directory or file

Function to start and stop the server


function restart()
{
cd $was_profile/bin
./stopServer.sh server1
sleep 5
./startServer.sh server1
}
Add these lines to .profile of users home directory.
Execute the .profile using the command like . ./.profile
Then whenever you type restart anywhere in the unix server WAS will be restarted
You can add dmgr stop and start service also in the function so that each time no need to navigate to the path and issue the command

Monday, May 27, 2013

ibm websphere mq 000-374 exam free dumps(31-50)

31.A bank application sends critical financial messages on a queue so that other applications can
process them. In order to recover messages after a system failure, the messages need to be:

A. set as persistent.
B. defined with high priority.
C. saved manually in a log file.
D. backed up to another queue.

32The following command is executed using the JMSAdmin facility. InitCtx> define Q(Q_IN)
QMGR(QMGR1) QUEUE(Q1) Which one of the following did the command create?

A. Q_IN
B. Q_IN and Q1
C. Q_IN and QMGR1
D. Q_IN, QMGR1 and Q1

33 .When an application puts a message on a remote queue, which sequence will the queue
manager follow to identify the transmit queue?

A. 1.Use the default transmission queue
    2.Use the transmission queue with the same name as the remote queue manager
    3.Use the transmission queue named explicitly in a local definition of a remote queue
B. 1.Use the transmission queue with the same name as the remote queue manager
    2.Use the transmission queue named explicitly in a local definition of a remote queue
    3.Use the default transmission queue
C. 1.Use the transmission queue named explicitly in a local definition of a remote queue
    2.Use the transmission queue with the same name as the remote queue manager
    3.Use the default transmission queue
D. 1.Use the transmission queue named explicitly in a local definition of a remote queue
    2.Use the default transmission queue
    3.Use the transmission queue with the same name as the remote queue manager

34.An administrator is planning a fix pack upgrade on a WebSphere MQ server containing a cluster
queue manager. As part of the fix pack upgrade, the administrator needs to minimize the impact
to the cluster environment and still allow the queue manager on the upgraded server to continue
to be part of the cluster. What command will help the administrator accomplish this task?

A. HALT QMGR
B. HOLD QMGR
C. REMOVE QMGR
D. SUSPEND QMGR
 
35.A server hosting clustered queue manager APP_QM1 experienced an outage. The server was
restarted but the queue manager could not be restarted. The cluster that APP_QM1 is part of
hosts business critical applications and thus the workload algorithm needs to continue to route
messages as efficiently as possible. What would be the next step to maintain this efficiency?

A. Delete APP_QM1
B. Run RESET CLUSTER
C. Run REFRESH CLUSTER
D. Remove APP_QM1 from the repository database

36.A system administrator has defined the following MQ objects on three queue managers. An
application connects to queue manager QM1 to put a message on ALIAS.Q99. Where does
the message get delivered? QM1 DEFINE QALIAS(ALIAS.Q99) TARGET(Q99) DEFINE
QREMOTE(Q99) RNAME(Q99) RQMNAME(QM3) ALTER QMGR DEFXMITQ(QM2) DEFINE
QL(QM2) USAGE(XMITQ) DEFINE CHANNEL(QM1.TO.QM2) CHLTYPE(SDR) TRPTYPE(TCP)
REPLACE + DESCR('Sender channel to QM2') XMITQ(QM2)+ CONNAME('9.20.9.32(1412)')
QM2 DEFINE CHANNEL(QM1.TO.QM2) CHLTYPE(RCVR) TRPTYPE(TCP)REPLACE ALTER 
QMGR DEFXMITQ(QM3) DEFINEQL(QM3) USAGE(XMITQ) DEFINE CHANNEL(QM2.TO.QM3)
CHLTYPE(SDR) TRPTYPE(TCP) REPLACE + DESCR('Sender channel to QM3') XMITQ(QM3)+
CONNAME('9.20.9.33(1415)') QM3 DEFINE CHANNEL(QM2.TO.QM3) CHLTYPE(RCVR)
TRPTYPE(TCP)+ REPLACE DESCR('Receiver channel from QM2') DEFINE QL(Q99)

A. Q99 on QM3
B. MQI call will fail
C. dead-letter queue on QM1
D. dead-letter queue on QM2

37.Which channel definition will require that client applications using channel ABC establish a
mutually authenticated SSL channel?

A. DEFINE CHANNEL(ABC) CHLTYPE(SVRCONN) +  SSLCIPH(NULL_MD5)       
SSLCAUTH(REQUIRED)
B. DEFINE CHANNEL(ABC) CHLTYPE(SVRCONN) + SSLCIPH() SSLCAUTH(REQUIRED)
C. DEFINE CHANNEL(ABC) CHLTYPE(SVRCONN) +
    SSLCIPH(NULL_MD5) SSLCAUTH(MUTUAL)
D. DEFINE CHANNEL(ABC) CHLTYPE(SVRCONN) + SSLCIPH() SSLCAUTH(MUTUAL)

38.The sender and receiver channels have been set up between two queue managers. An
administrator wants to start the sender channel automatically whenever messages arrive
on the corresponding transmission queue. What does the administrator need to start as a trigger
monitor for the sender channel?

A. listener
B. service
C. channel initiator
D. process definition

39.Which of the following message data compression options are valid for sender channels in IBM
WebSphere MQ ?

A. ANY
B. RLE
C. ARLL
D. SYSTEM
E. ZLIBHIGH

40.An airline reservation system consists of three MQ queue managers. The following MQSC
commands have been executed. An application for airline reservation connects to queue
manager CANADA and puts a message to queue TORONTO. On which queue does the
message end up? QM: CANADA
DEFINE QL(INDIA) USAGE(XMITQ) DEFINE QL(RESERVATIONS) DEFINE QL(DLQ) DEFINE
CHANNEL(CANADA.INDIA) CHLTYPE(SDR)+ XMITQ(INDIA) CONNAME('9.84.100.7(1415)')
DEFINE QR(BOMBAY) RQMNAME(INDIA) RNAME(RESERVATIONS)+ XMITQ(INDIA) DEFINE
QALIAS(TORONTO) TARGET(BOMBAY) QM: INDIA DEFINE QL(CHINA) USAGE(XMITQ)
DEFINE QL(RESERVATIONS) DEFINE QL(DLQ) DEFINE CHANNEL(CANADA.INDIA)
CHLTYPE(RCVR) DEFINE QR(SHANGHAI) RQMNAME(CHINA)+ RNAME(RESERVATIONS)
XMITQ(CHINA) DEFINE CHANNEL(INDIA.CHINA) CHLTYPE(SDR)+ XMITQ(CHINA)
CONNAME('9.84.111.9(1416)') QM: CHINA DEFINE QL(RESERVATIONS) DEFINE QL(DLQ)
DEFINE CHANNEL(INDIA.CHINA) CHLTYPE(RCVR)

A. DLQ on queue manager INDIA
B. DLQ on queue manager CANADA
C. TORONTO on queue manager CANADA
D. RESERVATIONS on queue manager INDIAD.RESERVATIONS on queue manager INDIA

41.An administrator has been asked to create a listener that listens on port 1416 and starts
automatically when the queue manager is started. Which of the following MQSC commands will
create the listener?

A. DEFINE LISTENER(LISTENER.TCP) TRPTYPE(TCP) PORT(1416)+ QMGR REPLACE
B. DEFINE LISTENER(LISTENER.TCP) TRPTYPE(TCP) PORT(1416)+ CONTROL(QMGR)  
REPLACE
C. DEFINE LISTENER(LISTENER.TCP(1416)) TRPTYPE(TCP) + CONTROL(QMGR) REPLACE 
D. DEFINE LISTENER(LISTENER.TCP) TRPTYPE(TCP(1416)) + START(QMGR) REPLACE

42.What MQI verb is not permitted from a WebSphere MQ application program running in a base
WebSphere MQ Client environment?

A. MQDISC
B. MQCMIT
C. MQBACK
D. MQBEGIN
 
43.A company is running applications on several Windows servers installed with WebSphere MQ
Server components. All the applications are sending data to a queue manager running on a
Solaris machine. How could the administrator redesign the infrastructure to reduce the overall
licensing costs of the infrastructure?

A. Create a cluster and include all Windows machines
B. Redesigning the infrastructure will not reduce the number of licenses required
C. Replace WebSphere MQ Server components with WebSphere MQ Client components on all
Windows machines
D. Rewrite the application to handle a larger workload; reduce the number of applications and
WebSphere MQ server components
 
44.An application sends messages into a queue which has multiple instances within a cluster. There
are no requirements for message affinity and the default value is kept for the attribute DEFBIND
on the queue definition. In order to benefit from the workload management of clustering, what
option needs to be specified on the MQOPEN call from the application?

A. MQOO_INPUT_SHARED
B. MQOO_INPUT_AS_Q_DEF
C. MQOO_BIND_ON_OPEN
D. MQOO_BIND_NOT_FIXED

45.An application using several queue managers is being tested for its end-to-end message
throughput rates. The delivery times for the messages are longer than what the developers
expect, and somemessages are randomly lost. What can be done to help resolve this problem?

A. Evaluate the event messages that arrive on the dead letter queue
B. Record and evaluate activity information recorded by a trace-route message
C. Monitor the DEFAULT.SYSTEM.MSG.ROUTE queue for message routing events
D. Use a third party software package since IBM WebSphere MQ does not provide the ability to
track messages
 
46.An application developer needs help understanding why a publishing application is failing when
trying to publish on topic RE/Current/Bids. What MQSC command can an administrator use to
help diagnose the problem?

A. DISPLAY TOPIC(RE/Current/Bids)
B. DISPLAY TSTATUS(RE/Current/Bids)
C. DISPLAY TOPICSTS(RE/Current/Bids)
D. DISPLAY TPSTATUS(RE/Current/Bids)

47.A stepwise approach to moving the MQ publish/subscribe environment to V7.0 has been taken to
minimize the impact to the publish/subscribe applications using the environment. As part of this
stepwise approach there will be a mix of V6 and V7 brokers running at any one time. What
additional step must be taken to allow for the coexistence of both versions of the brokers?
A. Leave the broker's queue manager defaults in place
B. Enable the coexist flag on each broker's queue manager in the broker domain
C. Set the PSMODE parameter on the broker's queue manager to COMPAT
D. Set the coexistence parameter to true in each of the broker's queue manager qm.ini file

48.An administrator has been asked to create new subscriptions on queue manager QMGR1 in
UNIX. The administrator issues the following MQSC commands: DEF TOPIC(TOPICA)
TOPICSTR(X/Y) DEF TOPIC(TOPICB) TOPICSTR(X/Y/Z) The administrator then runs the
following commands: setmqaut m QMGR1 -t topic -n TOPICA -p User1 +sub setmqaut m
QMGR1 -t topic -n TOPICB –p User2 +sub Which of the following statements are true?

A. User2 can subscribe to topic X/Y/#
B. User2 can subscribe to topic X/Y/Z/#
C. User2 can subscribe to topic X/Y/Z but User1 cannot subscribe
D. User1 and User2 can subscribe to topic X/Y/Z
E. Neither User1 nor User2 can subscribe to topic X/Y/Z/+
 
49.Topic MYTOPIC has been defined with the command: DEFINE TOPIC(MYTOPIC)
TOPICSTR(Sports/Football) Which of the following commands are valid to modify
MYTOPIC?

A. ALTER TOPIC(MYTOPIC) PUBSCOPE(QMGR)
B. ALTER TOPIC(MYTOPIC) DEFPSIST(PERS)
C. ALTER TOPIC(MYTOPIC) DURSUB(ASPARENT)
D. ALTER TOPIC(MYTOPIC) WILDCARD(DISABLED)
E. ALTER TOPIC(MYTOPIC) TOPIC(Sports/Baseball)

50.As part of the planned migration from IBM WebSphere MQ V6.0 brokers to IBM WebSphere MQ
V7.0, the publishing and subscribing applications have moved to IBM WebSphere MQ V7.0 and
all that is left are the brokers. After IBM WebSphere MQ V7.0 is installed, what actions do the
IBM WebSphere MQ administrators need to take to complete the migration?

A. Activate the PSMODE parameter on the broker
B. Issue the strmqbrk command
C. Issue the migratemqbroker command for each broker
D. Recreate the brokers in the IBM WebSphere MQ V7.0 environment

ibm websphere mq 000-374 exam free dumps(16-30)

16.An administrator is using WebSphere MQ Explorer to administer a remote queue manager. On
the Add a Remote Queue Manager wizard, which of the following fields can theadministrator
specify values for?

A. MCAUSER
B. Security exit
C. User identification
D. SSL key repositories
E. Access control list (ACL)

17.An IBM WebSphere MQ architect is planning an infrastructure for a banking application which
cannot lose any messages. What setup should the architect recommend toachieve this?

A. no particular setup is needed
B. persistent messages linear logging
C. persistent messages circular logging
D. nonpersistent messages linear logging

18.An application is putting persistent messages on queue Q1 inside an activetransaction when an
abnormal shutdown of queue manager QM occurred. QM is configured with linearlogging. What
action does the administrator need take to recover Q1 and roll back the uncommitted messages?

A. no action is needed
B. strmqm -m QM1 -recover
C. getmqobj -m QM -t ql QL
D. rcrmqobj -m QM -t ql Q1

19.An administrator has defined two listeners for queue manager QMA with thefollowing two
runmqsc commands: DEFINE LISTENER(ABC) TRPTYPE(TCP) PORT(2414) +
CONTROL(QMGR)REPLACE DEFINE LISTENER(DEF) TRPTYPE(TCP) PORT(2415) +
CONTROL(QMGR)REPLACE The queue manager was then restarted so that both listeners
arerunning. Which commandwill stopthe listener ABC and leave listener DEF running?

A. issue shell command endmqlsr m QMA
B. issue shell command endmqlsr m QMA l ABC
C. issue shell command ctrlmq m QMA l ABC stop
D. issue MQSC command STOP LISTENER(ABC)

20.The operations team has been testing a new message routing application intheir IBM WebSphere
MQ V7.0 pre-production environment. When the application is started, many ofthe other
applications designed to interface with the message routing application begin to experience long
wait times while retrieving messages. The operations team notices that many of the queues that
the message routing application puts to, are filling up. The team also notices that the number of
active queue manager log files has increased. What is the most probable cause for the
performanceslowdown for getting applications?

A. The data store for the message routing application is full
B. The MQGET calls are not issued with the FASTPATH retrieval parameter for improved
performance
C. The message routing application issues several MQPUT calls within syncpoint without
committing them
D. The getting applications need to invoke the new fast retrieval algorithm in IBM WebSphere MQ
V7.0 for message retrieval

21.An administrator is trying to use WebSphere MQ Explorer to administer a remote queue
manager. After successfully connecting to the queue manager, what is the administrator able to
do?

A. Stop the queue manager.
B. Delete the queue manager.
C. Create queues on the queue manager.
D. Start the command server for the queue manager.

22.During the load test of a routing application many queue depth high eventsare generated for the
ROUTING_Q which holds the applications input messages. Which of the following is the simplest
change that would reduce the number of queue high depth events? Increase the:

A. MAXMSG attribute on the ROUTING_Q queue
B. MAXDEPTH attribute on the ROUTING_Q queue
C. MAXMSG attribute on the SYSTEM.DEFAULT.LOCAL.QUEUE and recreate the ROUTING_Q
queue
D. MAXDEPTH attribute on the SYSTEM.DEFAULT.LOCAL.QUEUE and recreate the
ROUTING_Q queue

23.A legacy application uses MQPUT to send messages to a queue INV. Which set of MQSC
commands below will successfully configure the queue manager so that a number of JMS
applications canreceive these messages by subscribing to topic Inventory/CurrentItems?

A. DEFINE TOPIC(INV_TOPIC) + TOPICSTR(Inventory/CurrentItems)
    DEFINE QALIAS(INV) TARGET(INV_TOPIC) TARGTYPE(TOPIC)
B. DEFINE TOPIC(INV_TOPIC) + TOPICSTR(Inventory/CurrentItems)
    DEFINE TALIAS(INV) TARGET(INV_TOPIC) TARGTYPE(TOPIC)
C. DEFINE TOPIC (INV_TOPIC) + TOPICSTR(Inventory/CurrentItems) QALIAS(INV)
D. DEFINE QALIAS(INV) TARGET(Inventory/CurrentItems) + TARGTYPE(TOPIC)

24.An administrator has created a queue manager on AIX system A, using the command crtmqm ll
QMA. What command will create a backup queue manager for QMA on AIX system B?

A. crtmqm ll QMB
B. crtmqm ll QMA
C. crtmqm lb QMA
D. crtmqm ll backup QMA
   
25.An administrator deployed a new application on queue manager QMGR1 in their AIX server. The
administrator notices that the application is crashing frequently and contacts the IBM support
teamfor help. The IBM support team asks the administrator to send any First Failure Support
Technology(FFST) files that have been generated. Which of the following files should the
administrator sendto the IBM support team?

A. AMQ*.LOG files from /var/mqm/trace directory
B. AMQ*.FDC files from /var/mqm/errors directory
C. AMQ*.FFST files from /var/qmgrs/QMGR1/errors directory
D. AMQ*.ERROR files from /var/mqm/qmgrs/QMGR1/errors directory

26.The administrator is required to give authority for user MQUSER to execute runmqsc control
commands on Windows queue manager QM1. Which method can be followed to grantauthority?

A. modify the file permission for runmqsc.exe
B. add MQUSER to the Windows Administrators group
C. access to runmqsc cant be granted to non-mqm users
D. setmqaut m QM1 t qmgr p MQUSER +inq +dsp +connect +alladm

27.An administrator is setting up a transmit queue so that the channel associated with it is
automatically started. However, the channel does not start when messages are placed on the
queue. The current attributes of the queue: 
DISPLAY QL(QM2) USAGE TRIGGER TRIGTYPE TRIGDATA TRIGDPTH TRIGMPRI
IPPROCS OPPROCS INITQ 1 : DISPLAY QL(QM2) USAGE TRIGGER TRIGTYPE
TRIGDATA TRIGDPTH TRIGMPRI IPPROCS OPPROCS INITQ AMQ8409: Display Queue
details. QUEUE(QM2) TYPE(QLOCAL) INITQ(SYSTEM.DEFAULT.INITIATION.QUEUE)
IPPROCS(0) TRIGGER OPPROCS(0) TRIGDATA(QM1.2.QM2) TRIGDPTH(1) TRIGMPRI(0)
TRIGTYPE(FIRST) USAGE(XMITQ) Which corrective action is required to start the channel
automatically?

A. start Trigger Monitor
B. modify attribute TRIGMPRI to specify a higher priority
C. modify attribute INITQ to specify SYSTEM.CHANNEL.INITQ
D. disconnect all applications connected to the transmit queue

28.The administrator has to give authority for user test to browse messages in queue LQ on queue
manager QM1. User test will be using MQ Explorer to browse the messages. Which commands
have to be executed to achieve this?

A. setmqaut -m QM1 -t qmgr -p test +connect +inq +dsp
    setmqaut -m QM1 -t q -n SYSTEM.ADMIN.COMMAND.QUEUE -p test +put
    setmqaut -m QM1 -t q -n SYSTEM.MQEXPLORER.REPLY.MODEL -p test +inq +get +dsp
    setmqaut -m QM1 -t q -n LQ -p test +dsp + browse
B. setmqaut -m QM1 -t qmgr -p test +connect +inq +dsp
    setmqaut -m QM1 -t q -n LQ -p test +dsp +browse
    setmqaut -m QM1 -t q -n MQAI.** -p test +all
    setmqaut -m QM1 -t q -n LQ -p test +dsp +browse
C. setmqaut -m QM1 -t q -n LQ -p test +dsp +browse
D. MQ Explorer cant be used by non-mqm users

29.An administrator wants to define a IBM WebSphere MQ object so that the applications can be
prevented from sending messages to the processing applications queue APPQ, but continue to
allow administrators to send test messages to the processing application. The application will
send messages using an object ABC. What MQSC command should be used?

A. DEFINE QALIAS(ABC) BASEQ(APPQ)
B. DEFINE QALIAS(ABC) TARGET(APPQ)
C. DEFINE QREMOTE(ABC) TARGET(APPQ)
D. DEFINE QLOCAL(ABC) ALIASQ(APPQ)
E. DEFINE QMODEL(ABC) BASEQ(APPQ)

30.A company decides to use the IBM WebSphere MQ transport for SOAP to enable some of its
Java applications as WebServices on AIX. The administrator is asked to define and start a
listener as a service. Which one of the following methods should be used?

A. runmqlsr
B. amqwSOAPNETlistener
C. defineWMQJListener.sh
D. com.ibm.mq.soap.transport.jms.WMQSender
 

ibm websphere mq 000-374 free dumps(6-15)

6.An administrator wants to prevent applications from publishing messages to the topic tree below
Counters/Application. What MQSC command will accomplish this task?

A. DEFINE TOPIC(Counters/Application) PUB(NO)
B. DEFINE TOPIC(Counters/Application) PUB(DISABLED)
C. DEFINE TOPIC(CTOPIC) TOPICSTR(Counters/Application) + PUB(NO)
D. DEFINE TOPIC(CTOPIC) TOPICSTR(Counters/Application) + PUB(DISABLED)

7.A financial company is looking to take advantage of the publish/subscribefeature that IBM
WebSphere MQ V7.0 offers. They would like to be able to share stock quotes between their
feedhandlerapplications as quickly as possible. They also need to make sure that the
publish/subscribe infrastructure is highly scalable as they will be adding additional feedhandler
applications. What is the bestpublish/subscribe topology to meet the company's needs?

A. Publish/subscribe clusters
B. Publish/subscribe hierarchies
C. Publish/subscribe broker bundles
D. Publish/subscribe interconnections

8.A routing application has been modified to generate smaller messages no larger than 10KB in
size. The operations team has decided to reduce their queue resources need for therouting
application's primary queue ROUTING_Q as well to better make use of their file system
resources. What command will allow them to do this?

A. ALTER QL(ROUTING_Q) MAXLENGTH(20000)
B. REPLACE QL(ROUTING_Q) MAXMSGL(20000)
C. ALTER QLOCAL (ROUTING_Q) MSGLENGTH(20000)
D. DEFINE QLOCAL (ROUTING_Q) MAXMSGL(20000) REPLACE

9.What should a company do to set up its MQ environment for media recovery?
A. No additional configuration is needed
B. Configure queue managers for linear logging
C. Configure queue managers for advanced logging
D. Modify logging so that log files are viewed as a closed loop

10.Queue manager QMA had previously been configured to disable the publish/subscribe broker.
Now, the administrator has been asked to turn on the native publish/subscribe engine. The
administrator can accomplish this task by executing the following command:

A. strmqbrk m QMA
B. ALTER QMGR PSMODE(ENABLED)
C. START SERVICE(SYSTEM.BROKER)
D. ALTER BROKER PSMODE(ENABLED)

11.The warehouse application is reporting issues with trying to read messages from its input
message queue, PRIME_REPOS_Q. There are three applications that access this queue via
QALIAS definitions, as follows: DEFINE QLOCAL (PRIME_REPOS_Q) DEFINE QALIAS
(WAREHOUSE1_AQ) TARGET (PRIME_REPOS_Q) DEFINE QALIAS
(WAREHOUSE2_AQ)TARGET (PRIME_REPOS_Q)DEFINE QALIAS (WAREHOUSE3_AQ)
TARGET (PRIME_REPOS_Q) The warehouse applicationhas notified the operations team
theyneed to stop the incoming messaging traffic while they work toresolve their message read
issue. What action does the operation team need to take to fulfill the warehouse application
teams request? Issue the command(s):

A. ALTER QLOCAL(PRIME_REPOS_Q) PUT (DISABLED) GET (ENABLED)
B. ALTER QLOCAL(PRIME_REPOS_Q) PUTMSG (DISABLED) GETMSG (ENABLED)
    UPDATE ALIASES FOR QUEUE(PRIME_REPOS_Q)
C. ALTER QALIAS (WAREHOUSE1_AQ) TARGET (PRIME_REPOS_Q) PUT(DISABLED) GET
    (ENABLED) PUSHUPDATE
    ALTER QALIAS (WAREHOUSE2_AQ) TARGET (PRIME_REPOS_Q) PUT (DISABLED) GET
    (ENABLED) PUSHUPDATE
    ALTER QALIAS (WAREHOUSE3_AQ) TARGET (PRIME_REPOS_Q) PUT (DISABLED) GET
    (ENABLED) PUSHUPDATE
D. ALTER QLOCAL(PRIME_REPOS_Q) PUTMSG (DISABLED) GETMSG (ENABLED)
    REFRESH QALIAS (WAREHOUSE1_AQ)
    REFRESH QALIAS (WAREHOUSE2_AQ)
    REFRESH QALIAS (WAREHOUSE3_AQ)

12.The operations team has created a new queue manager infrastructure using default settings to
support the deployment of a company's new database warehousing application. This application
sends messages to applications running on other queue managers, which process the messages
and send replies. After deployment of the application the message throughput is much lower than
expected. The operations team doesn't notice any resources issues with disk space, memory
usage, or CPU usage, however, they do notice that there are many more messages on the reply-
to-queues than expected. They also notice that error messages are frequently generated as the
application processesreply messages. What is the most probable cause of the performance
slowdown?
A. The warehousing application has unintentionally requested activity reports for each message it
creates
B. The warehousing application was unintentionally deployed with trace route reporting enabled
C. The warehousing applications queue manager reply-to-queue handler was not disabled
D. The warehousing applications queue manger reply-to-queue filtering was not properly adjusted

13.Queue manager DEV_QM1 is no longer able to send and receive messages from queue
manager DEV_QM2. Both queue managers reside on the Windows server. Theadministrator
takes a look atthe MQ Explorer to see what the problem is and notices the channel initiator for
DEV_QM2 has stopped.What options does the administrator have to resolve the problem?

A. PCF commands
B. MQSC commands
C. Control commands
D. WebSphere MQ Explorer
E. WebSphere MQ API Exerciser

14.An administrator needs to record media images. Which one of the followingcommands should the
administrator use to record them?

A. rcrmqobj
B. saveqmgr
C. rcdmqimg
D. savemqobj

15.The administrator wants to define a service object on a queue manager on Windows so that an
application will start when the queue manager is started and stop when the queuemanager is
stopped. What attribute should the administrator include on the DEFINE SERVICE command
inrunmqsc to ensure that this happens?

A. SERVCTL(AUTO)
B. SERVCTL(QMGR)
C. CONTROL(AUTO)
D. CONTROL(QMGR)
 

ibm websphere mq 000-374 free dumps(0-5)

Refer the below ibm link for knowing the objective and number of questions for this exam
000-374


1.An administrator is setting up sender receiver channels between QMGR1 and QMGR2. As part of the verification test, the administrator puts a message on the remote queue RQ of QMGR1 and notices that the message has correctly reached the local queue LQ of QMGR2. An application then starts putting messages on RQ. A few minutes later, the administrator notices that all the messagesbeing put on RQ end up on QMGR2's dead letter queue. What is a probable cause of the problem?

A. The application set Message Expiry on the messages 
B. The Max Uncommitted Messages limit on QMGR2 was reached
C. The application set the Report options in the MQ Header of the messages  
D. The UserIdentifier set in MQ Header of the messages did not have put authorization on LQ 


2.An administrator wants to prevent the channel initiator process from starting when a queue manager QMA on AIX is started. Which action(s) will accomplish this?

A. Restart the queue manager using strmqm ns QMA.  
B. Restart the queue manager using strmqm chinit no QMA.  
C. Issue the command ALTER QMGR SCHINIT(DISABLED), then restart the queue manager using strmqm QMA.
 D. Edit the file qm.ini for QMA and add an entry ChannelInitiator = No in the CHANNELS stanza, then restart the queue manager usingstrmqm QMA 

3.An IBM WebSphere MQ V6.0 broker environment which is shared with an IBM WebSphere
Message Broker V6.0 environment is being migrated to an IBM WebSphere MQ V7.0 broker
environment. What action will continue to ensure proper coexistence in the overall shared
environment?

A. Set the PSMODE parameter on the IBM WebSphere MQ broker queue managers to COMPAT
B. Set the coexistence parameter to true in each of the broker's queue manager qm.ini file
C. Enable the coexist flag on each broker's queue manager in the broker domain
D. The IBM WebSphere MQ broker queue managers will automatically reconfigure themselves
for coexistence on startup


4.A financial company has decided that as part of the migration of their existing IBM WebSphere
MQ V6.0 broker infrastructure to IBM WebSphere MQ V7.0 they would like to make
use of the publish/subscribe clusters topology in IBM WebSphere MQ V7.0. Which MQSC
command needs to be issued on all queue managers in the broker infrastructure during the
migration to remove theold IBM WebSphere MQ V6.0 broker relationships?

A. ALTER QMGR PARENT (' ')
B. ALTER QMGR PARENT (EMPTY)
C. ALTER QMGR PARENT (' ') CHILD (' ')
D. ALTER QMGR PARENT (EMPTY) CHILD (NONE)


5.An application receives messages from a queue APPQ using MQGET. Which MQSC command
will successfully configure the queue manager so that the application can receive messages
published to topic Stock/IBM/Price?

A. DEFINE SUB(TO_APP) TOPICSTR(Stock/IBM/Price) + DEST(APPQ)
B. DEFINE SUB(TO_APP) TOPICSTR(Stock/IBM/Price) + DESTQ(APPQ)
C. DEFINE SUB(TO_APP) TOPICSTR(Stock/IBM/Price) + TARGET(APPQ)
D. DEFINE SUB(TO_APP) TOPIC(Stock/IBM/Price) + DEST(APPQ)