This is my first post. I want to make one perl agent which calculate following things from Linux Server. Actually I want to pull all this information from 2 linux client and wants to display on web interface.
First I want to calculate below details
1) CPU
2) MEMORY
3) Physical Server or Virtual Server Detail (Server Type)
I want to do this in perl.
I found below code which is helpful
Now i want help about Memory and Physical or Virtual Server checking.
Hi,
Is there a command I can use to find out how many CPU's and what type are on my server? (I was told to use cat /proc/cpuinfo)
Also, how do I know what kind of bus speeds are on my server?
Thanks in advance:) (3 Replies)
well. the title says it all.
im runing top in batch mode like this
top -b -n1 > somefile
but the cpu usage info is not correct.
if i run top normally, the first second, i see the same wrong info, and then it corrects itself.
i found only one small mention of it on this forum. with this link... (7 Replies)
Hi,
may be this is an AIX noob question:
my current C++ application runs on Linux and is quite memory consuming. Therefore, the application writes a logfile after it has finished containing memory information, CPU information, information on the running other processes besides my application... (5 Replies)
Hi,
I am going to buy a software that is licenced per CORE.
I have a HPUX B1123 64 bit with 8 cpus.
How can i know how many cores are in my machine ?
Thanks (3 Replies)
Dear all,
Is there any generic command working on all Unix listing the CPU of a server?
I found different command line per OS but I am looking for a more generic one.
Thanks for your answer. (5 Replies)
I am doing some bespoke nagios plugins.
can anyone recommend any good perl modules
for system checks.
disks, memory, processes, load avgs, networks, etc etc. everything basically.
they will need to perform on bsd, aix, solaris, linux.
any recommendations? (2 Replies)
I have searched and searched this topic but without looking at source code ; my next step maybe , I find the same ambiguous information.
My main question is how is the target code translated? It is stated that there are variables created that hold the data that the emulated CPU would hold in... (12 Replies)
To get only the cpu info from the topas command terminal.
CPU User% Kern% Wait% Idle% Physc Entc
ALL 2.3 4.4 0.0 93.3 0.07 7.7
I tried some thing like this but did not work
topas << done
grep "ALL"
q
done
Can someone help me in this. (5 Replies)
Hello all
i did search the web and found allot of answers but im confused
what are the best ways to get this info via Linux default commands
1. current Cpu Usage in Percent
2. current Memory Usage In Bytes
3. current Memory Available In Bytes
Thanks! (2 Replies)
Discussion started by: umen
2 Replies
LEARN ABOUT SUSE
appconfig::sys
AppConfig::Sys(3) User Contributed Perl Documentation AppConfig::Sys(3)NAME
AppConfig::Sys - Perl5 module defining platform-specific information and methods for other AppConfig::* modules.
SYNOPSIS
use AppConfig::Sys;
my $sys = AppConfig::Sys->new();
@fields = $sys->getpwuid($userid);
@fields = $sys->getpwnam($username);
OVERVIEW
AppConfig::Sys is a Perl5 module provides platform-specific information and operations as required by other AppConfig::* modules.
AppConfig::Sys is distributed as part of the AppConfig bundle.
DESCRIPTION
USING THE AppConfig::Sys MODULE
To import and use the AppConfig::Sys module the following line should appear in your Perl script:
use AppConfig::Sys;
AppConfig::Sys is implemented using object-oriented methods. A new AppConfig::Sys object is created and initialised using the
AppConfig::Sys->new() method. This returns a reference to a new AppConfig::Sys object.
my $sys = AppConfig::Sys->new();
This will attempt to detect your operating system and create a reference to a new AppConfig::Sys object that is applicable to your
platform. You may explicitly specify an operating system name to override this automatic detection:
$unix_sys = AppConfig::Sys->new("Unix");
Alternatively, the package variable $AppConfig::Sys::OS can be set to an operating system name. The valid operating system names are:
Win32, VMS, Mac, OS2 and Unix. They are not case-specific.
AppConfig::Sys METHODS
AppConfig::Sys defines the following methods:
getpwnam()
Calls the system function getpwnam() if available and returns the result. Returns undef if not available. The can_getpwnam() method
can be called to determine if this function is available.
getpwuid()
Calls the system function getpwuid() if available and returns the result. Returns undef if not available. The can_getpwuid() method
can be called to determine if this function is available.
AUTHOR
Andy Wardley, <abw@wardley.org>
COPYRIGHT
Copyright (C) 1997-2007 Andy Wardley. All Rights Reserved.
Copyright (C) 1997,1998 Canon Research Centre Europe Ltd.
This module is free software; you can redistribute it and/or modify it under the term of the Perl Artistic License.
SEE ALSO
AppConfig, AppConfig::File
perl v5.12.1 2007-05-30 AppConfig::Sys(3)