WebSphere7SIB队列:如何访问队列深度wsadmin命令?
我想使用作为WebSphere7一部分的WSADMIN命令来查询系统上队列的状态 有人能帮我吗WebSphere7SIB队列:如何访问队列深度wsadmin命令?,websphere,websphere-7,wsadmin,Websphere,Websphere 7,Wsadmin,我想使用作为WebSphere7一部分的WSADMIN命令来查询系统上队列的状态 有人能帮我吗 谢谢为了找出队列深度,我写了这个JACK脚本 set qpoint "WebSphere:*,type=SIBQueuePoint" set queues [$AdminControl queryNames $qpoint] foreach q $queues { set identifier [$AdminControl getAttribute $q identifier] set size [$
谢谢为了找出队列深度,我写了这个JACK脚本
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]
把它塞进盒子上的文件jeff.jacl并调用命令
/opt/IBM/WebSphere/AppServer/bin # ./wsadmin.sh -profile jp.cmd.jacl
你得到了什么?好吧,你得到了一整袋令人敬畏的东西
WASX7209I: Connected to process "server1" on node WRSNode using SOAP connector; The type of process is: UnManagedProcess
CHANGE_REQUEST size: 15 messages
{depth 15} {state ACTIVE} {id CFAC834BE6AF5D9A30451D01_QUEUE_51} {identifier CHANGE_REQUEST} {highMessageThreshold 50000} {sendAllowed true}
ETL_DEAD size: 378 messages
下一项工作是看看我是否可以直接使用JACL使用的所有java代码。对于任何感兴趣的人,这里是jeff答案的jython版本
qpoint = 'WebSphere:*,type=SIBQueuePoint'
queues = AdminControl.queryNames(qpoint).split()
for q in queues:
identifier = AdminControl.getAttribute(q, 'identifier')
size = AdminControl.getAttribute(q, 'depth')
print identifier + ' size: ' + size + ' messages'
print AdminControl.getAttributes(q)
为了使用WebSphere PMI检索SIB队列的深度,需要选择以下两个计数器: AvailableMessageCount和UnavailableMessageCount 方法如下:从WebSphere Application Server管理控制台,转到消息传递引擎所在的应用服务器的性能监视基础结构(PMI)面板: 应用程序服务器>您的应用程序服务器名称>性能监控基础架构(PMI) 默认情况下,您将位于“配置”选项卡上。如果希望在不重新启动应用程序服务器的情况下启动此监视,则可以选择切换到“运行时”选项卡 进入PMI面板后,单击“自定义”链接,即最后一个单选按钮的标签。这将带您进入“自定义监视级别”面板。从左侧导航树中,选择: -SIB服务 -SIB消息传递引擎-*-目的地-队列选择两个计数器:AvailableMessageCount和UnavailableMessageCount,然后单击顶部的启用按钮。此时应保存您的设置