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

有帮助吗?

解决方案

根据 Brendan Gregg 实际开发Perl工具以使用Solaris系统:

  

KStat perl库随附   Solaris操作系统。

然而,在他的一个模块中,他包括以下注释:

# - 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 命令,以确定此文件是否存在于您的任何位置系统

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top