如何在 Solaris 5.10 上使用 Solaris::Kstat?

发布于 2024-08-04 23:01:34 字数 389 浏览 5 评论 0原文

我正在寻找使用 Kstat 查找 SunOS 系统详细信息。我在 CPAN 中找到了 Solaris::Kstat 模块,但这仅支持 Solaris 2.5。 1、2.6& 2.7. Sun 开发人员网站 提到了我有一个 Sun::Solaris::Kstat在 CPAN 中找不到。任何人都可以帮助我使用 Perl 脚本来查找 Solaris 5.10 上 kstat 的详细信息。

I am looking to find the SunOS system details using Kstat. I have found Solaris::Kstat module in CPAN but this only supports Solaris 2.5.1, 2.6 & 2.7. The Sun developer's site mentions a Sun::Solaris::Kstat which I have not found in CPAN. Can anyone please help me with the Perl scripting to find details from kstat on Solaris 5.10.

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

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

发布评论

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

评论(1

病毒体 2024-08-11 23:01:34

根据 Brendan Gregg 的说法,他实际上开发了用于 Solaris 系统的 Perl 工具:

KStat perl 库附带
索拉里斯。

但是,在他的一个模块中,他添加了以下注释:

# - If you have upgraded /usr/bin/perl, this program may be unable to 
#   find the Sun::Solaris::Kstat library (which is under /usr/perl5).
#   Before the "use strict;" line, you may need to add,
#   use lib "/usr/perl5/5.6.1/lib";
#   to point to your location of Sun/Solaris/Kstat.pm.

如果这不起作用,您可能需要为 Kstat.pm 运行 find 命令,以确保该文件是否存在于系统上的任何位置。

According to Brendan Gregg who actually develops Perl tools to work with Solaris systems:

The KStat perl library is shipped with
Solaris.

However, in one of his modules he includes the following note:

# - If you have upgraded /usr/bin/perl, this program may be unable to 
#   find the Sun::Solaris::Kstat library (which is under /usr/perl5).
#   Before the "use strict;" line, you may need to add,
#   use lib "/usr/perl5/5.6.1/lib";
#   to point to your location of Sun/Solaris/Kstat.pm.

If that doesn't work, you may want to run a find command for Kstat.pm, to be certain of whether or not this file exists anywhere on your system.

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