Websphere 7 SIB 队列:如何访问队列深度 wsadmin 命令?
我想使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
对于任何感兴趣的人,这里是 jeff 答案的 jython 版本。
For anyone interested, here's the jython version of jeff's answer.
因此,为了找出队列深度,我编写了这个 JACK 脚本...
将其填充到盒子上的文件 jeff.jacl 中并调用命令...
您会得到什么?好吧,你会得到一整袋很棒的东西!
接下来的工作是看看我是否可以直接获取 JACL 使用的所有 java 代码。
So to find out the queue depths I've written this JACK script...
Stuff it in a file on the box, jeff.jacl and call the command...
And what do you get? well you get a whole bag of awesomeness!
Next job is to see if I can all the java code that is used by JACL directly.
为了使用 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.