-
-
01 Jan 2022 12:24:13 UTC
- Distribution: System-Info
- Module version: 0.052
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Repository
- Issues (2)
- Testers (500 / 0 / 0)
- Kwalitee
Bus factor: 1- 59.87% Coverage
- License: perl_5
- Perl: v5.8.3
- Activity
24 month- Tools
- Download (51.54KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- POSIX
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
System::Info::Linux - Object for specific Linux info.
DESCRIPTION
$si->prepare_sysinfo
Use os-specific tools to find out more about the system.
$si->prepare_os
Use os-specific tools to find out more about the operating system.
$si->linux_generic
Check
/proc/cpuinfo
for these keys:- "processor" (count occurrence for __cpu_count)
- "model name" (part of __cpu)
- "vendor_id" (part of __cpu)
- "cpu mhz" (part of __cpu)
- "cpu cores" (add values to add to __cpu_count)
$si->linux_arm
Check
/proc/cpuinfo
for these keys:- "processor" (count occurrence for __cpu_count)
- "Processor" (part of __cpu)
- "BogoMIPS" (part of __cpu)
$si->linux_ppc
Check
/proc/cpuinfo
for these keys:- "processor" (count occurrence for __cpu_count)
- "cpu" (part of __cpu)
- "machine" (part of __cpu)
- "clock" (part of __cpu)
- "detected" (alters machine if present)
$si->linux_sparc
Check
/proc/cpuinfo
for these keys:$si->linux_s390x
Check
/proc/cpuinfo
for these keys:- "processor" (count occurrence for __cpu_count)
- "Processor" (part of __cpu)
- "BogoMIPS" (part of __cpu)
$si->prepare_proc_cpuinfo
Read the complete
/proc/cpuinfo
.$si->count_in_cpuinfo ($regex)
Returns the number of lines $regex matches for.
$si->count_unique_in_cpuinfo ($regex)
Returns the number of lines $regex matches for.
$si->from_cpuinfo ($key)
Returns the first value of that key in
/proc/cpuinfo
.COPYRIGHT AND LICENSE
(c) 2016-2022, Abe Timmerman & H.Merijn Brand, All rights reserved.
With contributions from Jarkko Hietaniemi, Campo Weijerman, Alan Burlison, Allen Smith, Alain Barbet, Dominic Dunlop, Rich Rauenzahn, David Cantrell.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See:
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Module Install Instructions
To install System::Info, copy and paste the appropriate command in to your terminal.
cpanm System::Info
perl -MCPAN -e shell install System::Info
For more information on module installation, please visit the detailed CPAN module installation guide.