line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package FusionInventory::Agent::Task::Inventory::Generic; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
23695579
|
use strict; |
|
1
|
|
|
|
|
6
|
|
|
1
|
|
|
|
|
90
|
|
4
|
1
|
|
|
1
|
|
6
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
75
|
|
5
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
4
|
use English qw(-no_match_vars); |
|
1
|
|
|
|
|
46
|
|
|
1
|
|
|
|
|
32
|
|
7
|
1
|
|
|
1
|
|
1332
|
use Net::Domain qw(hostfqdn hostdomain); |
|
1
|
|
|
|
|
12164
|
|
|
1
|
|
|
|
|
124
|
|
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; |