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

时间:2009-09-15 05:23:02

标签: perl module sunos kstat

我希望使用Kstat找到SunOS系统的详细信息。我在CPAN中找到了Solaris::Kstat模块,但这只支持Solaris 2.5.1,2.6& 2.7。 The Sun developer's site提到了我在CPAN中找不到的Sun :: Solaris :: Kstat。任何人都可以帮我使用Perl脚本来查找Solaris 5.10上kstat的详细信息。

1 个答案:

答案 0 :(得分:1)

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

  

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.

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

相关问题