Parse::DMIDecode - Interface to SMBIOS under Linux using dmidecode
use strict; use Parse::DMIDecode (); my $dmi = new Parse::DMIDecode; $dmi->probe; printf("System: %s, %s", $dmi->keyword("system-manufacturer"), $dmi->keyword("system-product-name"), );
This module provides an OO interface to SMBIOS information through the dmidecode command which is known to work under a number of Linux, BSD and BeOS variants.
my $dmi = Parse::DMIDecode->new(dmidecode => "/usr/sbin/dmidecode");
$dmi->probe;
my $raw = `dmidecode`; $dmi->parse($raw);
my $ = $dmi->keyword("system-serial-number");
examples/*.pl, http://www.nongnu.org/dmidecode/, http://linux.dell.com/libsmbios/, http://sourceforge.net/projects/x86info/, http://www.dmtf.org/standards/smbios, biosdecode(8), dmidecode(8), vpddecode(8)
$Id: DMIDecode.pm 772 2006-09-17 20:27:14Z nicolaw $
Nicola Worthington <nicolaw@cpan.org>
http://perlgirl.org.uk
If you like this software, why not show your appreciation by sending the author something nice from her Amazon wishlist? ( http://www.amazon.co.uk/gp/registry/1VZXC59ESWYK0?sort=priority )
Copyright 2006 Nicola Worthington.
This software is licensed under The Apache Software License, Version 2.0.
http://www.apache.org/licenses/LICENSE-2.0
To install Parse::DMIDecode, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Parse::DMIDecode
CPAN shell
perl -MCPAN -e shell install Parse::DMIDecode
For more information on module installation, please visit the detailed CPAN module installation guide.