通过网络将 Solaris 脚本输出推送到 Windows 客户端?
我有一个简单的 Solaris DTrace 脚本,可以连续输出一些磁盘统计信息。默认情况下,输出被保存到 STDOUT,因此我可以重定向到文件来捕获数据。
我正在寻找的是远程获取这些数据的能力。我最初的想法是,我需要某种客户端可以连接到的守护进程,然后将数据流式传输到它们,但我不太确定完成这项工作的最佳软件堆栈/库是什么。
我了解 Solaris 方面的 Perl 和 Python,并将使用 C#.NET 客户端。客户端位不会成为问题,因为它可以连接到远程套接字并等待数据出现。然而,服务器部分需要更多的考虑。
关于解决这个问题的最佳方法有什么想法/建议吗?
I've got a simple Solaris DTrace script that outputs some disk stats continuously. By default, the output gets chucked to STDOUT, so I can redirect to a file to capture the data.
What I'm looking for is the ability to grab that data remotely. My initial thought was that I needed some sort of daemon that clients could connect to and just have the data streamed down at them, but I'm not really sure what the best sort of software stack / libraries to do this job are.
I've got knowledge of Perl and Python on the Solaris side, and will be using a C#.NET client. The client bit won't be a problem, as that can just connect to a remote socket and wait for data to appear. However, it's the server part that needs a bit more thought.
Any ideas / suggestions as to the best way to go about this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用
netcat
或某些netcat
克隆。我个人喜欢ncat
。这是一个示例服务器
客户端
You could use
netcat
or somenetcat
clone. Personally I likencat
. Here's an exampleServer
Client