Unix/Linux Go Back    


Shell Programming and Scripting BSD, Linux, and UNIX shell scripting — Post awk, bash, csh, ksh, perl, php, python, sed, sh, shell scripts, and other shell scripting languages questions here.

MQ Queue Manager SSL Checking Script

Shell Programming and Scripting


Reply    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 07-13-2017   -   Original Discussion by MQAdmin
MQAdmin MQAdmin is offline
Registered User
 
Join Date: Jul 2017
Last Activity: 13 July 2017, 10:01 AM EDT
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
MQ Queue Manager SSL Checking Script

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 this directory
/var/mqm/qmgrs/QMGR1/ssl
#Create and Run unstash script against the *.sth file to get .kdb password
#execute unstash script then delete unstash script
#List all certs in the .kdb using unstashed password
#For each cert in the .kdb show the details of the cert
#Write output of cert details like common name, serial number, valid from, valid to & sha to a .csv file

I know the commands to individually and manually perform all these steps however like I said I have no previous scripting experience. How and where do I begin to even start scripting something like this?

Any help would be much appreciated.
Sponsored Links
    #2  
Old Unix and Linux 07-13-2017   -   Original Discussion by MQAdmin
Peasant's Unix or Linux Image
Peasant Peasant is offline Forum Advisor  
Registered User
 
Join Date: Mar 2011
Last Activity: 18 November 2017, 10:49 PM EST
Posts: 1,083
Thanks: 31
Thanked 319 Times in 279 Posts
If you know commands to do one queue manager, you are almost done.
That is your program and will probably be the biggest part of your script, depending on the error handling required.

You will start by considering what will be your variables in the program.

Since you have multiple queue managers, a variable and a loop is required for basic execution of your commands against multiple queue managers.

If you can post the commands and their output (obfuscate the data of course) for one queue manager, with your shell and operating system, that would be helpful to assist further.

Hope that helps
Regards
Peasant.
Sponsored Links
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Shell Script for Websphere MQ Queue Manager start/stop pady1224 Shell Programming and Scripting 3 06-22-2015 01:12 PM
Script will keep checking running status of another script and also restart called script at night ketanraut Shell Programming and Scripting 1 11-20-2013 10:41 AM
Detect if script starts from queue Lord Spectre Shell Programming and Scripting 16 08-16-2012 12:09 PM
Need Help Writing Script To Email When Fax Queue Goes Down ITAdmin08 Shell Programming and Scripting 6 06-03-2009 05:14 PM
File queue script GMMike Shell Programming and Scripting 2 10-23-2007 08:19 AM



All times are GMT -4. The time now is 06:33 AM.