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