|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Grep command in SunOS 5.8/SunOS 5.9 |
« View previous topic :: View next topic » |
Author |
Message
|
nagabhb |
Posted: Mon Dec 20, 2010 10:04 pm Post subject: Grep command in SunOS 5.8/SunOS 5.9 |
|
|
Apprentice
Joined: 20 Dec 2010 Posts: 42
|
My requirement is I have to display Queue name along with Intitaion queue in health chek script.
Fot this I'm using
echo "DISPLAY QLOCAL(*) WHERE(INITQ NE ' ') INITQ" | runmqsc $QMGR | grep -e INITQ -e QUEUE | grep -v 'DISPLAY QLOCAL' | grep -v SYSTEM.CHANNEL.INITQ
Here grep -e INITQ -e QUEUE lists out queue name and Init q in AIX but it's failing in Sun OS.I tried various options but could not succeeded.
Can any throw light on this.
Thanks In Advance !!! |
|
Back to top |
|
 |
bruce2359 |
Posted: Mon Dec 20, 2010 10:14 pm Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
What do you mean by it's failing? What works? What doesn't?
What do you consider healthy for the SYSTEM.CHANNEL.INITQ? _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
HubertKleinmanns |
Posted: Mon Dec 20, 2010 10:18 pm Post subject: Re: Grep command in SunOS 5.8/SunOS 5.9 |
|
|
 Shaman
Joined: 24 Feb 2004 Posts: 732 Location: Germany
|
nagabhb wrote: |
My requirement is I have to display Queue name along with Intitaion queue in health chek script.
Fot this I'm using
echo "DISPLAY QLOCAL(*) WHERE(INITQ NE ' ') INITQ" | runmqsc $QMGR | grep -e INITQ -e QUEUE | grep -v 'DISPLAY QLOCAL' | grep -v SYSTEM.CHANNEL.INITQ
Here grep -e INITQ -e QUEUE lists out queue name and Init q in AIX but it's failing in Sun OS.I tried various options but could not succeeded.
Can any throw light on this.
Thanks In Advance !!! |
Two solutions:
1. Only on Solaris:
Code: |
echo "DISPLAY QLOCAL(*) WHERE(INITQ NE ' ') INITQ" | runmqsc $QMGR | /usr/xpg4/bin/grep -e INITQ -e QUEUE | grep -v 'DISPLAY QLOCAL' | grep -v SYSTEM.CHANNEL.INITQ |
2. On AIX and Solaris:
Code: |
echo "DISPLAY QLOCAL(*) WHERE(INITQ NE ' ') INITQ" | runmqsc $QMGR | egrep 'INITQ|QUEUE' | grep -v 'DISPLAY QLOCAL' | grep -v SYSTEM.CHANNEL.INITQ |
Solaris provides several different versions of most of the Unix tools. _________________ Regards
Hubert |
|
Back to top |
|
 |
nagabhb |
Posted: Mon Dec 20, 2010 11:02 pm Post subject: |
|
|
Apprentice
Joined: 20 Dec 2010 Posts: 42
|
Thanks Hubert for the quick reply.Two commands you pasted are working fine. |
|
Back to top |
|
 |
RogerLacroix |
Posted: Fri Dec 24, 2010 9:53 am Post subject: |
|
|
 Jedi Knight
Joined: 15 May 2001 Posts: 3264 Location: London, ON Canada
|
Hi,
A while ago, I added CheckUp tool to MQ Batch Toolkit.
The CheckUp tool will verify that attributes of MQ objects are valid and exists. CheckUp scans queues, channels, namelists, processes and queue manager attributes and uses over 20 rules to verify attributes of MQ objects.
One of the rules is to check for triggered queues and verify INITQ is present.
Rather than you thinking of all the possible "missing links" in MQ, you could try out MQ Batch Toolkit and see if it meets your needs.
Regards,
Roger Lacroix
Capitalware Inc. _________________ Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|