/usr/bin/fusioninventory-inventory is in fusioninventory-agent 1:2.3.5.1-1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 | #!/usr/bin/perl
eval 'exec /usr/bin/perl -S $0 ${1+"$@"}'
if 0; # not running under some shell
use strict;
use warnings;
use lib "/usr/share/fusioninventory/lib";
use English qw(-no_match_vars);
use Getopt::Long;
use File::Temp;
use Pod::Usage;
use FusionInventory::Agent::Task::Inventory;
use FusionInventory::Agent::Target::Local;
use FusionInventory::Agent::Logger;
use FusionInventory::Agent::Config;
my %setup = (
confdir => "/etc/fusioninventory",
datadir => "/usr/share/fusioninventory",
libdir => "/usr/share/fusioninventory/lib",
vardir => "/var/lib/fusioninventory-agent",
);
my $options = {
config => 'none'
};
GetOptions(
$options,
'additional-content=s',
'backend-collect-timeout=s',
'html',
'no-category=s',
'scan-homedirs',
'tag|t=s',
'verbose',
'debug+',
'help',
'version',
) or pod2usage(-verbose => 0);
if ($options->{version}) {
print "Inventory task $FusionInventory::Agent::Task::Inventory::VERSION\n";
exit 0;
}
pod2usage(-verbose => 0, -exitval => 0) if $options->{help};
my $config = FusionInventory::Agent::Config->new(
options => $options,
);
my $inventory = FusionInventory::Agent::Task::Inventory->new(
target => FusionInventory::Agent::Target::Local->new(
path => '-',
html => $options->{html},
basevardir => File::Temp->newdir(CLEANUP => 1),
),
logger => FusionInventory::Agent::Logger->new(
debug => $options->{debug}
),
datadir => "/usr/share/fusioninventory",
confdir => "/etc/fusioninventory",
config => $config
);
$inventory->run();
__END__
=head1 NAME
fusioninventory-inventory - Standalone inventory
=head1 SYNOPSIS
fusioninventory-inventory [options]
Options:
--scan-homedirs scan use home directories (false)
--html save the inventory as HTML (false)
-t --tag=TAG mark the machine with given tag
--backend-collect-timeout=TIME timeout for inventory modules
execution (30)
--additional-content=FILE additional inventory content file
--verbose verbose output (control messages)
--debug debug output (execution traces)
-h --help print this message and exit
--version print the task version and exit
=head1 DESCRIPTION
F<fusioninventory-inventory> allows to run an inventory task without a GLPI
server.
|