Home: Perl Programming Help: Win32 Programming Help:
collect Stats in windows

New User

Jan 23, 2008, 8:50 PM

Views: 16656
collect Stats in windows

Hi All,

i have to write script for collect the cpu statistics and memory statistics on the window operating system.

cpu stat include process waiting for CPU and CPU utiliztion and memory stat include available memory free memory,pageing,swapping,scan rate, waited the information i have to collect, please any one help me out, how i will start,

thanks in advance




Jan 23, 2008, 10:22 PM

Views: 16655
Re: [kumarbargale] collect Stats in windows

Start by searching through the Win32 class of modules on CPAN. I know there is one called Win32::SystemInfo but I have never used it so can't help with code or usage. Read the documentation , maybe it will work for your application.

New User

Jan 28, 2008, 4:51 AM

Views: 16595
Re: [kumarbargale] collect Stats in windows

hi Kevin,

win32::sysinfo is certified on Window 2000/XP/SERVER or not.





Jan 28, 2008, 10:13 AM

Views: 16594
Re: [kumarbargale] collect Stats in windows

I don't know


Jan 30, 2008, 8:20 PM

Views: 16557
Re: [kumarbargale] collect Stats in windows

hi all,

i am having perl which is coming with oracle. i have set the path of perl5lib to D:\app\shantkumars\product\11.1.0\db_1\perl\5.8.3\lib\MSWin32-x86-multi-thread and PATH to D:\app\shantkumars\product\11.1.0\db_1\perl\site\5.8.3\lib\MSWin32-x86-multi-thread in the environment variables in windows.

from this path i m able to run the test program .

using perl filename.pl

when i m tryung to install WIN32:systeminfo from this path D:\app\shantkumars\product\11.1.0\db_1\perl\5.8.3\lib\MSWin32-x86-multi-thread it is giving the below error

erl Makefile.PL
Checking if your kit is complete...
Looks good
Warning: prerequisite Win32::API 0.4 not found.

Error: Unable to locate installed Perl libraries or Perl source code.

It is recommended that you install perl in a standard location before
building extensions. Some precompiled versions of perl do not contain
these header files, so you cannot build extensions. In such a case,
please build and install your perl from a fresh perl distribution. It
usually solves this kind of problem.

(You get this message, because MakeMaker could not find "C:\perl\5.8.3\lib\MSWin

please tell me do i need to install perl instead of using perl whcih comes with oracle.or do i need to set the path to some othaer location

please help me out


Jan 30, 2008, 10:03 PM

Views: 16554
Re: [tusharja] collect Stats in windows


please do not double-post the same question, and especially not in another persons thread.