Websphere 7 SIB 队列:如何访问队列深度 wsadmin 命令?

发布于 2024-12-16 13:43:30 字数 77 浏览 2 评论 0原文

我想使用 WebSphere 7 中的 WSADMIN 命令来查询系统上队列的状态。

有人可以帮我吗?

谢谢

I'd like to use the WSADMIN command that is part of WebSphere 7 to query the state of the queues on the system.

Can anyone help me out?

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

能怎样 2024-12-23 13:43:30

对于任何感兴趣的人,这里是 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)

For anyone interested, here's the jython version of jeff's answer.

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)
一向肩并 2024-12-23 13:43:30

因此,为了找出队列深度,我编写了这个 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 代码。

So to find out the queue depths I've written this JACK script...

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]

Stuff it in a file on the box, jeff.jacl and call the command...

/opt/IBM/WebSphere/AppServer/bin # ./wsadmin.sh -profile jp.cmd.jacl

And what do you get? well you get a whole bag of awesomeness!

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

Next job is to see if I can all the java code that is used by JACL directly.

日久见人心 2024-12-23 13:43:30

为了使用 WebSphere PMI 检索 SIB 队列的深度,您需要选择以下两个计数器:

AvailableMessageCount 和 UnavailableMessageCount

操作方法如下:从 WebSphere Application Server 管理控制台,转到性能监控基础设施 (PMI) 面板承载消息传递引擎的应用程序服务器的:

应用程序服务器>你的应用程序服务器名称>性能监控基础设施 (PMI)

默认情况下,您将位于“配置”选项卡上。如果您希望在不重新启动应用程序服务器的情况下启动此监视,您可以选择切换到“运行时”选项卡。

进入 PMI 面板后,单击链接“自定义”,即最后一个单选按钮的标签。这将带您进入自定义监控级别面板。从左侧导航树中选择:
- SIB服务
- SIB 消息传递引擎 - *- 目标 - 队列 选择两个计数器:AvailableMessageCount 和 UnavailableMessageCount,然后单击位于顶部的启用按钮。此时应保存您的设置。

In order to retrieve the depth of a SIB queue using the WebSphere PMI, you will need to select the following two counters:

AvailableMessageCount and UnavailableMessageCount

Here is how: From the WebSphere Application Server Admin Console, go to the Performance Monitoring Infrastructure (PMI) panel of the application server where the messaging engine is hosted:

Application servers > your_app_server_name > Performance Monitoring Infrastructure (PMI)

You will be on the Configuration tab by default. You can choose to switch to the Runtime tab if you wish this monitoring to start without restarting the application server.

Once on the PMI panel, click on the link "Custom", the label of the last radio button. This should take you to the Custom monitoring level panel. From the left-hand navigation tree, select:
- SIB Service
- SIB Messaging Engines - *- Destinations- Queues Select both counters: AvailableMessageCount and UnavailableMessageCount and click the Enable button located at the top. Your setting should be saved at this point.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文