line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package FusionInventory::Agent::Task::Inventory::Solaris::Slots; |
2
|
|
|
|
|
|
|
|
3
|
2
|
|
|
2
|
|
118634595
|
use strict; |
|
2
|
|
|
|
|
12
|
|
|
2
|
|
|
|
|
89
|
|
4
|
2
|
|
|
2
|
|
11
|
use warnings; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
98
|
|
5
|
|
|
|
|
|
|
|
6
|
2
|
|
|
2
|
|
669
|
use FusionInventory::Agent::Tools; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
427
|
|
7
|
2
|
|
|
2
|
|
1280
|
use FusionInventory::Agent::Tools::Solaris; |
|
2
|
|
|
|
|
7
|
|
|
2
|
|
|
|
|
464
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub isEnabled { |
10
|
0
|
|
|
0
|
0
|
0
|
my (%params) = @_; |
11
|
0
|
0
|
|
|
|
0
|
return 0 if $params{no_category}->{slot}; |
12
|
0
|
|
|
|
|
0
|
return canRun('prtdiag'); |
13
|
|
|
|
|
|
|
} |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
sub doInventory { |
16
|
0
|
|
|
0
|
0
|
0
|
my (%params) = @_; |
17
|
|
|
|
|
|
|
|
18
|
0
|
|
|
|
|
0
|
my $inventory = $params{inventory}; |
19
|
0
|
|
|
|
|
0
|
my $logger = $params{logger}; |
20
|
|
|
|
|
|
|
|
21
|
0
|
|
|
|
|
0
|
foreach my $slot (_getSlots(logger => $logger)) { |
22
|
0
|
|
|
|
|
0
|
$inventory->addEntry( |
23
|
|
|
|
|
|
|
section => 'SLOTS', |
24
|
|
|
|
|
|
|
entry => $slot |
25
|
|
|
|
|
|
|
); |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
sub _getSlots { |
30
|
5
|
|
|
5
|
|
1274
|
my $info = getPrtdiagInfos(@_); |
31
|
|
|
|
|
|
|
|
32
|
5
|
50
|
|
|
|
55
|
return $info->{slots} ? @{$info->{slots}} : (); |
|
5
|
|
|
|
|
43
|
|
33
|
|
|
|
|
|
|
} |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
1; |