May 2024
M T W T F S S
 12345
6789101112
13141516171819
20212223242526
2728293031  

Categories

May 2024
M T W T F S S
 12345
6789101112
13141516171819
20212223242526
2728293031  

how to check JMS queue depth using jacl

Case 1: check depth of 1 particular queue

set qpoint “WebSphere:*,type=SIBQueuePoint,name=MyQueuePointName”
set queues [$AdminControl queryNames $qpoint]
foreach q $queues {
set identifier [$AdminControl getAttribute $q identifier]
set size [$AdminControl getAttribute $q depth]
puts “$identifier size: $size messages”
puts [$AdminControl getAttributes $q]
}

Case 2: check all the queue points

set qpoint “WebSphere:*,type=SIBQueuePoint”
set queues [$AdminControl queryNames $qpoint]
foreach q $queues {
set identifier [$AdminControl getAttribute $q identifier]
set size [$AdminControl getAttribute $q depth]
puts “$identifier size: $size messages”
puts [$AdminControl getAttributes $q]
}

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>