diff --git a/Changes b/Changes index 86b789c20..bdb9cf27d 100644 --- a/Changes +++ b/Changes @@ -8,7 +8,7 @@ core: * fix #789: Avoid warning on commandline about possible confusion when reading quoted configuration value including a dash from configuration file * fix #790: Fix server URL parsing when it doesn't include scheme -* Add glpi_version configuration support to handle inventory_format dependent features +* Add glpi-version configuration support to handle inventory_format dependent features * Handle /now request as an event. If inventory task run is triggered, it will now always by default generate a full inventory. /now supports a query string with the following possible values: @@ -26,6 +26,8 @@ inventory: * Fix rare windows perl error during drives, ipv6 network or videos inventory * Always keep disabled network interface on windows if it includes "vpn" string in description +* Add glpi-version configuration support to handle inventory_format dependent features + - Remove check alerting on invalid storage interface for GLPI >= 10.0.4 netdiscovery/netinventory: * fix #768: Added Aerohive devices support @@ -40,7 +42,7 @@ deploy: esx: * Support reporting of ESX virtualmachines ip and operating system. It requires inventory_format schema v1.1.36 on server-side included in GLPI v10.0.17. -* Add --glpi_version option support to glpi-esx script +* Add --glpi-version option support to glpi-esx script packaging: * Update Windows MSI packing building process to use: diff --git a/bin/glpi-agent b/bin/glpi-agent index 558b98629..de1e00e63 100755 --- a/bin/glpi-agent +++ b/bin/glpi-agent @@ -35,6 +35,7 @@ GetOptions( 'force|f', 'full', 'full-inventory-postpone=i', + 'glpi-version=s', 'help|h', 'html', 'json', @@ -339,6 +340,7 @@ glpi-agent [options] [--server server|--local path] --vardir=PATH use specified path as storage folder for agent persistent datas + --glpi-version= set targeted glpi version to enable supported features --version print the version and exit --no-win32-ole-workaround [win32 only] disable win32 work-around used to better handle Win32::OLE apis. diff --git a/bin/glpi-esx b/bin/glpi-esx index b522d2452..4ab2df8d1 100755 --- a/bin/glpi-esx +++ b/bin/glpi-esx @@ -38,7 +38,7 @@ GetOptions( 'dump', 'dumpfile=s', 'json', - 'glpi_version=s', + 'glpi-version=s', ) or pod2usage(-verbose => 0); pod2usage(-verbose => 0, -exitstatus => 0) if $options->{help}; @@ -53,7 +53,7 @@ if ($options->{version}) { } my $config = GLPI::Agent::Config->new( - options => { map { $_ => $options->{$_} } qw{debug tag json glpi_version} } + options => { map { $_ => $options->{$_} } qw{debug tag json glpi-version} } ); my $logger = GLPI::Agent::Logger->new(config => $config); @@ -208,7 +208,7 @@ glpi-esx --host --user --password --path new( html => $options->{html}, json => $options->{json}, basevardir => File::Temp->newdir(CLEANUP => 1), + glpi => $options->{"glpi-version"}, ), logger => GLPI::Agent::Logger->new(config => $config), datadir => $setup{datadir}, @@ -109,6 +111,7 @@ glpi-inventory [options] -t --tag=TAG mark the machine with given tag --backend-collect-timeout=TIME timeout for inventory modules execution (30) + --glpi-version=VERSION set targeted glpi version to enable supported features --additional-content=FILE additional inventory content file --assetname-support=1|2 [unix/linux only] set the asset name depending on the given value: - 1 (the default), the short hostname is used as asset name diff --git a/bin/glpi-netinventory b/bin/glpi-netinventory index 52ce34873..ff164f223 100755 --- a/bin/glpi-netinventory +++ b/bin/glpi-netinventory @@ -191,7 +191,7 @@ glpi-netinventory [options] [--host |--file ] --retries SNMP requets maximum retries (0) --backend-collect-timeout