DMI::Decode - Perl extension for extracting DMI Information
#!/usr/bin/perl use strict; use warnings; use DMI::Decode; my $dmi = new DMI::Decode; my $bios = $dmi->bios_information; print "Vendor: " . $bios->{vendor}, "\n"; print "Version: " . $bios->{version}, "\n"; print "Rom Size: " . $bios->{romsize}, "\n"; print "Runtime Size: " . $bios->{runtime}, "\n"; print "Release Date: " . $bios->{release}, "\n"; foreach (@{$bios->{characteristics}}) { print "\t\t$_\n"; }
DMI::Decode - is a library that provides a object oriented way to display the DMI (Desktop Managment Information) some say SMBIOS (System Managment Basic Input Output System) of your computer.
- constructor. Optionally accepts a filename argument. Returns DMI::Decode object. The default filename is /dev/mem.
- method. Returns a hash reference to the SMBIOS version.
- method. Returns a hash reference to the bios information.
- method. Returns a hash reference to the system information.
- method. Returns a hash reference to the mother board information.
- method. Returns a hash reference to the processor information.
None by default.
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)
Russell W. Pettway, <russell_pettway@yahoo.com>
Copyright (C) 2004 by Russell W. Pettway
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.1 or, at your option, any later version of Perl 5 you may have available.
To install DMI::Decode, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DMI::Decode
CPAN shell
perl -MCPAN -e shell install DMI::Decode
For more information on module installation, please visit the detailed CPAN module installation guide.