使用WebSphere的API访问操作系统
我想编写一个软件来统一来自不同服务器的日志,所有服务器都来自同一个单元的 WebSphere。这个想法是获取一个描述整个系统的日志,该系统由不同的服务器组成。
为了实现这一目标,我需要(或者我认为我需要。欢迎其他建议)访问这些服务器操作系统并下载日志文件。我想到了几件事: - 通过 ssh 获取访问权限 - 编写一个小的应用程序,访问这些文件,然后以我希望的任何形式将其发送到主日志服务器。
然而,我真正想要的是使用 WebSphere 功能并且可能允许我以某种方式访问文件系统的东西。有什么想法吗?
I want to write a software that unifies logs from different servers, all WebSphere, all from the same cell. The idea is to get a description one log that describes an entire system - composed of different servers.
In order to achieve this I need (Or so I think I need. Other suggestion will be welcomed) to access those servers operating systems and download the log files. I thought of a few things:
- Gain access via ssh
- Write a small aaplication, that accesses these files, and then sends it to the main log server in any form I wish.
However, what I really want is something that uses the WebSphere abilities and perhaps allows me access to the file system somehow. Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
最简单的方法是编写 jul log 附加程序并将日志重定向到您的附加程序。
无论如何,有免费和商业程序可以做与您描述的完全相同的事情。
Easiest way would be to write your jul log appender and redirect logs to your appender.
Anyway there are both free and commercial programs which do exact same thing you described.