Shell Script for Websphere MQ Queue Manager start/stop
Hello All,
I am completely new to shell scripting. I had to write a script that starts and stop the queue manager in Websphere MQ. We are on Linux 64-bit patform.
The script should stop the queue manager and all the processes related to websphere MQ. It should be a clean stop. Once the queue manager is stopped, it should start back.
Can some one please help me. Its something urgent !!
Welcome to forum, please use code tags for commands/codes/Inputs in your posts as per forum rules. I have made following a sample for MQ (Which I never worked) STOP/START/CHECK script, hope this may help you. You need to take it as a start up and try to change appropriate oath details, with process name etc and let us know then if that helps you.
Save above script as eg--> menu.ksh give proper permissions to it with proper details by changing paths etc details for scripts. Hope this helps(enjoy learning).
EDIT: Sorry Aia, I haven't seen your reply before this, but this is not a complete solution it is a start up for user.
NOTE: I haven't tested script it should be taken as a startup and appropriate changes according to user's requirement should be done to it.
Thanks,
R. Singh
Last edited by RavinderSingh13; 06-22-2015 at 01:07 PM..
Reason: Added sorry to Aia as was replying while Aia replied to thread before me and couldn't see Aia's reply.
These 2 Users Gave Thanks to RavinderSingh13 For This Post:
EDIT: Sorry Aia, I haven't seen your reply before this, but this is not a complete solution it is a start up for user.
No worries! You give what you feel you want to give.
However, I think is appropriated to ask what has been the effort done if nothing is shown. That would let you know as well the level of understanding that the person has on the issue and helps you to not assume more than what you have to.
Hi,
I need to create a shell script for automated server patching, with the following scenario:
I have two Linux servers Primary and secondary.
Server patching should start on Primary 1st and then secondary.
1st check both servers are up and running.
Then stop primary and patching will... (1 Reply)
Hello everyone,
Newbie to the forum.
I have a requirement for a script to check Queue Manager SSL certificates - However I have no previous scripting skills what so ever. I need a script which from high level point of view does the following:
#For each Queue Manager on the server go to... (1 Reply)
I have Big brother script, which start/stop Big Brother processes. Something got change on server and now I am not able to start/stop it. There is no change in script, as I compared it from other server. This service is being managed by bb user (group is also bb).
root@tsazdq04:/#... (6 Replies)
I did a search of these forums but couldnt find a suitable resolution.
I am attempting to script a stop and start of an application on AIX.
Such as:
However it has authentication where username and password prompts will appear after running the above command requiring input from a... (2 Replies)
Hi All,
I would like to develop a shell script for stop & start an application server (1-4) on Solaris box. Here are the user requirements for this task.
1. User will input the option which server they wish to stop.
2. Will clear cache files from specific location.
3. ... (1 Reply)
i have two separate scripts that work nicely to curl and generate two files.. one html and one txt so a total of four.
When the script starts up i want it to:
call and run shellscripta
call and run shellscriptb
sleep for about 40 seconds
again run shellscripta
again run shellscriptb
check... (4 Replies)
Hi,
I am writing a bash shell script. How can I tell it to stop. For example, I would like to have something similar to the following:
mike=1
if ; then
STOP THE SCRIPT
fi (3 Replies)
Hi,
I just learnt the shell scripting and got working on that right now. I have one problem.
Here i am having a java application that needs to be start and stop using two shell scripts, i.e., starting the java application using one shell script and stopping the application using another... (1 Reply)
I'm a newbie to the Unix world Help!
I have to maintain a host of Sybase database servers sitting on Unix Sun Solaris 8...I've been tasked with finding/creating a way to auto start/stop Unix via unix commands, specifically when the Unix servers need to be restarted we want Sybase to start... (2 Replies)