ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General Discussion » How to know the cureent depth of a local Queue

Post new topic  Reply to topic
 How to know the cureent depth of a local Queue « View previous topic :: View next topic » 
Author Message
steiner
PostPosted: Wed Sep 07, 2005 7:02 am    Post subject: How to know the cureent depth of a local Queue Reply with quote

Voyager

Joined: 07 Mar 2003
Posts: 89

Hello,

I just want to known the command or the program in Unix HP which tell me the value of the current depth of a local queue.

Can i use amqsbcg or is there another program or tool available.

I just want to use the value of the depth of the queue as variable in a shell script.

Can you help , thanks a lot.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Wed Sep 07, 2005 7:08 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

dis ql(<qname) curdepth

run with runmqsc.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
wschutz
PostPosted: Wed Sep 07, 2005 8:56 am    Post subject: Reply with quote

Jedi Knight

Joined: 02 Jun 2005
Posts: 3316
Location: IBM (retired)

Expanding on Jeff's answer:
Code:
export CURD=`echo "dis ql(foof) curdepth" | runmqsc QMGR | grep CURDEPTH | awk -F"[()]" '{print $2}'`
isn't unix great
_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
csmith28
PostPosted: Wed Sep 07, 2005 9:46 am    Post subject: Reply with quote

Grand Master

Joined: 15 Jul 2003
Posts: 1196
Location: Arizona

echo "dis ql(QLOCAL.NAME) curdepth" | runmqsc
_________________
Yes, I am an agent of Satan but my duties are largely ceremonial.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General Discussion » How to know the cureent depth of a local Queue
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.