line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# |
2
|
|
|
|
|
|
|
# (c) Jan Gehring |
3
|
|
|
|
|
|
|
# |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
package Rex::Inventory::SMBios::SystemInformation; |
6
|
|
|
|
|
|
|
|
7
|
38
|
|
|
38
|
|
585
|
use v5.12.5; |
|
38
|
|
|
|
|
184
|
|
8
|
38
|
|
|
38
|
|
197
|
use warnings; |
|
38
|
|
|
|
|
100
|
|
|
38
|
|
|
|
|
1652
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
our $VERSION = '1.14.3'; # VERSION |
11
|
|
|
|
|
|
|
|
12
|
38
|
|
|
38
|
|
386
|
use Rex::Inventory::SMBios::Section; |
|
38
|
|
|
|
|
97
|
|
|
38
|
|
|
|
|
1999
|
|
13
|
38
|
|
|
38
|
|
289
|
use base qw(Rex::Inventory::SMBios::Section); |
|
38
|
|
|
|
|
92
|
|
|
38
|
|
|
|
|
6556
|
|
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
__PACKAGE__->section("system information"); |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
__PACKAGE__->has( |
18
|
|
|
|
|
|
|
[ |
19
|
|
|
|
|
|
|
'Manufacturer', { key => 'Product Name', from => "Product" }, |
20
|
|
|
|
|
|
|
'UUID', 'SKU Number', 'Family', 'Version', 'Serial Number', |
21
|
|
|
|
|
|
|
], |
22
|
|
|
|
|
|
|
1 |
23
|
|
|
|
|
|
|
); |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
sub new { |
26
|
0
|
|
|
0
|
0
|
|
my $that = shift; |
27
|
0
|
|
0
|
|
|
|
my $proto = ref($that) || $that; |
28
|
0
|
|
|
|
|
|
my $self = $that->SUPER::new(@_); |
29
|
|
|
|
|
|
|
|
30
|
0
|
|
|
|
|
|
bless( $self, $proto ); |
31
|
|
|
|
|
|
|
|
32
|
0
|
|
|
|
|
|
return $self; |
33
|
|
|
|
|
|
|
} |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
1; |