line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package FusionInventory::Agent::Task::Inventory::Generic; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
27889980
|
use strict; |
|
1
|
|
|
|
|
7
|
|
|
1
|
|
|
|
|
59
|
|
4
|
1
|
|
|
1
|
|
10
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
90
|
|
5
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
6
|
use English qw(-no_match_vars); |
|
1
|
|
|
|
|
36
|
|
|
1
|
|
|
|
|
19
|
|
7
|
1
|
|
|
1
|
|
1040
|
use Net::Domain qw(hostfqdn hostdomain); |
|
1
|
|
|
|
|
3772
|
|
|
1
|
|
|
|
|
113
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub isEnabled { |
10
|
0
|
|
|
0
|
0
|
|
return 1; |
11
|
|
|
|
|
|
|
} |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub doInventory { |
14
|
0
|
|
|
0
|
0
|
|
my (%params) = @_; |
15
|
|
|
|
|
|
|
|
16
|
0
|
|
|
|
|
|
my $inventory = $params{inventory}; |
17
|
|
|
|
|
|
|
|
18
|
0
|
|
|
|
|
|
$inventory->setOperatingSystem({ |
19
|
|
|
|
|
|
|
KERNEL_NAME => $OSNAME, |
20
|
|
|
|
|
|
|
FQDN => hostfqdn(), |
21
|
|
|
|
|
|
|
DNS_DOMAIN => hostdomain() |
22
|
|
|
|
|
|
|
}); |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
1; |